myTaskOutsource.jsx 105 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107
  1. import React from "react";
  2. import $ from "jquery";
  3. import moment from "moment";
  4. import Picture from "@/manageCenter/publicComponent/picture";
  5. import "@/manageCenter/financialManage/distribute/public.less";
  6. import {
  7. Button,
  8. Form,
  9. Input,
  10. Select,
  11. Spin,
  12. Table,
  13. message,
  14. DatePicker,
  15. Modal,
  16. Radio,
  17. Cascader,
  18. Popconfirm,
  19. Tabs,
  20. notification
  21. } from "antd";
  22. import Assign from "@/manageCenter/publicComponent/assign";
  23. import { areaSelect } from "@/NewDicProvinceList";
  24. import "./table.less";
  25. import {
  26. getProcessStatus,
  27. getApproval,
  28. getTaskStatus,
  29. getLiquidationStatus,
  30. getProjectStatus,
  31. splitUrl,
  32. getboutique,
  33. getprovince,
  34. moneyVerify
  35. } from "@/tools";
  36. import { taskStatus, projectStatus } from "@/dataDic.js";
  37. const FormItem = Form.Item;
  38. const MyTaskOutsource = React.createClass({
  39. loadData(pageNo) {
  40. this.state.data = [];
  41. this.setState({
  42. page: pageNo,
  43. loading: true
  44. });
  45. $.ajax({
  46. method: "get",
  47. dataType: "json",
  48. crossDomain: false,
  49. url: globalConfig.context + "/api/admin/orderProject/orderTaskList",
  50. data: {
  51. pageNo: pageNo || 1,
  52. pageSize: this.state.pagination.pageSize,
  53. specially: 0, //个人
  54. name: this.state.nameSearch, //客户名称
  55. depId: this.state.departmenttSearch, //订单部门
  56. orderNo: this.state.orderNoSearch, //订单编号
  57. taskId: this.state.taskNoSearch, //任务编号
  58. taskStatus: this.state.taskStatus, //任务状态
  59. adminName: this.state.adminName, //任务受理人
  60. outsource: 1
  61. },
  62. success: function(data) {
  63. let theArr = [];
  64. if (!data.data || !data.data.list) {
  65. if (data.error && data.error.length) {
  66. message.warning(data.error[0].message);
  67. }
  68. } else {
  69. for (let i = 0; i < data.data.list.length; i++) {
  70. let thisdata = data.data.list[i];
  71. theArr.push({
  72. key: i,
  73. orderNo: thisdata.orderNo, //订单编号
  74. id: thisdata.id, //任务ID
  75. taskName: thisdata.taskName, //名称
  76. cname: thisdata.cname, //项目品类
  77. receiverName: thisdata.receiverName, //受理人
  78. projectStatus: thisdata.projectStatus, //项目状态
  79. taskStatus: thisdata.taskStatus, //任务状态
  80. taskDate: thisdata.taskDate, //分配时间
  81. userName:
  82. thisdata.taskName.substring(0, 5) === "软件著作权"
  83. ? thisdata.userName +
  84. "(" +
  85. thisdata.commodityQuantity.toString() +
  86. "/" +
  87. thisdata.alreadyNumber +
  88. ")"
  89. : thisdata.userName, //用户名
  90. depName: thisdata.depName, //部门名称
  91. commodityQuantity: thisdata.commodityQuantity, //任务数量
  92. outsourceName: thisdata.outsourceName
  93. });
  94. }
  95. }
  96. if (data.data && data.data.list && !data.data.list.length) {
  97. this.state.pagination.current = 0;
  98. this.state.pagination.total = 0;
  99. }
  100. this.setState({
  101. dataSource: theArr,
  102. pagination: this.state.pagination
  103. });
  104. }.bind(this)
  105. }).always(
  106. function() {
  107. this.setState({
  108. loading: false
  109. });
  110. }.bind(this)
  111. );
  112. },
  113. getInitialState() {
  114. return {
  115. searchMore: true,
  116. assignVisible: false,
  117. releaseDate: [],
  118. // 判断是否是退回给咨询师经理
  119. flag: false,
  120. roleName: "",
  121. modKey: "1",
  122. testFlag: true,
  123. boHuivisible: false,
  124. companyProvinceArr: [],
  125. selectedRowKeys: [],
  126. departmentArr: [],
  127. selectedRows: [],
  128. attachmentUrl: [],
  129. contactList: [],
  130. paginations: false,
  131. loading: false,
  132. pagination: {
  133. defaultCurrent: 1,
  134. defaultPageSize: 10,
  135. showQuickJumper: true,
  136. pageSize: 10,
  137. onChange: function(page) {
  138. this.loadData(page);
  139. }.bind(this),
  140. showTotal: function(total) {
  141. return "共" + total + "条数据";
  142. }
  143. },
  144. columns: [
  145. {
  146. title: "任务编号",
  147. dataIndex: "id",
  148. key: "id"
  149. },
  150. {
  151. title: "任务名称",
  152. dataIndex: "taskName",
  153. key: "taskName",
  154. render: text => {
  155. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  156. }
  157. },
  158. {
  159. title: "订单编号",
  160. dataIndex: "orderNo",
  161. key: "orderNo"
  162. },
  163. {
  164. title: "业务类别",
  165. dataIndex: "cname",
  166. key: "cname"
  167. },
  168. {
  169. title: "客户名称",
  170. dataIndex: "userName",
  171. key: "userName",
  172. className: "userName"
  173. },
  174. {
  175. title: "外包公司",
  176. dataIndex: "outsourceName",
  177. key: "outsourceName"
  178. },
  179. {
  180. title: "任务状态",
  181. dataIndex: "taskStatus",
  182. key: "taskStatus",
  183. render: text => {
  184. return getTaskStatus(text);
  185. }
  186. },
  187. {
  188. title: "项目状态",
  189. dataIndex: "projectStatus",
  190. key: "projectStatus",
  191. render: text => {
  192. return getProjectStatus(text);
  193. }
  194. },
  195. {
  196. title: "分配时间",
  197. dataIndex: "taskDate",
  198. key: "taskDate"
  199. },
  200. {
  201. title: "订单部门",
  202. dataIndex: "depName",
  203. key: "depName"
  204. },
  205. {
  206. title: "操作",
  207. dataIndex: "caozuo",
  208. key: "caozuo",
  209. render: (text, record) => {
  210. return (
  211. <div>
  212. <Button
  213. type="primary"
  214. onClick={e => {
  215. e.stopPropagation(), this.evaluate(record, "咨询师");
  216. }}
  217. >
  218. 转交
  219. </Button>
  220. <Button
  221. type="primary"
  222. style={{ margin: "0 10px" }}
  223. onClick={e => {
  224. e.stopPropagation(), this.okCancel(record);
  225. }}
  226. >
  227. 添加工时
  228. </Button>
  229. <Button
  230. type="primary"
  231. onClick={e => {
  232. e.stopPropagation(),
  233. this.evaluate(record, "咨询师经理", true);
  234. }}
  235. >
  236. 回退
  237. </Button>
  238. </div>
  239. );
  240. }
  241. }
  242. ],
  243. dataSource: [],
  244. searchTime: [],
  245. columnsX: [
  246. {
  247. title: "业务项目名称",
  248. dataIndex: "commodityName",
  249. key: "commodityName"
  250. },
  251. {
  252. title: "项目类别",
  253. dataIndex: "cname",
  254. key: "cname"
  255. },
  256. {
  257. title: "项目数量",
  258. dataIndex: "commodityQuantity",
  259. key: "commodityQuantity"
  260. },
  261. {
  262. title: "金额(万元)",
  263. dataIndex: "commodityPrice",
  264. key: "commodityPrice"
  265. },
  266. {
  267. title: "负责人",
  268. dataIndex: "contacts",
  269. key: "contacts"
  270. },
  271. {
  272. title: "负责人电话",
  273. dataIndex: "contactsMobile",
  274. key: "contactsMobile"
  275. },
  276. {
  277. title: "主要项目",
  278. dataIndex: "main",
  279. key: "main",
  280. render: text => {
  281. return text ? "是" : "否";
  282. }
  283. },
  284. {
  285. title: "项目说明",
  286. dataIndex: "taskComment",
  287. key: "taskComment",
  288. render: text => {
  289. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  290. }
  291. }
  292. ],
  293. columnsA: [
  294. {
  295. title: "流程",
  296. dataIndex: "content",
  297. key: "content",
  298. align: "center"
  299. },
  300. {
  301. title: "操作人",
  302. dataIndex: "aName",
  303. key: "aName",
  304. align: "center"
  305. },
  306. {
  307. title: "时间",
  308. dataIndex: "createTimes",
  309. key: "createTimes",
  310. align: "center"
  311. }
  312. ],
  313. dataSourceX: [],
  314. dataSourceA: [],
  315. companys: [],
  316. ContactsLists: [
  317. {
  318. title: "批次",
  319. dataIndex: "num",
  320. key: "num"
  321. },
  322. {
  323. title: "下证时间",
  324. dataIndex: "licenceTimes",
  325. key: "licenceTimes",
  326. render: (text, record) => {
  327. return (
  328. <div>
  329. <DatePicker
  330. style={{ marginTop: "5px" }}
  331. showTime
  332. format="YYYY-MM-DD"
  333. onOk={() => {}}
  334. value={
  335. record.licenceTimes ? moment(record.licenceTimes) : null
  336. }
  337. onChange={(data, dataString) => {
  338. record.licenceTimes = dataString;
  339. this.setState({ contactList: this.state.contactList });
  340. }}
  341. />
  342. </div>
  343. );
  344. }
  345. },
  346. {
  347. title: "下证数量",
  348. dataIndex: "alreadyNumber",
  349. key: "alreadyNumber",
  350. render: (text, record) => {
  351. return (
  352. <div>
  353. {
  354. <Input
  355. value={record.alreadyNumber}
  356. placeholder="请输入下证数量"
  357. key={record.id}
  358. required="required"
  359. onChange={e => {
  360. record.alreadyNumber = e.target.value;
  361. this.setState({ contactList: this.state.contactList });
  362. }}
  363. style={{ width: "120px" }}
  364. />
  365. }
  366. </div>
  367. );
  368. }
  369. },
  370. {
  371. title: "未下证数量",
  372. dataIndex: "notCount",
  373. key: "notCount"
  374. },
  375. {
  376. title: "操作",
  377. dataIndex: "dels",
  378. key: "dels",
  379. render: (text, record, index) => {
  380. return (
  381. <div>
  382. {
  383. <Popconfirm
  384. title="是否删除?"
  385. onConfirm={() => {
  386. this.confirmDelet(record);
  387. }}
  388. okText="删除"
  389. cancelText="不删除"
  390. >
  391. <Button
  392. style={{
  393. marginRight: "10px",
  394. color: "#ffffff",
  395. background: "#f00",
  396. border: "none"
  397. }}
  398. >
  399. 删除
  400. </Button>
  401. </Popconfirm>
  402. }
  403. {record.flag ? (
  404. ""
  405. ) : (
  406. <Button
  407. type="primary"
  408. onClick={e => {
  409. e.stopPropagation(), this.contactSave(record, index);
  410. }}
  411. >
  412. 保存
  413. </Button>
  414. )}
  415. </div>
  416. );
  417. }
  418. }
  419. ],
  420. companyColumns: [
  421. {
  422. title: "公司",
  423. dataIndex: "name",
  424. key: "name",
  425. //fixed:'left',
  426. width: 160
  427. },
  428. {
  429. title: "联系人",
  430. dataIndex: "contacts",
  431. key: "contacts"
  432. },
  433. {
  434. title: "联系人电话",
  435. dataIndex: "contactsMobile",
  436. key: "contactsMobile"
  437. },
  438. {
  439. title: "地址",
  440. dataIndex: "companyProvinceArr",
  441. key: "companyProvinceArr",
  442. width: 140,
  443. render: test => {
  444. return test[0] === null
  445. ? ""
  446. : getprovince(test[0]) +
  447. "/" +
  448. getprovince(test[1]) +
  449. "/" +
  450. getprovince(test[2]);
  451. }
  452. },
  453. {
  454. title: "详细地址",
  455. dataIndex: "address",
  456. key: "address"
  457. },
  458. {
  459. title: "操作",
  460. width: 160,
  461. render: (text, record) => {
  462. return (
  463. <div>
  464. <Button
  465. type="primary"
  466. onClick={() => {
  467. this.setState({
  468. companyId: record.id,
  469. updataSwicth: true,
  470. cName: record.name,
  471. companyContacts: record.contacts,
  472. companyContactsMobile: record.contactsMobile,
  473. companyProvinceArr: record.companyProvinceArr,
  474. companyAddress: record.address,
  475. companyRemarks: record.remarks
  476. });
  477. this.openNotification();
  478. }}
  479. >
  480. 修改
  481. </Button>
  482. <Popconfirm
  483. title="是否确认删除?"
  484. okText="确定"
  485. onConfirm={() => {
  486. this.deleteCompany(record.id);
  487. }}
  488. cancelText="取消"
  489. >
  490. <Button type="danger" style={{ marginLeft: "10px" }}>
  491. 删除
  492. </Button>
  493. </Popconfirm>
  494. </div>
  495. );
  496. }
  497. }
  498. ]
  499. };
  500. },
  501. /* 分派 */
  502. evaluate(record, nub, flag) {
  503. this.state.assignData = record;
  504. this.setState(
  505. {
  506. nub,
  507. assignData: record,
  508. flag
  509. },
  510. () => {
  511. this.setState({
  512. assignVisible: true
  513. });
  514. }
  515. );
  516. },
  517. componentWillMount() {
  518. this.departmentList();
  519. this.loadData();
  520. },
  521. componentDidMount() {
  522. this.setColor();
  523. },
  524. setColor() {
  525. $(".userName span").after(
  526. "(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)"
  527. );
  528. },
  529. tableRowClick(record) {
  530. this.state.RowData = record;
  531. if (record.taskName.substring(0, 5) === "软件著作权") {
  532. this.setState({
  533. speVisible: true,
  534. id: record.id,
  535. dataArr: record,
  536. commodityQuantity: record.commodityQuantity
  537. });
  538. } else {
  539. this.setState({
  540. visible: true
  541. });
  542. }
  543. this.xiangqing(record.id, record.taskName);
  544. this.xiangqings(record.orderNo);
  545. this.xiangmu(record.orderNo);
  546. this.loaduserss(record);
  547. },
  548. //点击修改任务详情
  549. tijiaoOk() {
  550. if(moneyVerify(this.state.setUpAmount)) {
  551. return
  552. }
  553. let attachmentUrls = [];
  554. if (this.state.attachmentUrl.length) {
  555. let picArr = [];
  556. this.state.attachmentUrl.map(function(item) {
  557. if (item.response && item.response.data && item.response.data.length) {
  558. picArr.push(item.response.data);
  559. }
  560. });
  561. attachmentUrls = picArr.join(",");
  562. }
  563. $.ajax({
  564. method: "POST",
  565. dataType: "json",
  566. crossDomain: false,
  567. url: globalConfig.context + "/api/admin/orderProject/updateOrderTask",
  568. data: {
  569. id: this.state.id, //任务编号
  570. orderNo: this.state.orderNo, //订单编号
  571. projectStatus: this.state.projectStatus, //项目状态
  572. taskStatus: this.state.taskStatus, //任务状态
  573. taskComment: this.state.taskComment, //说明
  574. startDate: this.state.startDate, //启动日期
  575. endDate: this.state.endDate, //结束日期
  576. acceptDate: this.state.acceptDate, //受理日期
  577. reviewDate: this.state.reviewDate, //评审日期
  578. publicityDate: this.state.publicityDate, //公示日期
  579. licenceDate: this.state.licenceDate, //发证日期
  580. attachmentUrl: attachmentUrls.length ? attachmentUrls : "", //附件
  581. contacts: this.state.contacts, //联系人
  582. contactMobile: this.state.contactMobile, //联系人电话
  583. legalPerson: this.state.legalPerson, //法人
  584. legalPersonTel: this.state.legalPersonTel, //法人电话
  585. certificateNumber: this.state.certificateNumber, //证书编号
  586. status: this.state.status, //状态
  587. formRetrieve: this.state.formRetrieve, //满意度表格
  588. taskRefund: this.state.taskRefund, //退单
  589. refundContent: this.state.refundContent, //退单信息
  590. retrieveContent: this.state.retrieveContent, //回收信息
  591. locationProvince: this.state.ProvinceCity[0],
  592. locationCity: this.state.ProvinceCity[1],
  593. locationArea: this.state.ProvinceCity[2],
  594. postalAddress: this.state.postalAddress, //详细地址
  595. arrivalMoney: this.state.arrivalMoney, //是否到款
  596. setUpAmount: this.state.setUpAmount, //立项金额
  597. declareUser: this.state.declareUser, //账号
  598. declarePwd: this.state.declarePwd, //密码
  599. outsourceName: this.state.outsourceName, //外包公司名称
  600. outsourcePrice: this.state.outsourcePrice //外包价格
  601. }
  602. }).done(
  603. function(data) {
  604. this.setState({
  605. loading: false
  606. });
  607. if (!data.error.length) {
  608. message.success("保存成功!");
  609. this.visitCancel();
  610. } else {
  611. message.warning(data.error[0].message);
  612. }
  613. }.bind(this)
  614. );
  615. },
  616. //点击修改任务详情
  617. tianjiaOk() {
  618. if (this.state.attachmentUrl.length) {
  619. let picArr = [];
  620. this.state.attachmentUrl.map(function(item) {
  621. if (item.response && item.response.data && item.response.data.length) {
  622. picArr.push(item.response.data);
  623. }
  624. });
  625. }
  626. $.ajax({
  627. method: "POST",
  628. dataType: "json",
  629. crossDomain: false,
  630. url: globalConfig.context + "/api/admin/orderProject/addTaskHours",
  631. data: {
  632. taskId: this.state.taskId, //任务编号
  633. hours: this.state.hours, //工时
  634. remarks: this.state.remarks, //说明
  635. taskDate: this.state.taskDate, //日期
  636. taskComment: this.state.taskComment //说明
  637. }
  638. }).done(
  639. function(data) {
  640. this.setState({
  641. loading: false
  642. });
  643. if (!data.error.length) {
  644. message.success("保存成功!");
  645. this.noCancel();
  646. } else {
  647. message.warning(data.error[0].message);
  648. }
  649. }.bind(this)
  650. );
  651. },
  652. //订单详情
  653. xiangqing(id) {
  654. $.ajax({
  655. method: "get",
  656. dataType: "json",
  657. crossDomain: false,
  658. url: globalConfig.context + "/api/admin/orderProject/orderTaskDetail",
  659. data: {
  660. id: id
  661. },
  662. success: function(data) {
  663. let thisdata = data.data;
  664. if (data.error.length || data.data.list == "") {
  665. if (data.error && data.error.length) {
  666. message.warning(data.error[0].message);
  667. }
  668. } else {
  669. this.setState({
  670. id: thisdata.id, //ID
  671. orderNo: thisdata.orderNo, //订单编号
  672. userName: thisdata.userName, //客户名称
  673. taskName: thisdata.taskName, //任务名称
  674. cname: thisdata.cname, //项目品类
  675. contractNo: thisdata.contractNo, //合同编号
  676. projectStatus: thisdata.projectStatus.toString(), //项目状态
  677. taskStatus: thisdata.taskStatus.toString(), //任务状态
  678. taskDate: thisdata.taskDate, //分配时间
  679. taskComment: thisdata.taskComment, //说明
  680. attachmentUrl: thisdata.attachmentUrl
  681. ? splitUrl(
  682. thisdata.attachmentUrl,
  683. ",",
  684. globalConfig.avatarHost + "/upload"
  685. )
  686. : [], //图片地址
  687. salesmanName: thisdata.salesmanName, //订单负责人
  688. startDate: thisdata.startDate, //启动日期
  689. endDate: thisdata.endDate, //结束日期
  690. acceptDate: thisdata.acceptDate, //受理日期
  691. reviewDate: thisdata.reviewDate, //评审日期
  692. publicityDate: thisdata.publicityDate, //公示日期
  693. licenceDate: thisdata.licenceDate, //发证日期
  694. contacts: thisdata.contacts, //联系人
  695. contactMobile: thisdata.contactMobile, //联系人电话
  696. legalPerson: thisdata.legalPerson, //法人
  697. legalPersonTel: thisdata.legalPersonTel, //法人电话
  698. certificateNumber: thisdata.certificateNumber, //证书编号
  699. status: thisdata.status, //状态
  700. formRetrieve: thisdata.formRetrieve, //满意度表格
  701. taskRefund: thisdata.taskRefund, //退单
  702. refundContent: thisdata.refundContent, //退单信息
  703. retrieveContent: thisdata.retrieveContent, //回收信息
  704. arrivalMoney: thisdata.arrivalMoney, //是否到款
  705. setUpAmount: thisdata.setUpAmount, //立项金额
  706. declareUser: thisdata.declareUser, //账号
  707. declarePwd: thisdata.declarePwd, //密码
  708. outsourceName: thisdata.outsourceName, //外包公司名称
  709. outsourcePrice: thisdata.outsourcePrice //外包价格
  710. });
  711. }
  712. }.bind(this)
  713. }).always(
  714. function() {
  715. this.setState({
  716. loading: false
  717. });
  718. }.bind(this)
  719. );
  720. },
  721. //订单详情
  722. xiangqings(orderNos) {
  723. $.ajax({
  724. method: "get",
  725. dataType: "json",
  726. crossDomain: false,
  727. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  728. data: {
  729. orderNo: orderNos
  730. },
  731. success: function(data) {
  732. let thisdata = data.data;
  733. let ProvinceCityArr = [];
  734. let ProvinceS = thisdata.locationProvince; //省
  735. let citys = thisdata.locationCity; //市
  736. let Areas = thisdata.locationArea; //区
  737. ProvinceCityArr.push(ProvinceS, citys, Areas);
  738. if (data.error.length || data.data.list == "") {
  739. if (data.error && data.error.length) {
  740. message.warning(data.error[0].message);
  741. }
  742. } else {
  743. this.setState({
  744. processStatus: thisdata.processStatus, //流程状态
  745. liquidationStatus: thisdata.liquidationStatus, //结算状态
  746. approval: thisdata.approval, //特批状态
  747. orderRemarks: thisdata.orderRemarks, //订单留言
  748. salesmanName: thisdata.salesmanName, //营销员名称
  749. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  750. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  751. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  752. financeName: thisdata.financeName, //财务名称
  753. financeMobile: thisdata.financeMobile, //财务电话
  754. nowFinance: thisdata.nowFinance, //财务名称
  755. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  756. depName: thisdata.depName, //订单部门
  757. ProvinceCity: ProvinceCityArr[0] === null ? [] : ProvinceCityArr,
  758. postalAddress: thisdata.postalAddress //详细地址
  759. });
  760. }
  761. }.bind(this)
  762. }).always(
  763. function() {
  764. this.setState({
  765. loading: false
  766. });
  767. }.bind(this)
  768. );
  769. },
  770. //项目列表
  771. xiangmu(orderNos) {
  772. $.ajax({
  773. method: "get",
  774. dataType: "json",
  775. crossDomain: false,
  776. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  777. data: {
  778. orderNo: orderNos
  779. },
  780. success: function(data) {
  781. let theArr = [];
  782. if (data.error.length || data.data.list == "") {
  783. if (data.error && data.error.length) {
  784. message.warning(data.error[0].message);
  785. }
  786. } else {
  787. for (let i = 0; i < data.data.length; i++) {
  788. let thisdata = data.data[i];
  789. theArr.push({
  790. key: i,
  791. id: thisdata.id,
  792. orderNo: thisdata.orderNo, //订单编号
  793. commodityId: thisdata.commodityId, //项目ID
  794. commodityName: thisdata.commodityName, //项目名称
  795. cname: thisdata.cname, //项目类别
  796. commodityPrice: thisdata.commodityPrice, //项目价格
  797. commodityQuantity: thisdata.commodityQuantity, //项目数量
  798. main: thisdata.main, //是否为主要任务
  799. taskComment: thisdata.taskComment, //任务说明
  800. contacts: thisdata.contacts, //联系人
  801. contactsMobile: thisdata.contactsMobile, //联系人电话
  802. taskStatus: thisdata.taskStatus, //是否分配
  803. contractNo: thisdata.contractNo, //合同编号
  804. certificateNumber: thisdata.certificateNumber
  805. });
  806. }
  807. }
  808. this.setState({
  809. dataSourceX: theArr
  810. });
  811. }.bind(this)
  812. }).always(
  813. function() {
  814. this.setState({
  815. loading: false
  816. });
  817. }.bind(this)
  818. );
  819. },
  820. //导出
  821. exportExec() {
  822. let departmentName = "",
  823. depart = this.state.departmentArr || [];
  824. depart.map(item => {
  825. if (this.state.departmentId == item.id) {
  826. departmentName = item.name;
  827. return;
  828. }
  829. });
  830. let data = {
  831. departmentId: this.state.departmentId,
  832. departmentName: departmentName,
  833. salesName: this.state.orderRefundSearch, //订单负责人
  834. startTime: this.state.releaseDate[0],
  835. endTime: this.state.releaseDate[1],
  836. grantStatus: this.state.grantStatus
  837. };
  838. window.location.href =
  839. globalConfig.context +
  840. "/api/admin/orderProject/exportMyTaskList?" +
  841. $.param(data);
  842. },
  843. //关闭详情
  844. visitCancel() {
  845. this.setState({
  846. visible: false,
  847. speVisible: false,
  848. modKey: "1",
  849. updataSwicth: false
  850. });
  851. this.companyReset();
  852. this.reset();
  853. },
  854. visitOk() {
  855. this.setState({
  856. visible: false,
  857. speVisible: false
  858. });
  859. this.reset();
  860. },
  861. closeDesc(e, s) {
  862. this.state.showDesc = e;
  863. if (s) {
  864. this.loadData(this.state.page);
  865. }
  866. },
  867. closeAssign(e, s) {
  868. this.state.roleName = "";
  869. this.state.assignVisible = e;
  870. if (s) {
  871. this.loadData(this.state.page);
  872. }
  873. },
  874. //添加工时
  875. okCancel(record) {
  876. this.setState({
  877. lookVisible: true,
  878. taskId: record.id
  879. });
  880. },
  881. //测试
  882. getOrgCodeUrl(e) {
  883. this.setState({ orgCodeUrl: e });
  884. },
  885. //查看下证信息
  886. loaduserss(record) {
  887. $.ajax({
  888. method: "get",
  889. dataType: "json",
  890. crossDomain: false,
  891. url: globalConfig.context + "/api/admin/orderProject/selectTaskProgress",
  892. data: {
  893. tid: record.id
  894. },
  895. success: function(data) {
  896. let theArr = [];
  897. let thisData = [];
  898. if (!thisData) {
  899. if (data.error && data.error.length) {
  900. message.warning(data.error[0].message);
  901. }
  902. thisData = {};
  903. } else {
  904. for (let i = 0; i < data.data.length; i++) {
  905. thisData = data.data[i];
  906. theArr.push({
  907. num: i + 1,
  908. key: i,
  909. id: thisData.id, //编号
  910. alreadyNumber: thisData.alreadyNumber, //下证数
  911. licenceTimes: thisData.licenceTimes, //下证时间
  912. notCount: thisData.notCount, //未下证数
  913. flag: true
  914. });
  915. }
  916. this.setState({
  917. contactList: theArr
  918. });
  919. }
  920. }.bind(this)
  921. }).always(
  922. function() {
  923. this.setState({
  924. loading: false
  925. });
  926. }.bind(this)
  927. );
  928. },
  929. //下证信息保存
  930. contactSave(record) {
  931. if (!record.licenceTimes) {
  932. message.warning("下证日期不能为空");
  933. return;
  934. }
  935. if (!record.alreadyNumber) {
  936. message.warning("下证数量不能为空");
  937. return;
  938. }
  939. this.setState({
  940. loading: true
  941. });
  942. $.ajax({
  943. url: globalConfig.context + "/api/admin/orderProject/createTaskProgress",
  944. method: "post",
  945. data: {
  946. taskId: this.state.id,
  947. licenceTimes: record.licenceTimes,
  948. alreadyNumber: record.alreadyNumber
  949. }
  950. }).done(
  951. function(data) {
  952. this.setState({
  953. loading: false
  954. });
  955. if (!data.error.length) {
  956. message.success("保存成功!");
  957. record.flag = true;
  958. this.loaduserss(this.state.dataArr);
  959. } else {
  960. message.warning(data.error[0].message);
  961. }
  962. }.bind(this)
  963. );
  964. },
  965. //下证信息删除
  966. contactDele(record) {
  967. this.setState({
  968. loading: true
  969. });
  970. $.ajax({
  971. url: globalConfig.context + "/api/admin/orderProject/delectTaskProgress",
  972. method: "post",
  973. data: {
  974. id: record.id
  975. }
  976. }).done(
  977. function(data) {
  978. this.setState({
  979. loading: false
  980. });
  981. if (!data.error.length) {
  982. this.loaduserss(this.state.dataArr);
  983. } else {
  984. message.warning(data.error[0].message);
  985. }
  986. }.bind(this)
  987. );
  988. },
  989. //点击新增下证信息
  990. addcontact() {
  991. this.state.contactList.push({
  992. num: this.state.contactList.length + 1,
  993. key: this.state.contactList.length,
  994. licenceTimes: "",
  995. alreadyNumber: "",
  996. notCount: "",
  997. dels: "",
  998. flag: false,
  999. aflag: false
  1000. });
  1001. this.setState({
  1002. contactList: this.state.contactList
  1003. });
  1004. },
  1005. //删除下证信息
  1006. confirmDelet(record) {
  1007. this.state.contactList.splice(record.key, 1);
  1008. this.setState({
  1009. contactList: this.state.contactList
  1010. });
  1011. if (record.id) {
  1012. this.contactDele(record);
  1013. }
  1014. },
  1015. caozuorizhi() {
  1016. this.setState({
  1017. visibleA: true
  1018. });
  1019. $.ajax({
  1020. method: "get",
  1021. dataType: "json",
  1022. crossDomain: false,
  1023. url: globalConfig.context + "/api/admin/orderProject/TaskLogList",
  1024. data: {
  1025. id: this.state.id
  1026. },
  1027. success: function(data) {
  1028. let theArr = [];
  1029. if (data.error.length || data.data.list == "") {
  1030. if (data.error && data.error.length) {
  1031. message.warning(data.error[0].message);
  1032. }
  1033. } else {
  1034. for (let i = 0; i < data.data.length; i++) {
  1035. let thisdata = data.data[i];
  1036. theArr.push({
  1037. key: i,
  1038. id: thisdata.id, //日志ID
  1039. content: thisdata.content, //流程
  1040. taskId: thisdata.taskId, //任务ID
  1041. aName: thisdata.aName, //负责人
  1042. createTimes: thisdata.createTimes //时间
  1043. });
  1044. }
  1045. }
  1046. this.setState({
  1047. dataSourceA: theArr
  1048. });
  1049. }.bind(this)
  1050. }).always(
  1051. function() {
  1052. this.setState({
  1053. loading: false
  1054. });
  1055. }.bind(this)
  1056. );
  1057. },
  1058. //通知提醒
  1059. openNotification() {
  1060. notification.open({
  1061. message: "提醒",
  1062. description: "请在输入框中重新输入需要修改的选项!"
  1063. });
  1064. },
  1065. //关闭操作工时
  1066. visitCancelA() {
  1067. this.setState({
  1068. visibleA: false
  1069. });
  1070. },
  1071. callBack(e) {
  1072. this.setState({
  1073. modKey: e
  1074. });
  1075. this.loadCompany();
  1076. },
  1077. //添加公司
  1078. addCompany() {
  1079. this.setState({
  1080. switch: true
  1081. });
  1082. },
  1083. //保存和修改公司
  1084. saveCompany(id) {
  1085. if (this.companyJugle()) {
  1086. let upAndde = this.state.updataSwicth
  1087. ? {
  1088. api: "/api/admin/outsourceOrg/updateOutsourceOrg",
  1089. warn: "修改成功",
  1090. data: {
  1091. id: id,
  1092. name: this.state.cName,
  1093. contacts: this.state.companyContacts,
  1094. contactsMobile: this.state.companyContactsMobile,
  1095. province: this.state.companyProvinceArr[0],
  1096. city: this.state.companyProvinceArr[1],
  1097. area: this.state.companyProvinceArr[2],
  1098. address: this.state.companyAddress,
  1099. remarks: this.state.companyRemarks
  1100. }
  1101. }
  1102. : {
  1103. api: "/api/admin/outsourceOrg/addOutsourceOrg",
  1104. warn: "保存成功",
  1105. data: {
  1106. name: this.state.cName,
  1107. tid: this.state.RowData.id,
  1108. contacts: this.state.companyContacts,
  1109. contactsMobile: this.state.companyContactsMobile,
  1110. orderNo: this.state.orderNo,
  1111. province: this.state.companyProvinceArr[0],
  1112. city: this.state.companyProvinceArr[1],
  1113. area: this.state.companyProvinceArr[2],
  1114. address: this.state.companyAddress,
  1115. remarks: this.state.companyRemarks
  1116. }
  1117. };
  1118. $.ajax({
  1119. method: "post",
  1120. dataType: "json",
  1121. crossDomain: false,
  1122. url: globalConfig.context + upAndde.api,
  1123. data: upAndde.data,
  1124. success: function(data) {
  1125. if (data.error.length || data.data.list == "") {
  1126. if (data.error && data.error.length) {
  1127. message.warning(data.error[0].message);
  1128. }
  1129. }
  1130. }.bind(this)
  1131. }).done(
  1132. function() {
  1133. this.setState({
  1134. loading: false,
  1135. updataSwicth: false
  1136. });
  1137. this.companyReset();
  1138. message.warning(upAndde.warn);
  1139. this.loadCompany();
  1140. }.bind(this)
  1141. );
  1142. }
  1143. },
  1144. //判断
  1145. companyJugle() {
  1146. if (this.state.cName === undefined) {
  1147. console.log(2345);
  1148. message.warning("公司名称不能为空!");
  1149. return;
  1150. }
  1151. if (this.state.companyContacts === undefined) {
  1152. message.warning("联系人不能为空!");
  1153. return;
  1154. }
  1155. if (this.state.companyContactsMobile === undefined) {
  1156. message.warning("联系人电话不能为空!");
  1157. return;
  1158. }
  1159. return true;
  1160. },
  1161. //删除外包
  1162. deleteCompany(id) {
  1163. $.ajax({
  1164. method: "post",
  1165. dataType: "json",
  1166. crossDomain: false,
  1167. url: globalConfig.context + "/api/admin/outsourceOrg/deleteOutsourceOrg",
  1168. data: {
  1169. id: id
  1170. },
  1171. success: function() {}.bind(this)
  1172. }).done(
  1173. function() {
  1174. this.setState({
  1175. loading: false
  1176. });
  1177. message.warning("删除成功");
  1178. this.loadCompany();
  1179. }.bind(this)
  1180. );
  1181. },
  1182. //重置外包
  1183. companyReset() {
  1184. this.setState({
  1185. cName: undefined,
  1186. companyContacts: undefined,
  1187. companyContactsMobile: undefined,
  1188. companyProvinceArr: [],
  1189. companyAddress: undefined,
  1190. companyRemarks: undefined
  1191. });
  1192. },
  1193. //加载外包
  1194. loadCompany() {
  1195. this.setState({
  1196. loading: true
  1197. });
  1198. $.ajax({
  1199. method: "get",
  1200. dataType: "json",
  1201. crossDomain: false,
  1202. url: globalConfig.context + "/api/admin/outsourceOrg/selectOutsourceOrg",
  1203. data: {
  1204. orderNo: this.state.RowData.orderNo,
  1205. tid: this.state.RowData.id
  1206. },
  1207. success: function(data) {
  1208. let theArr = [];
  1209. if (data.error.length || data.data.list == "") {
  1210. if (data.error && data.error.length) {
  1211. message.warning(data.error[0].message);
  1212. }
  1213. } else {
  1214. for (let i = 0; i < data.data.length; i++) {
  1215. let thisdata = data.data[i];
  1216. let ProvinceCityArr = [];
  1217. let ProvinceS = thisdata.province; //省
  1218. let citys = thisdata.city; //市
  1219. let Areas = thisdata.area; //区
  1220. ProvinceCityArr.push(ProvinceS, citys, Areas);
  1221. theArr.push({
  1222. key: i,
  1223. id: thisdata.id, //外包Id
  1224. name: thisdata.name, //名称
  1225. contacts: thisdata.contacts, //联系人
  1226. contactsMobile: thisdata.contactsMobile, //联系人电话
  1227. companyProvinceArr: ProvinceCityArr,
  1228. address: thisdata.address,
  1229. remarks: thisdata.remarks
  1230. });
  1231. }
  1232. }
  1233. this.setState({
  1234. companys: theArr
  1235. });
  1236. }.bind(this)
  1237. }).always(
  1238. function() {
  1239. this.setState({
  1240. loading: false
  1241. });
  1242. }.bind(this)
  1243. );
  1244. },
  1245. foo2() {
  1246. this.setState({
  1247. testFlag1: false
  1248. });
  1249. },
  1250. foo1() {
  1251. this.setState({
  1252. testFlag1: true
  1253. });
  1254. },
  1255. foo() {
  1256. this.setState({
  1257. testFlag: false
  1258. });
  1259. },
  1260. nextCancel() {
  1261. this.setState({
  1262. addnextVisible: false
  1263. });
  1264. },
  1265. //点击打卡项目详情
  1266. tableRowClickX(record) {
  1267. this.setState({
  1268. jid: record.id, //项目ID
  1269. kid: record.commodityId, //商品ID
  1270. commodityName: record.commodityName, //金额
  1271. commodityPrice: record.commodityPrice, //金额
  1272. commodityQuantity: record.commodityQuantity, //数量
  1273. taskComment: record.taskComment, //备注
  1274. main: record.main.toString(), //是否为主要
  1275. addnextVisible: true,
  1276. addState: 0
  1277. });
  1278. },
  1279. //关闭添加工时
  1280. noCancel() {
  1281. this.setState({
  1282. lookVisible: false
  1283. });
  1284. this.reset();
  1285. },
  1286. search() {
  1287. this.loadData();
  1288. },
  1289. reset() {
  1290. this.state.id = ""; //任务编号
  1291. this.state.orderNo = ""; //订单编号
  1292. this.state.projectStatus = undefined; //项目状态
  1293. this.state.taskStatus = undefined; //任务状态
  1294. this.state.taskComment = ""; //说明
  1295. this.state.startDate = ""; //启动日期
  1296. this.state.endDate = ""; //结束日期
  1297. this.state.acceptDate = ""; //受理日期
  1298. this.state.reviewDate = ""; //评审日期
  1299. this.state.publicityDate = ""; //公示日期
  1300. this.state.licenceDate = ""; //发证日期
  1301. attachmentUrl: []; //附件
  1302. this.state.contacts = ""; //联系人
  1303. this.state.contactMobile = ""; //联系人电话
  1304. this.state.legalPerson = ""; //法人
  1305. this.state.legalPersonTel = ""; //法人电话
  1306. this.state.taskId = ""; //任务编号
  1307. this.state.hours = ""; //工时
  1308. this.state.remarks = ""; //说明
  1309. this.state.taskDate = ""; //日期
  1310. this.state.taskComment = ""; //说明
  1311. this.state.nameSearch = "";
  1312. this.state.releaseDate = [];
  1313. this.state.orderNoSearch = "";
  1314. this.state.taskNoSearch = "";
  1315. this.state.distribution = undefined;
  1316. this.state.departmenttSearch = undefined;
  1317. this.state.outsourceName = ""; //外包公司名称
  1318. this.state.outsourcePrice = ""; //外包价格
  1319. this.loadData(this.state.page);
  1320. },
  1321. searchSwitch() {
  1322. this.setState({
  1323. searchMore: !this.state.searchMore
  1324. });
  1325. },
  1326. //部门
  1327. departmentList() {
  1328. this.setState({
  1329. loading: true
  1330. });
  1331. $.ajax({
  1332. method: "get",
  1333. dataType: "json",
  1334. crossDomain: false,
  1335. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  1336. data: {},
  1337. success: function(data) {
  1338. let thedata = data.data;
  1339. let theArr = [];
  1340. if (!thedata) {
  1341. if (data.error && data.error.length) {
  1342. message.warning(data.error[0].message);
  1343. }
  1344. thedata = {};
  1345. } else {
  1346. thedata.map(function(item, index) {
  1347. theArr.push({
  1348. key: index,
  1349. name: item.name,
  1350. id: item.id
  1351. });
  1352. });
  1353. }
  1354. this.setState({
  1355. departmentArr: theArr
  1356. });
  1357. }.bind(this)
  1358. }).always(
  1359. function() {
  1360. this.setState({
  1361. loading: false
  1362. });
  1363. }.bind(this)
  1364. );
  1365. },
  1366. render() {
  1367. const { TabPane } = Tabs;
  1368. const formItemLayout = {
  1369. labelCol: { span: 8 },
  1370. wrapperCol: { span: 14 }
  1371. };
  1372. let departmentArr = this.state.departmentArr || [];
  1373. return (
  1374. <div className="user-content">
  1375. <div className="content-title">
  1376. <span>我的外包任务</span>
  1377. </div>
  1378. <div className="user-search">
  1379. <Input
  1380. placeholder="客户名称"
  1381. value={this.state.nameSearch}
  1382. onChange={e => {
  1383. this.setState({ nameSearch: e.target.value });
  1384. }}
  1385. />
  1386. <Input
  1387. placeholder="订单编号"
  1388. value={this.state.orderNoSearch}
  1389. onChange={e => {
  1390. this.setState({ orderNoSearch: e.target.value });
  1391. }}
  1392. />
  1393. <Input
  1394. placeholder="任务编号"
  1395. value={this.state.taskNoSearch}
  1396. onChange={e => {
  1397. this.setState({ taskNoSearch: e.target.value });
  1398. }}
  1399. />
  1400. <Select
  1401. placeholder="选择部门"
  1402. style={{ width: 150, marginRight: "10px" }}
  1403. value={this.state.departmenttSearch}
  1404. onChange={e => {
  1405. this.setState({ departmenttSearch: e });
  1406. }}
  1407. >
  1408. {departmentArr.map(function(item) {
  1409. return <Select.Option key={item.id}>{item.name}</Select.Option>;
  1410. })}
  1411. </Select>
  1412. <Button type="primary" onClick={this.search}>
  1413. 搜索
  1414. </Button>
  1415. <Button onClick={this.reset}>重置</Button>
  1416. {/*<Button type='primary' style={{marginLeft:'10px'}} onClick={this.exportExec}>导出Excel</Button>*/}
  1417. {/* <span>更多搜索<Switch defaultChecked={false} onChange={this.searchSwitch.bind(this)} /></span>
  1418. <div className="search-more" style={this.state.searchMore ? { display: 'none' } : {}}>
  1419. <span>订单时间 :</span>
  1420. <RangePicker
  1421. value={[this.state.releaseDate[0] ? moment(this.state.releaseDate[0]) : null,
  1422. this.state.releaseDate[1] ? moment(this.state.releaseDate[1]) : null]}
  1423. onChange={(data, dataString) => { this.setState({ releaseDate: dataString }); }} />
  1424. </div> */}
  1425. </div>
  1426. <div className="patent-table">
  1427. <Spin spinning={this.state.loading}>
  1428. <Table
  1429. columns={this.state.columns}
  1430. dataSource={this.state.dataSource}
  1431. pagination={this.state.pagination}
  1432. onRowClick={this.tableRowClick.bind(this)}
  1433. />
  1434. </Spin>
  1435. </div>
  1436. <Assign
  1437. title="任务"
  1438. selApi={"/api/admin/orderProject/projectDistribution"}
  1439. data={this.state.assignData}
  1440. showDesc={this.state.assignVisible}
  1441. closeDesc={this.closeAssign.bind(this)}
  1442. fenpaiData={8}
  1443. specially={0}
  1444. roleName={this.state.nub}
  1445. requestMethod={"post"}
  1446. flag={this.state.flag}
  1447. />
  1448. <Modal
  1449. className="customeDetails"
  1450. footer=""
  1451. title=""
  1452. width="900px"
  1453. visible={this.state.visible}
  1454. onOk={this.visitOk}
  1455. onCancel={this.visitCancel}
  1456. >
  1457. <Tabs
  1458. onChange={this.callBack}
  1459. type="card"
  1460. activeKey={this.state.modKey}
  1461. >
  1462. <TabPane tab="项目概况" key="1">
  1463. <Form
  1464. layout="horizontal"
  1465. onSubmit={this.handleSubmit}
  1466. id="demand-form"
  1467. style={{ paddingBottom: "00px" }}
  1468. >
  1469. <Spin spinning={this.state.loading}>
  1470. <div className="clearfix">
  1471. <div className="clearfix">
  1472. <FormItem
  1473. className="half-item"
  1474. {...formItemLayout}
  1475. label="当前项目情况"
  1476. >
  1477. <Radio.Group
  1478. value={this.state.status}
  1479. onChange={e => {
  1480. this.setState({ status: e.target.value });
  1481. }}
  1482. >
  1483. <Radio value={0}>开启</Radio>
  1484. <Radio value={1}>暂停</Radio>
  1485. </Radio.Group>
  1486. <Button
  1487. type="primary"
  1488. size="small"
  1489. style={{ marginTop: "5px", position: "absolute" }}
  1490. onClick={this.caozuorizhi}
  1491. >
  1492. 操作日志
  1493. </Button>
  1494. </FormItem>
  1495. <FormItem
  1496. className="half-item"
  1497. {...formItemLayout}
  1498. label="合同编号"
  1499. >
  1500. <span>{this.state.contractNo}</span>
  1501. </FormItem>
  1502. </div>
  1503. <div className="clearfix">
  1504. <FormItem
  1505. className="half-item"
  1506. {...formItemLayout}
  1507. label="项目状态"
  1508. >
  1509. <Select
  1510. placeholder="选择项目状态"
  1511. style={{ width: "200px" }}
  1512. value={this.state.projectStatus}
  1513. onChange={e => {
  1514. this.setState({ projectStatus: e });
  1515. }}
  1516. >
  1517. {projectStatus.map(function(item) {
  1518. return (
  1519. <Select.Option key={item.value}>
  1520. {item.key}
  1521. </Select.Option>
  1522. );
  1523. })}
  1524. </Select>
  1525. </FormItem>
  1526. <FormItem
  1527. className="half-item"
  1528. {...formItemLayout}
  1529. label="是否特批"
  1530. >
  1531. <span>{getApproval(this.state.approval)}</span>
  1532. </FormItem>
  1533. <FormItem
  1534. className="half-item"
  1535. {...formItemLayout}
  1536. label="结算状态"
  1537. >
  1538. <span>
  1539. {getLiquidationStatus(this.state.liquidationStatus)}
  1540. </span>
  1541. </FormItem>
  1542. <FormItem
  1543. className="half-item"
  1544. {...formItemLayout}
  1545. label="流程状态"
  1546. >
  1547. <span>
  1548. {getProcessStatus(this.state.processStatus)}
  1549. </span>
  1550. </FormItem>
  1551. <FormItem
  1552. className="half-item"
  1553. {...formItemLayout}
  1554. label="订单编号"
  1555. >
  1556. <span>{this.state.orderNo}</span>
  1557. </FormItem>
  1558. </div>
  1559. <div className="clearfix">
  1560. <FormItem
  1561. className="half-item"
  1562. {...formItemLayout}
  1563. label="满意度表格"
  1564. >
  1565. <Radio.Group
  1566. value={this.state.formRetrieve}
  1567. onChange={e => {
  1568. this.setState({ formRetrieve: e.target.value });
  1569. }}
  1570. >
  1571. <Radio value={0}>未收回</Radio>
  1572. <Radio value={1}>已收回</Radio>
  1573. <Radio value={2}>其他</Radio>
  1574. </Radio.Group>
  1575. </FormItem>
  1576. <FormItem
  1577. className="half-item"
  1578. {...formItemLayout}
  1579. label="退单"
  1580. >
  1581. <Radio.Group
  1582. value={this.state.taskRefund}
  1583. onChange={e => {
  1584. this.setState({ taskRefund: e.target.value });
  1585. }}
  1586. >
  1587. <Radio value={0}>已完成</Radio>
  1588. <Radio value={1}>未完成</Radio>
  1589. <Radio value={2}>其他</Radio>
  1590. </Radio.Group>
  1591. </FormItem>
  1592. </div>
  1593. <div className="clearfix">
  1594. {
  1595. <FormItem
  1596. className="half-item"
  1597. {...formItemLayout}
  1598. label="(满意度)备注"
  1599. >
  1600. <Input
  1601. type="textarea"
  1602. placeholder="请输入备注"
  1603. rows={2}
  1604. value={this.state.retrieveContent}
  1605. onChange={e => {
  1606. this.setState({
  1607. retrieveContent: e.target.value
  1608. });
  1609. }}
  1610. />
  1611. </FormItem>
  1612. }
  1613. {
  1614. <FormItem
  1615. className="half-item"
  1616. {...formItemLayout}
  1617. label="(退单)备注"
  1618. >
  1619. <Input
  1620. type="textarea"
  1621. placeholder="请输入备注"
  1622. rows={2}
  1623. value={this.state.refundContent}
  1624. onChange={e => {
  1625. this.setState({ refundContent: e.target.value });
  1626. }}
  1627. />
  1628. </FormItem>
  1629. }
  1630. </div>
  1631. <div className="clearfix">
  1632. <h3 className="sub-title">订单负责人信息</h3>
  1633. <FormItem
  1634. className="half-item"
  1635. {...formItemLayout}
  1636. label="负责人"
  1637. >
  1638. <span>
  1639. {this.state.salesmanName +
  1640. "(" +
  1641. this.state.depName +
  1642. ")"}
  1643. </span>
  1644. </FormItem>
  1645. <FormItem
  1646. className="half-item"
  1647. {...formItemLayout}
  1648. label="负责人电话"
  1649. >
  1650. <span>{this.state.salesmanMobile}</span>
  1651. </FormItem>
  1652. <FormItem
  1653. className="half-item"
  1654. {...formItemLayout}
  1655. label="当前财务负责人"
  1656. >
  1657. <span>{this.state.nowFinance}</span>
  1658. </FormItem>
  1659. <FormItem
  1660. className="half-item"
  1661. {...formItemLayout}
  1662. label="当前财务负责人电话"
  1663. >
  1664. <span>{this.state.nowFinanceMobile}</span>
  1665. </FormItem>
  1666. <FormItem
  1667. className="half-item"
  1668. {...formItemLayout}
  1669. style={{ opacity: ".5" }}
  1670. label="原负责人"
  1671. >
  1672. <span>{this.state.oldSalesmanName}</span>
  1673. </FormItem>
  1674. <FormItem
  1675. className="half-item"
  1676. {...formItemLayout}
  1677. style={{ opacity: ".5" }}
  1678. label="原负责人电话"
  1679. >
  1680. <span>{this.state.oldSalesmanMobile}</span>
  1681. </FormItem>
  1682. <FormItem
  1683. className="half-item"
  1684. {...formItemLayout}
  1685. style={{ opacity: ".5" }}
  1686. label="实际财务操作人"
  1687. >
  1688. <span>{this.state.financeName}</span>
  1689. </FormItem>
  1690. <FormItem
  1691. className="half-item"
  1692. {...formItemLayout}
  1693. style={{ opacity: ".5" }}
  1694. label="实际财务操作人电话"
  1695. >
  1696. <span>{this.state.financeMobile}</span>
  1697. </FormItem>
  1698. </div>
  1699. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1700. <div className="clearfix">
  1701. <h3 className="sub-title">联系信息</h3>
  1702. <FormItem
  1703. className="half-item"
  1704. {...formItemLayout}
  1705. label="客户名称"
  1706. >
  1707. <span>{this.state.userName}</span>
  1708. </FormItem>
  1709. <FormItem
  1710. className="half-item"
  1711. {...formItemLayout}
  1712. label="企业法人"
  1713. >
  1714. <Input
  1715. placeholder="请输入法人名称"
  1716. value={this.state.legalPerson}
  1717. style={{ width: "200px" }}
  1718. onChange={e => {
  1719. this.setState({ legalPerson: e.target.value });
  1720. }}
  1721. ref="commodityQuantity"
  1722. />
  1723. </FormItem>
  1724. <FormItem
  1725. className="half-item"
  1726. {...formItemLayout}
  1727. label="法人电话"
  1728. >
  1729. <Input
  1730. placeholder="请输入法人电话"
  1731. value={this.state.legalPersonTel}
  1732. style={{ width: "200px" }}
  1733. onChange={e => {
  1734. this.setState({ legalPersonTel: e.target.value });
  1735. }}
  1736. ref="commodityQuantity"
  1737. />
  1738. </FormItem>
  1739. <FormItem
  1740. className="half-item"
  1741. {...formItemLayout}
  1742. label="客户联系人"
  1743. >
  1744. <Input
  1745. placeholder="请输入联系人名称"
  1746. value={this.state.contacts}
  1747. style={{ width: "200px" }}
  1748. onChange={e => {
  1749. this.setState({ contacts: e.target.value });
  1750. }}
  1751. ref="commodityQuantity"
  1752. />
  1753. </FormItem>
  1754. <FormItem
  1755. className="half-item"
  1756. {...formItemLayout}
  1757. label="联系人电话"
  1758. >
  1759. <Input
  1760. placeholder="请输入联系人电话"
  1761. value={this.state.contactMobile}
  1762. style={{ width: "200px" }}
  1763. onChange={e => {
  1764. this.setState({ contactMobile: e.target.value });
  1765. }}
  1766. ref="commodityQuantity"
  1767. />
  1768. </FormItem>
  1769. <FormItem
  1770. className="half-item"
  1771. {...formItemLayout}
  1772. label="企业地址"
  1773. >
  1774. <Cascader
  1775. options={areaSelect()}
  1776. value={this.state.ProvinceCity}
  1777. placeholder="选择城市"
  1778. style={{ width: "200px" }}
  1779. onChange={e => {
  1780. this.setState({ ProvinceCity: e });
  1781. }}
  1782. />
  1783. </FormItem>
  1784. <FormItem
  1785. className="half-item"
  1786. {...formItemLayout}
  1787. label=""
  1788. ></FormItem>
  1789. <FormItem
  1790. className="half-item"
  1791. {...formItemLayout}
  1792. label=""
  1793. >
  1794. <Input
  1795. placeholder="请输入详细地址"
  1796. value={this.state.postalAddress}
  1797. style={{ width: "200px", marginLeft: "12em" }}
  1798. onChange={e => {
  1799. this.setState({ postalAddress: e.target.value });
  1800. }}
  1801. ref="commodityQuantity"
  1802. />
  1803. </FormItem>
  1804. </div>
  1805. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1806. <div className="clearfix">
  1807. <h3 className="sub-title">任务信息</h3>
  1808. <FormItem
  1809. className="half-item"
  1810. {...formItemLayout}
  1811. label="任务编号"
  1812. >
  1813. <span>{this.state.id}</span>
  1814. </FormItem>
  1815. <FormItem
  1816. className="half-item"
  1817. {...formItemLayout}
  1818. label="任务名称"
  1819. >
  1820. <span>{this.state.taskName}</span>
  1821. </FormItem>
  1822. <FormItem
  1823. className="half-item"
  1824. {...formItemLayout}
  1825. label="任务状态"
  1826. >
  1827. <Select
  1828. placeholder="选择任务状态"
  1829. style={{ width: "200px" }}
  1830. value={this.state.taskStatus}
  1831. onChange={e => {
  1832. this.setState({ taskStatus: e });
  1833. }}
  1834. >
  1835. {taskStatus.map(function(item) {
  1836. return (
  1837. <Select.Option key={item.value}>
  1838. {item.key}
  1839. </Select.Option>
  1840. );
  1841. })}
  1842. </Select>
  1843. </FormItem>
  1844. <FormItem
  1845. className="half-item"
  1846. {...formItemLayout}
  1847. label="任务类别"
  1848. >
  1849. <span>{this.state.cname}</span>
  1850. </FormItem>
  1851. <FormItem
  1852. className="half-item"
  1853. {...formItemLayout}
  1854. label="证书编号"
  1855. >
  1856. <Input
  1857. placeholder="请输入证书编号"
  1858. value={this.state.certificateNumber}
  1859. style={{ width: "200px" }}
  1860. onChange={e => {
  1861. this.setState({
  1862. certificateNumber: e.target.value
  1863. });
  1864. }}
  1865. ref="commodityQuantity"
  1866. />
  1867. </FormItem>
  1868. </div>
  1869. <div className="clearfix">
  1870. <h3 className="sub-title">申报系统账户信息</h3>
  1871. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  1872. <FormItem
  1873. className="half-item"
  1874. {...formItemLayout}
  1875. label="用户名"
  1876. >
  1877. <Input
  1878. placeholder="请输入用户名"
  1879. value={this.state.declareUser}
  1880. style={{ width: "200px" }}
  1881. onChange={e => {
  1882. this.setState({ declareUser: e.target.value });
  1883. }}
  1884. />
  1885. </FormItem>
  1886. <FormItem
  1887. className="half-item"
  1888. {...formItemLayout}
  1889. label="密码"
  1890. >
  1891. <Input
  1892. placeholder="请输入密码"
  1893. value={this.state.declarePwd}
  1894. style={{ width: "200px" }}
  1895. onChange={e => {
  1896. this.setState({ declarePwd: e.target.value });
  1897. }}
  1898. />
  1899. </FormItem>
  1900. </div>
  1901. <div className="clearfix">
  1902. <h3 className="sub-title">项目申报进度</h3>
  1903. <FormItem
  1904. className="half-item"
  1905. {...formItemLayout}
  1906. label="启动时间"
  1907. >
  1908. <DatePicker
  1909. style={{
  1910. marginTop: "2px",
  1911. width: "200px",
  1912. height: "32px"
  1913. }}
  1914. showTime
  1915. format="YYYY-MM-DD"
  1916. onOk={() => {}}
  1917. value={
  1918. this.state.startDate
  1919. ? moment(this.state.startDate)
  1920. : null
  1921. }
  1922. onChange={(data, dataString) => {
  1923. this.setState({ startDate: dataString });
  1924. }}
  1925. />
  1926. </FormItem>
  1927. <FormItem
  1928. className="half-item"
  1929. {...formItemLayout}
  1930. label="完成时间"
  1931. >
  1932. <DatePicker
  1933. style={{
  1934. marginTop: "2px",
  1935. width: "200px",
  1936. height: "32px"
  1937. }}
  1938. showTime
  1939. format="YYYY-MM-DD"
  1940. onOk={() => {}}
  1941. value={
  1942. this.state.endDate
  1943. ? moment(this.state.endDate)
  1944. : null
  1945. }
  1946. onChange={(data, dataString) => {
  1947. this.setState({ endDate: dataString });
  1948. }}
  1949. />
  1950. </FormItem>
  1951. <FormItem
  1952. className="half-item"
  1953. {...formItemLayout}
  1954. label="受理时间"
  1955. >
  1956. <DatePicker
  1957. style={{
  1958. marginTop: "2px",
  1959. width: "200px",
  1960. height: "32px"
  1961. }}
  1962. showTime
  1963. format="YYYY-MM-DD"
  1964. onOk={() => {}}
  1965. value={
  1966. this.state.acceptDate
  1967. ? moment(this.state.acceptDate)
  1968. : null
  1969. }
  1970. onChange={(data, dataString) => {
  1971. this.setState({ acceptDate: dataString });
  1972. }}
  1973. />
  1974. </FormItem>
  1975. <FormItem
  1976. className="half-item"
  1977. {...formItemLayout}
  1978. label="评审时间"
  1979. >
  1980. <DatePicker
  1981. style={{
  1982. marginTop: "2px",
  1983. width: "200px",
  1984. height: "32px"
  1985. }}
  1986. showTime
  1987. format="YYYY-MM-DD"
  1988. onOk={() => {}}
  1989. value={
  1990. this.state.reviewDate
  1991. ? moment(this.state.reviewDate)
  1992. : null
  1993. }
  1994. onChange={(data, dataString) => {
  1995. this.setState({ reviewDate: dataString });
  1996. }}
  1997. />
  1998. </FormItem>
  1999. <FormItem
  2000. className="half-item"
  2001. {...formItemLayout}
  2002. label="公示时间"
  2003. >
  2004. <DatePicker
  2005. style={{
  2006. marginTop: "2px",
  2007. width: "200px",
  2008. height: "32px"
  2009. }}
  2010. showTime
  2011. format="YYYY-MM-DD"
  2012. onOk={() => {}}
  2013. value={
  2014. this.state.publicityDate
  2015. ? moment(this.state.publicityDate)
  2016. : null
  2017. }
  2018. onChange={(data, dataString) => {
  2019. this.setState({ publicityDate: dataString });
  2020. }}
  2021. />
  2022. </FormItem>
  2023. <FormItem
  2024. className="half-item"
  2025. {...formItemLayout}
  2026. label="发证时间"
  2027. >
  2028. <DatePicker
  2029. style={{
  2030. marginTop: "2px",
  2031. width: "200px",
  2032. height: "32px"
  2033. }}
  2034. showTime
  2035. format="YYYY-MM-DD"
  2036. onOk={() => {}}
  2037. value={
  2038. this.state.licenceDate
  2039. ? moment(this.state.licenceDate)
  2040. : null
  2041. }
  2042. onChange={(data, dataString) => {
  2043. this.setState({ licenceDate: dataString });
  2044. }}
  2045. />
  2046. </FormItem>
  2047. <FormItem
  2048. className="half-item"
  2049. {...formItemLayout}
  2050. label="立项金额(万元)"
  2051. >
  2052. <Input
  2053. placeholder="请输入立项金额"
  2054. value={this.state.setUpAmount}
  2055. style={{ width: "200px" }}
  2056. onChange={e => {
  2057. this.setState({ setUpAmount: e.target.value });
  2058. }}
  2059. ref="commodityQuantity"
  2060. />
  2061. </FormItem>
  2062. <FormItem
  2063. className="half-item"
  2064. {...formItemLayout}
  2065. label="是否到款"
  2066. >
  2067. <Radio.Group
  2068. value={this.state.arrivalMoney}
  2069. onChange={e => {
  2070. this.setState({ arrivalMoney: e.target.value });
  2071. }}
  2072. >
  2073. <Radio value={0}>未到企业</Radio>
  2074. <Radio value={1}>已到企业</Radio>
  2075. </Radio.Group>
  2076. </FormItem>
  2077. </div>
  2078. <div className="clearfix">
  2079. <FormItem
  2080. labelCol={{ span: 3 }}
  2081. wrapperCol={{ span: 16 }}
  2082. label="附件"
  2083. >
  2084. <Picture
  2085. fileList={e => {
  2086. this.setState({ attachmentUrl: e });
  2087. }}
  2088. pictureUrl={this.state.attachmentUrl}
  2089. visible={this.props.visible}
  2090. data={{
  2091. sign: "order_task_file",
  2092. url: "/api/admin/orderProject/uploadOrderTaskFile",
  2093. number: 8
  2094. }}
  2095. />
  2096. </FormItem>
  2097. </div>
  2098. <div className="clearfix">
  2099. <FormItem
  2100. labelCol={{ span: 3 }}
  2101. wrapperCol={{ span: 16 }}
  2102. label="备注"
  2103. >
  2104. <Input
  2105. type="textarea"
  2106. placeholder="请输入备注"
  2107. rows={4}
  2108. value={this.state.taskComment}
  2109. onChange={e => {
  2110. this.setState({ taskComment: e.target.value });
  2111. }}
  2112. />
  2113. </FormItem>
  2114. </div>
  2115. <div>
  2116. <h3 className="sub-title">项目业务</h3>
  2117. {this.state.processStatus == 0 ? (
  2118. <Button
  2119. type="primary"
  2120. onClick={this.addDetailed}
  2121. style={{
  2122. float: "right",
  2123. marginRight: "50px",
  2124. marginBottom: "15px"
  2125. }}
  2126. >
  2127. 添加项目明细
  2128. </Button>
  2129. ) : (
  2130. ""
  2131. )}
  2132. </div>
  2133. <div className="patent-table">
  2134. <Spin spinning={this.state.loading}>
  2135. <Table
  2136. columns={this.state.columnsX}
  2137. dataSource={this.state.dataSourceX}
  2138. pagination={this.state.paginations}
  2139. onRowClick={this.tableRowClickX}
  2140. />
  2141. </Spin>
  2142. </div>
  2143. <div className="clearfix">
  2144. <Button
  2145. className="cancel"
  2146. type="primary"
  2147. onClick={this.tijiaoOk}
  2148. style={{ marginLeft: "200px", marginTop: "10px" }}
  2149. htmlType="submit"
  2150. >
  2151. 保存
  2152. </Button>
  2153. <Button
  2154. className="cancel"
  2155. type="ghost"
  2156. onClick={this.visitCancel}
  2157. style={{ marginLeft: "50px", marginTop: "10px" }}
  2158. >
  2159. 取消
  2160. </Button>
  2161. </div>
  2162. </div>
  2163. </Spin>
  2164. </Form>
  2165. </TabPane>
  2166. <TabPane tab="外包接单公司信息" key="2">
  2167. {/*<Button type="primary" onClick={this.addCompany} style={{float:'right',marginBottom:'10px'}}>+新增接单公司</Button>*/}
  2168. {
  2169. <div className="clearfix">
  2170. <h3 className="sub-title" style={{ marginBottom: "10px" }}>
  2171. 新增(编辑)接单公司
  2172. </h3>
  2173. <FormItem
  2174. className="three-item"
  2175. {...formItemLayout}
  2176. label={
  2177. <span>
  2178. <strong style={{ color: "#f00" }}>*</strong>公司名称
  2179. </span>
  2180. }
  2181. >
  2182. <Input
  2183. placeholder="请输入公司名称"
  2184. value={this.state.cName}
  2185. style={{ width: "200px" }}
  2186. onChange={e => {
  2187. this.setState({ cName: e.target.value });
  2188. }}
  2189. className="height-input"
  2190. />
  2191. </FormItem>
  2192. <FormItem
  2193. className="three-item"
  2194. {...formItemLayout}
  2195. label={
  2196. <span>
  2197. <strong style={{ color: "#f00" }}>*</strong>联系人
  2198. </span>
  2199. }
  2200. >
  2201. <Input
  2202. placeholder="请输入联系人名称"
  2203. value={this.state.companyContacts}
  2204. style={{ width: "200px" }}
  2205. onChange={e => {
  2206. this.setState({ companyContacts: e.target.value });
  2207. }}
  2208. className="height-input"
  2209. />
  2210. </FormItem>
  2211. <FormItem
  2212. className="three-item"
  2213. {...formItemLayout}
  2214. label={
  2215. <span>
  2216. <strong style={{ color: "#f00" }}>*</strong>联系人电话
  2217. </span>
  2218. }
  2219. >
  2220. <Input
  2221. placeholder="请输入联系人电话"
  2222. value={this.state.companyContactsMobile}
  2223. style={{ width: "200px" }}
  2224. onChange={e => {
  2225. this.setState({
  2226. companyContactsMobile: e.target.value
  2227. });
  2228. }}
  2229. className="height-input"
  2230. />
  2231. </FormItem>
  2232. <FormItem
  2233. className="three-item"
  2234. {...formItemLayout}
  2235. label="企业地址"
  2236. >
  2237. <Cascader
  2238. options={areaSelect()}
  2239. value={this.state.companyProvinceArr}
  2240. placeholder="选择城市"
  2241. style={{ width: "200px" }}
  2242. onChange={e => {
  2243. this.setState({ companyProvinceArr: e });
  2244. }}
  2245. />
  2246. </FormItem>
  2247. <FormItem className="three-item" {...formItemLayout} label="">
  2248. <Input
  2249. placeholder="请输入详细地址"
  2250. value={this.state.companyAddress}
  2251. style={{ width: "200px", marginLeft: "12em" }}
  2252. onChange={e => {
  2253. this.setState({ companyAddress: e.target.value });
  2254. }}
  2255. className="height-input"
  2256. />
  2257. </FormItem>
  2258. <FormItem
  2259. className="three-item"
  2260. {...formItemLayout}
  2261. label=""
  2262. ></FormItem>
  2263. <div className="clearfix">
  2264. <FormItem
  2265. labelCol={{ span: 3 }}
  2266. wrapperCol={{ span: 16 }}
  2267. label="备注"
  2268. >
  2269. <Input
  2270. type="textarea"
  2271. placeholder="请输入备注"
  2272. rows={4}
  2273. value={this.state.companyRemarks}
  2274. onChange={e => {
  2275. this.setState({ companyRemarks: e.target.value });
  2276. }}
  2277. />
  2278. </FormItem>
  2279. </div>
  2280. <Button
  2281. type="primary"
  2282. style={{
  2283. float: "right",
  2284. marginTop: "10px",
  2285. marginRight: "50px"
  2286. }}
  2287. onClick={() => {
  2288. this.saveCompany(this.state.companyId);
  2289. }}
  2290. >
  2291. 保存
  2292. </Button>
  2293. </div>
  2294. }
  2295. <p style={{ color: "red" }}>
  2296. 提示:查看备注请点击表格左侧加号按钮~
  2297. </p>
  2298. <div className="patent-table" style={{ marginTop: "10px" }}>
  2299. <Spin spinning={this.state.loading}>
  2300. <Table
  2301. columns={this.state.companyColumns}
  2302. dataSource={this.state.companys}
  2303. scroll={{ x: 300, y: 0 }}
  2304. expandedRowRender={record => {
  2305. return <p>{record.remarks}</p>;
  2306. }}
  2307. pagination={false}
  2308. />
  2309. </Spin>
  2310. </div>
  2311. </TabPane>
  2312. </Tabs>
  2313. </Modal>
  2314. <Modal
  2315. maskClosable={false}
  2316. visible={this.state.lookVisible}
  2317. onOk={this.noCancel}
  2318. onCancel={this.noCancel}
  2319. width="500px"
  2320. title={"添加工时"}
  2321. footer=""
  2322. className="admin-desc-content"
  2323. >
  2324. <Form layout="horizontal" id="demand-form">
  2325. <Spin spinning={this.state.loading}>
  2326. <div className="clearfix">
  2327. <FormItem {...formItemLayout} label="工作日期">
  2328. <DatePicker
  2329. style={{ marginTop: "2px", width: "200px", height: "32px" }}
  2330. showTime
  2331. format="YYYY-MM-DD"
  2332. onOk={() => {}}
  2333. value={
  2334. this.state.taskDate ? moment(this.state.taskDate) : null
  2335. }
  2336. onChange={(data, dataString) => {
  2337. this.setState({ taskDate: dataString });
  2338. }}
  2339. />
  2340. </FormItem>
  2341. </div>
  2342. <div className="clearfix">
  2343. <FormItem {...formItemLayout} label="工作时长">
  2344. <Input
  2345. placeholder="请输入工作时长"
  2346. value={this.state.hours}
  2347. style={{ width: "200px" }}
  2348. onChange={e => {
  2349. this.setState({ hours: e.target.value });
  2350. }}
  2351. ref="commodityQuantity"
  2352. />
  2353. </FormItem>
  2354. </div>
  2355. <div className="clearfix">
  2356. <FormItem {...formItemLayout} label="工作内容">
  2357. <Input
  2358. type="textarea"
  2359. placeholder="请输入备注"
  2360. rows={4}
  2361. value={this.state.remarks}
  2362. onChange={e => {
  2363. this.setState({ remarks: e.target.value });
  2364. }}
  2365. />
  2366. </FormItem>
  2367. </div>
  2368. <div className="clearfix">
  2369. <Button
  2370. className="cancel"
  2371. type="primary"
  2372. onClick={this.tianjiaOk}
  2373. style={{ marginLeft: "100px", marginTop: "10px" }}
  2374. htmlType="submit"
  2375. >
  2376. 确定
  2377. </Button>
  2378. <Button
  2379. className="cancel"
  2380. type="ghost"
  2381. onClick={this.noCancel}
  2382. style={{ marginLeft: "50px" }}
  2383. >
  2384. 取消
  2385. </Button>
  2386. </div>
  2387. </Spin>
  2388. </Form>
  2389. </Modal>
  2390. <Modal
  2391. maskClosable={false}
  2392. visible={this.state.addnextVisible}
  2393. onOk={this.nextCancel}
  2394. onCancel={this.nextCancel}
  2395. width="800px"
  2396. title="项目任务详情"
  2397. footer=""
  2398. className="admin-desc-content"
  2399. >
  2400. <Form layout="horizontal" onSubmit={this.nextSubmit} id="demand-form">
  2401. <Spin spinning={this.state.loading}>
  2402. <div className="clearfix">
  2403. <FormItem
  2404. className="half-item"
  2405. {...formItemLayout}
  2406. label="项目名称"
  2407. >
  2408. <span>{this.state.commodityName}</span>
  2409. </FormItem>
  2410. <FormItem
  2411. className="half-item"
  2412. {...formItemLayout}
  2413. label="项目数量"
  2414. >
  2415. <span>{this.state.commodityQuantity}</span>
  2416. </FormItem>
  2417. <FormItem
  2418. className="half-item"
  2419. {...formItemLayout}
  2420. label="金额(万元)"
  2421. >
  2422. <span>{this.state.commodityPrice}</span>
  2423. </FormItem>
  2424. <FormItem
  2425. className="half-item"
  2426. {...formItemLayout}
  2427. label="主要项目"
  2428. >
  2429. <span>{getboutique(this.state.main)}</span>
  2430. </FormItem>
  2431. <div className="clearfix">
  2432. <FormItem
  2433. labelCol={{ span: 3 }}
  2434. wrapperCol={{ span: 18 }}
  2435. label="服务说明"
  2436. >
  2437. <span>{this.state.taskComment}</span>
  2438. </FormItem>
  2439. </div>
  2440. </div>
  2441. </Spin>
  2442. </Form>
  2443. </Modal>
  2444. <Modal
  2445. maskClosable={false}
  2446. visible={this.state.speVisible}
  2447. onOk={this.visitOk}
  2448. onCancel={this.visitCancel}
  2449. width="900px"
  2450. title=""
  2451. footer=""
  2452. className="admin-desc-content"
  2453. >
  2454. <Tabs
  2455. activeKey={this.state.modKey}
  2456. onChange={this.callBack}
  2457. type="card"
  2458. >
  2459. <TabPane tab="项目概况" key="1">
  2460. <div className="clearfix">
  2461. <FormItem
  2462. className="half-item"
  2463. {...formItemLayout}
  2464. label="当前项目情况"
  2465. >
  2466. <Radio.Group
  2467. value={this.state.status}
  2468. onChange={e => {
  2469. this.setState({ status: e.target.value });
  2470. }}
  2471. >
  2472. <Radio value={0}>开启</Radio>
  2473. <Radio value={1}>暂停</Radio>
  2474. </Radio.Group>
  2475. <Button
  2476. type="primary"
  2477. size="small"
  2478. style={{ marginTop: "5px", position: "absolute" }}
  2479. onClick={this.caozuorizhi}
  2480. >
  2481. 操作日志
  2482. </Button>
  2483. </FormItem>
  2484. <FormItem
  2485. className="half-item"
  2486. {...formItemLayout}
  2487. label="合同编号"
  2488. >
  2489. <span>{this.state.contractNo}</span>
  2490. </FormItem>
  2491. </div>
  2492. <div className="clearfix">
  2493. <FormItem
  2494. className="half-item"
  2495. {...formItemLayout}
  2496. label="项目状态"
  2497. >
  2498. <Select
  2499. placeholder="选择项目状态"
  2500. style={{ width: "200px" }}
  2501. value={this.state.projectStatus}
  2502. onChange={e => {
  2503. this.setState({ projectStatus: e });
  2504. }}
  2505. >
  2506. {projectStatus.map(function(item) {
  2507. return (
  2508. <Select.Option key={item.value}>
  2509. {item.key}
  2510. </Select.Option>
  2511. );
  2512. })}
  2513. </Select>
  2514. </FormItem>
  2515. <FormItem
  2516. className="half-item"
  2517. {...formItemLayout}
  2518. label="是否特批"
  2519. >
  2520. <span>{getApproval(this.state.approval)}</span>
  2521. </FormItem>
  2522. <FormItem
  2523. className="half-item"
  2524. {...formItemLayout}
  2525. label="结算状态"
  2526. >
  2527. <span>
  2528. {getLiquidationStatus(this.state.liquidationStatus)}
  2529. </span>
  2530. </FormItem>
  2531. <FormItem
  2532. className="half-item"
  2533. {...formItemLayout}
  2534. label="流程状态"
  2535. >
  2536. <span>{getProcessStatus(this.state.processStatus)}</span>
  2537. </FormItem>
  2538. <FormItem
  2539. className="half-item"
  2540. {...formItemLayout}
  2541. label="订单编号"
  2542. >
  2543. <span>{this.state.orderNo}</span>
  2544. </FormItem>
  2545. </div>
  2546. <div className="clearfix">
  2547. <FormItem
  2548. className="half-item"
  2549. {...formItemLayout}
  2550. label="满意度表格"
  2551. >
  2552. <Radio.Group
  2553. value={this.state.formRetrieve}
  2554. onChange={e => {
  2555. this.setState({ formRetrieve: e.target.value });
  2556. }}
  2557. >
  2558. <Radio value={0}>未收回</Radio>
  2559. <Radio value={1}>已收回</Radio>
  2560. <Radio value={2}>其他</Radio>
  2561. </Radio.Group>
  2562. </FormItem>
  2563. <FormItem
  2564. className="half-item"
  2565. {...formItemLayout}
  2566. label="退单"
  2567. >
  2568. <Radio.Group
  2569. value={this.state.taskRefund}
  2570. onChange={e => {
  2571. this.setState({ taskRefund: e.target.value });
  2572. }}
  2573. >
  2574. <Radio value={0}>已完成</Radio>
  2575. <Radio value={1}>未完成</Radio>
  2576. <Radio value={2}>其他</Radio>
  2577. </Radio.Group>
  2578. </FormItem>
  2579. </div>
  2580. <div className="clearfix">
  2581. {
  2582. <FormItem
  2583. className="half-item"
  2584. {...formItemLayout}
  2585. label="(满意度)备注"
  2586. >
  2587. <Input
  2588. type="textarea"
  2589. placeholder="请输入备注"
  2590. rows={2}
  2591. value={this.state.retrieveContent}
  2592. onChange={e => {
  2593. this.setState({ retrieveContent: e.target.value });
  2594. }}
  2595. />
  2596. </FormItem>
  2597. }
  2598. {
  2599. <FormItem
  2600. className="half-item"
  2601. {...formItemLayout}
  2602. label="(退单)备注"
  2603. >
  2604. <Input
  2605. type="textarea"
  2606. placeholder="请输入备注"
  2607. rows={2}
  2608. value={this.state.refundContent}
  2609. onChange={e => {
  2610. this.setState({ refundContent: e.target.value });
  2611. }}
  2612. />
  2613. </FormItem>
  2614. }
  2615. </div>
  2616. <div className="clearfix">
  2617. <h3 className="sub-title">订单负责人信息</h3>
  2618. <FormItem
  2619. className="half-item"
  2620. {...formItemLayout}
  2621. label="负责人"
  2622. >
  2623. <span>
  2624. {this.state.salesmanName + "(" + this.state.depName + ")"}
  2625. </span>
  2626. </FormItem>
  2627. <FormItem
  2628. className="half-item"
  2629. {...formItemLayout}
  2630. label="负责人电话"
  2631. >
  2632. <span>{this.state.salesmanMobile}</span>
  2633. </FormItem>
  2634. <FormItem
  2635. className="half-item"
  2636. {...formItemLayout}
  2637. label="财务负责人"
  2638. >
  2639. <span>{this.state.financeName}</span>
  2640. </FormItem>
  2641. <FormItem
  2642. className="half-item"
  2643. {...formItemLayout}
  2644. label="财务负责人电话"
  2645. >
  2646. <span>{this.state.financeMobile}</span>
  2647. </FormItem>
  2648. </div>
  2649. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2650. <div className="clearfix">
  2651. <h3 className="sub-title">联系信息</h3>
  2652. <FormItem
  2653. className="half-item"
  2654. {...formItemLayout}
  2655. label="客户名称"
  2656. >
  2657. <span>{this.state.userName}</span>
  2658. </FormItem>
  2659. <FormItem
  2660. className="half-item"
  2661. {...formItemLayout}
  2662. label="企业法人"
  2663. >
  2664. <Input
  2665. placeholder="请输入法人名称"
  2666. value={this.state.legalPerson}
  2667. style={{ width: "200px" }}
  2668. onChange={e => {
  2669. this.setState({ legalPerson: e.target.value });
  2670. }}
  2671. ref="commodityQuantity"
  2672. />
  2673. </FormItem>
  2674. <FormItem
  2675. className="half-item"
  2676. {...formItemLayout}
  2677. label="法人电话"
  2678. >
  2679. <Input
  2680. placeholder="请输入法人电话"
  2681. value={this.state.legalPersonTel}
  2682. style={{ width: "200px" }}
  2683. onChange={e => {
  2684. this.setState({ legalPersonTel: e.target.value });
  2685. }}
  2686. ref="commodityQuantity"
  2687. />
  2688. </FormItem>
  2689. <FormItem
  2690. className="half-item"
  2691. {...formItemLayout}
  2692. label="客户联系人"
  2693. >
  2694. <Input
  2695. placeholder="请输入联系人名称"
  2696. value={this.state.contacts}
  2697. style={{ width: "200px" }}
  2698. onChange={e => {
  2699. this.setState({ contacts: e.target.value });
  2700. }}
  2701. ref="commodityQuantity"
  2702. />
  2703. </FormItem>
  2704. <FormItem
  2705. className="half-item"
  2706. {...formItemLayout}
  2707. label="联系人电话"
  2708. >
  2709. <Input
  2710. placeholder="请输入联系人电话"
  2711. value={this.state.contactMobile}
  2712. style={{ width: "200px" }}
  2713. onChange={e => {
  2714. this.setState({ contactMobile: e.target.value });
  2715. }}
  2716. ref="commodityQuantity"
  2717. />
  2718. </FormItem>
  2719. <FormItem
  2720. className="half-item"
  2721. {...formItemLayout}
  2722. label="企业地址"
  2723. >
  2724. <Cascader
  2725. options={areaSelect()}
  2726. value={this.state.ProvinceCity}
  2727. placeholder="选择城市"
  2728. style={{ width: "200px" }}
  2729. onChange={e => {
  2730. this.setState({ ProvinceCity: e });
  2731. }}
  2732. />
  2733. </FormItem>
  2734. <FormItem
  2735. className="half-item"
  2736. {...formItemLayout}
  2737. label=""
  2738. ></FormItem>
  2739. <FormItem className="half-item" {...formItemLayout} label="">
  2740. <Input
  2741. placeholder="请输入详细地址"
  2742. value={this.state.postalAddress}
  2743. style={{ width: "200px", marginLeft: "12em" }}
  2744. onChange={e => {
  2745. this.setState({ postalAddress: e.target.value });
  2746. }}
  2747. ref="commodityQuantity"
  2748. />
  2749. </FormItem>
  2750. </div>
  2751. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  2752. <div className="clearfix">
  2753. <h3 className="sub-title">任务信息</h3>
  2754. <FormItem
  2755. className="half-item"
  2756. {...formItemLayout}
  2757. label="任务编号"
  2758. >
  2759. <span>{this.state.id}</span>
  2760. </FormItem>
  2761. <FormItem
  2762. className="half-item"
  2763. {...formItemLayout}
  2764. label="任务名称"
  2765. >
  2766. <span>{this.state.taskName}</span>
  2767. </FormItem>
  2768. <FormItem
  2769. className="half-item"
  2770. {...formItemLayout}
  2771. label="任务状态"
  2772. >
  2773. <Select
  2774. placeholder="选择任务状态"
  2775. style={{ width: "200px" }}
  2776. value={this.state.taskStatus}
  2777. onChange={e => {
  2778. this.setState({ taskStatus: e });
  2779. }}
  2780. >
  2781. {taskStatus.map(function(item) {
  2782. return (
  2783. <Select.Option key={item.value}>
  2784. {item.key}
  2785. </Select.Option>
  2786. );
  2787. })}
  2788. </Select>
  2789. </FormItem>
  2790. <FormItem
  2791. className="half-item"
  2792. {...formItemLayout}
  2793. label="任务类别"
  2794. >
  2795. <span>{this.state.cname}</span>
  2796. </FormItem>
  2797. <FormItem
  2798. className="half-item"
  2799. {...formItemLayout}
  2800. label="证书编号"
  2801. >
  2802. <Input
  2803. placeholder="请输入证书编号"
  2804. value={this.state.certificateNumber}
  2805. style={{ width: "200px" }}
  2806. onChange={e => {
  2807. this.setState({ certificateNumber: e.target.value });
  2808. }}
  2809. ref="commodityQuantity"
  2810. />
  2811. </FormItem>
  2812. </div>
  2813. <div className="clearfix" style={{ marginTop: "10px" }}>
  2814. <FormItem
  2815. labelCol={{ span: 3 }}
  2816. wrapperCol={{ span: 14 }}
  2817. label="附件"
  2818. >
  2819. <Picture
  2820. fileList={e => {
  2821. this.setState({ attachmentUrl: e });
  2822. }}
  2823. pictureUrl={this.state.attachmentUrl}
  2824. visible={this.props.visible}
  2825. data={{
  2826. sign: "order_task_file",
  2827. url: "/api/admin/orderProject/uploadOrderTaskFile",
  2828. number: 8
  2829. }}
  2830. />
  2831. </FormItem>
  2832. </div>
  2833. <div className="clearfix">
  2834. <FormItem
  2835. labelCol={{ span: 3 }}
  2836. wrapperCol={{ span: 16 }}
  2837. label="备注"
  2838. >
  2839. <Input
  2840. type="textarea"
  2841. placeholder="请输入备注"
  2842. rows={4}
  2843. value={this.state.taskComment}
  2844. onChange={e => {
  2845. this.setState({ taskComment: e.target.value });
  2846. }}
  2847. />
  2848. </FormItem>
  2849. </div>
  2850. <div className="clearfix">
  2851. <h3 className="sub-title">项目申报进度</h3>
  2852. <FormItem
  2853. className="half-item"
  2854. {...formItemLayout}
  2855. label="启动时间"
  2856. >
  2857. <DatePicker
  2858. style={{ marginTop: "5px" }}
  2859. showTime
  2860. format="YYYY-MM-DD"
  2861. onOk={() => {}}
  2862. value={
  2863. this.state.startDate ? moment(this.state.startDate) : null
  2864. }
  2865. onChange={(data, dataString) => {
  2866. this.setState({ startDate: dataString });
  2867. }}
  2868. />
  2869. </FormItem>
  2870. <FormItem
  2871. className="half-item"
  2872. {...formItemLayout}
  2873. label="软著派单数量"
  2874. >
  2875. <span>{this.state.commodityQuantity}</span>
  2876. <Button
  2877. type="primary"
  2878. size="small"
  2879. style={{ marginLeft: "45px" }}
  2880. onClick={this.addcontact}
  2881. >
  2882. +增加下证信息
  2883. </Button>
  2884. </FormItem>
  2885. <div className="patent-table">
  2886. <Spin spinning={this.state.loading}>
  2887. <Table
  2888. columns={this.state.ContactsLists}
  2889. dataSource={this.state.contactList}
  2890. pagination={false}
  2891. />
  2892. </Spin>
  2893. </div>
  2894. </div>
  2895. <div className="clearfix">
  2896. <h3 className="sub-title">项目业务</h3>
  2897. <div className="patent-table">
  2898. <Spin spinning={this.state.loading}>
  2899. <Table
  2900. columns={this.state.columnsX}
  2901. dataSource={this.state.dataSourceX}
  2902. pagination={this.state.paginations}
  2903. onRowClick={this.tableRowClickX}
  2904. />
  2905. </Spin>
  2906. </div>
  2907. </div>
  2908. <div className="clearfix">
  2909. <Button
  2910. className="cancel"
  2911. type="primary"
  2912. onClick={this.tijiaoOk}
  2913. style={{ marginLeft: "200px", marginTop: "10px" }}
  2914. htmlType="submit"
  2915. >
  2916. 保存
  2917. </Button>
  2918. <Button
  2919. className="cancel"
  2920. type="ghost"
  2921. onClick={this.visitCancel}
  2922. style={{ marginLeft: "50px", marginTop: "10px" }}
  2923. >
  2924. 取消
  2925. </Button>
  2926. </div>
  2927. </TabPane>
  2928. <TabPane tab="外包接单公司信息" key="2">
  2929. {/*<Button type="primary" onClick={this.addCompany} style={{float:'right',marginBottom:'10px'}}>+新增接单公司</Button>*/}
  2930. {
  2931. <div className="clearfix">
  2932. <h3 className="sub-title" style={{ marginBottom: "10px" }}>
  2933. 新增(编辑)接单公司
  2934. </h3>
  2935. <FormItem
  2936. className="three-item"
  2937. {...formItemLayout}
  2938. label={
  2939. <span>
  2940. <strong style={{ color: "#f00" }}>*</strong>公司名称
  2941. </span>
  2942. }
  2943. >
  2944. <Input
  2945. placeholder="请输入公司名称"
  2946. value={this.state.cName}
  2947. style={{ width: "200px" }}
  2948. onChange={e => {
  2949. this.setState({ cName: e.target.value });
  2950. }}
  2951. className="height-input"
  2952. />
  2953. </FormItem>
  2954. <FormItem
  2955. className="three-item"
  2956. {...formItemLayout}
  2957. label={
  2958. <span>
  2959. <strong style={{ color: "#f00" }}>*</strong>联系人
  2960. </span>
  2961. }
  2962. >
  2963. <Input
  2964. placeholder="请输入联系人名称"
  2965. value={this.state.companyContacts}
  2966. style={{ width: "200px" }}
  2967. onChange={e => {
  2968. this.setState({ companyContacts: e.target.value });
  2969. }}
  2970. className="height-input"
  2971. />
  2972. </FormItem>
  2973. <FormItem
  2974. className="three-item"
  2975. {...formItemLayout}
  2976. label={
  2977. <span>
  2978. <strong style={{ color: "#f00" }}>*</strong>联系人电话
  2979. </span>
  2980. }
  2981. >
  2982. <Input
  2983. placeholder="请输入联系人电话"
  2984. value={this.state.companyContactsMobile}
  2985. style={{ width: "200px" }}
  2986. onChange={e => {
  2987. this.setState({
  2988. companyContactsMobile: e.target.value
  2989. });
  2990. }}
  2991. className="height-input"
  2992. />
  2993. </FormItem>
  2994. <FormItem
  2995. className="three-item"
  2996. {...formItemLayout}
  2997. label="企业地址"
  2998. >
  2999. <Cascader
  3000. options={areaSelect()}
  3001. value={this.state.companyProvinceArr}
  3002. placeholder="选择城市"
  3003. style={{ width: "200px" }}
  3004. onChange={e => {
  3005. this.setState({ companyProvinceArr: e });
  3006. }}
  3007. />
  3008. </FormItem>
  3009. <FormItem className="three-item" {...formItemLayout} label="">
  3010. <Input
  3011. placeholder="请输入详细地址"
  3012. value={this.state.companyAddress}
  3013. style={{ width: "200px", marginLeft: "12em" }}
  3014. onChange={e => {
  3015. this.setState({ companyAddress: e.target.value });
  3016. }}
  3017. className="height-input"
  3018. />
  3019. </FormItem>
  3020. <FormItem
  3021. className="three-item"
  3022. {...formItemLayout}
  3023. label=""
  3024. ></FormItem>
  3025. <div className="clearfix">
  3026. <FormItem
  3027. labelCol={{ span: 3 }}
  3028. wrapperCol={{ span: 16 }}
  3029. label="备注"
  3030. >
  3031. <Input
  3032. type="textarea"
  3033. placeholder="请输入备注"
  3034. rows={4}
  3035. value={this.state.companyRemarks}
  3036. onChange={e => {
  3037. this.setState({ companyRemarks: e.target.value });
  3038. }}
  3039. />
  3040. </FormItem>
  3041. </div>
  3042. <Button
  3043. type="primary"
  3044. style={{
  3045. float: "right",
  3046. marginTop: "10px",
  3047. marginRight: "50px"
  3048. }}
  3049. onClick={() => {
  3050. this.saveCompany(this.state.companyId);
  3051. }}
  3052. >
  3053. 保存
  3054. </Button>
  3055. </div>
  3056. }
  3057. <p style={{ color: "red" }}>
  3058. 提示:查看备注请点击表格左侧加号按钮~
  3059. </p>
  3060. <div className="patent-table" style={{ marginTop: "10px" }}>
  3061. <Spin spinning={this.state.loading}>
  3062. <Table
  3063. columns={this.state.companyColumns}
  3064. dataSource={this.state.companys}
  3065. scroll={{ x: 300, y: 0 }}
  3066. expandedRowRender={record => {
  3067. return <p>{record.remarks}</p>;
  3068. }}
  3069. pagination={false}
  3070. />
  3071. </Spin>
  3072. </div>
  3073. </TabPane>
  3074. </Tabs>
  3075. </Modal>
  3076. <Modal
  3077. width="800px"
  3078. visible={this.state.visibleA}
  3079. onCancel={this.visitCancelA}
  3080. title="操作日志"
  3081. footer=""
  3082. className="admin-desc-content"
  3083. >
  3084. <div className="patent-table patent-table-center">
  3085. <Spin spinning={this.state.loading}>
  3086. <Table
  3087. columns={this.state.columnsA}
  3088. dataSource={this.state.dataSourceA}
  3089. pagination={false}
  3090. />
  3091. </Spin>
  3092. </div>
  3093. </Modal>
  3094. </div>
  3095. );
  3096. }
  3097. });
  3098. export default MyTaskOutsource;