myTaskCount.jsx 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073
  1. import React from 'react';
  2. import {
  3. Button,
  4. Input,
  5. Spin,
  6. Table,
  7. message,
  8. DatePicker,
  9. Upload,
  10. Form,
  11. Modal,
  12. Select,
  13. Tabs,
  14. Tag
  15. } from "antd";
  16. import $ from 'jquery/src/ajax';
  17. import moment from 'moment';
  18. import ResolutionDetail from "@/resolutionDetail";
  19. import {
  20. getLiquidationStatus,
  21. getProcessStatus,
  22. splitUrl,
  23. getboutique,
  24. getTaskStatus,
  25. getApproval,
  26. getprovince,
  27. getProjectStatus
  28. } from "@/tools.js";
  29. const { TabPane } = Tabs
  30. const MyTaskCount = Form.create()(
  31. React.createClass({
  32. departmentList() {
  33. this.setState({
  34. loading: true
  35. });
  36. $.ajax({
  37. method: "get",
  38. dataType: "json",
  39. crossDomain: false,
  40. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  41. data: {},
  42. success: function(data) {
  43. let thedata = data.data;
  44. let theArr = [];
  45. if (!thedata) {
  46. if (data.error && data.error.length) {
  47. message.warning(data.error[0].message);
  48. }
  49. } else {
  50. thedata.map(function(item, index) {
  51. theArr.push({
  52. key: index,
  53. name: item.name,
  54. id: item.id
  55. });
  56. });
  57. }
  58. this.setState({
  59. departmentArr: theArr
  60. });
  61. }.bind(this)
  62. }).always(
  63. function() {
  64. this.setState({
  65. loading: false
  66. });
  67. }.bind(this)
  68. );
  69. },
  70. loadData(pageNo) {
  71. this.setState({
  72. visitModul: false,
  73. loading: true,
  74. ispage: pageNo,
  75. modalVisible: false
  76. });
  77. let nameText = this.state.SuperArr;
  78. let superText =
  79. this.state.cid && typeof this.state.cid != "object"
  80. ? nameText[parseInt(this.state.cid)].id
  81. : "";
  82. if (superText) {
  83. $.ajax({
  84. method: "get",
  85. dataType: "json",
  86. crossDomain: false,
  87. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  88. data: {
  89. pageNo: pageNo || 1,
  90. pageSize: this.state.pagination.pageSize,
  91. name: this.state.customerName, //名称
  92. taskId: this.state.idSearch, //订单编号
  93. orderNo: this.state.orderNoSearch,
  94. starTime: this.state.releaseDate[0], //开始时间
  95. endTime: this.state.releaseDate[1], //结束时间
  96. contractNo: this.state.contractNoSearch,
  97. cid: superText, //业务分类
  98. depId: this.state.departmenttList, //部门ID
  99. outsource: this.state.outsourceSearch
  100. },
  101. success: function(data) {
  102. let theArr = [];
  103. if (data.error.length || data.data.list == "") {
  104. if (data.error && data.error.length) {
  105. message.warning(data.error[0].message);
  106. }
  107. } else {
  108. for (let i = 0; i < data.data.list.length; i++) {
  109. let thisdata = data.data.list[i];
  110. theArr.push({
  111. key: i,
  112. id: thisdata.id, //ID
  113. orderNo: thisdata.orderNo, //订单编号
  114. taskName: thisdata.taskName, //任务名称
  115. userName: thisdata.userName, //客户名称
  116. cname: thisdata.cname, //项目品类
  117. taskStatus: thisdata.taskStatus, //任务状态
  118. receiverName: thisdata.receiverName, //负责人
  119. hours: thisdata.hours, //任务工时
  120. depName: thisdata.depName, //派单公司
  121. contractNo: thisdata.contractNo,
  122. signTime: thisdata.signTime,
  123. creteTime: thisdata.creteTime,
  124. projectStatus: thisdata.projectStatus,
  125. commodityPrice: thisdata.commodityPrice, //价格
  126. commodityQuantity: thisdata.commodityQuantity, //数量
  127. salesmanName: thisdata.salesmanName, //订单负责人
  128. taskDistributionTime: thisdata.taskDistributionTime,
  129. taskEndTime: thisdata.taskEndTime,
  130. outsource: thisdata.outsource,
  131. splitStatus: thisdata.splitStatus,
  132. splitSuper: thisdata.splitSuper,
  133. splitId: thisdata.splitId
  134. });
  135. }
  136. this.state.pagination.total = data.data.totalCount;
  137. }
  138. if (data.data && data.data.list && !data.data.list.length) {
  139. this.state.pagination.total = 0;
  140. }
  141. this.setState({
  142. dataSource: theArr,
  143. pageNo: pageNo,
  144. pagination: this.state.pagination,
  145. selectedRowKeys: []
  146. });
  147. }.bind(this)
  148. }).always(
  149. function() {
  150. this.setState({
  151. loading: false
  152. });
  153. }.bind(this)
  154. );
  155. } else {
  156. $.ajax({
  157. method: "get",
  158. dataType: "json",
  159. crossDomain: false,
  160. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  161. data: {
  162. pageNo: pageNo || 1,
  163. pageSize: this.state.pagination.pageSize,
  164. name: this.state.customerName, //名称
  165. taskId: this.state.idSearch, //订单编号
  166. orderNo: this.state.orderNoSearch,
  167. starTime: this.state.releaseDate[0], //开始时间
  168. endTime: this.state.releaseDate[1], //结束时间
  169. contractNo: this.state.contractNoSearch,
  170. depId: this.state.departmenttList, //部门ID
  171. outsource: this.state.outsourceSearch
  172. },
  173. success: function(data) {
  174. let theArr = [];
  175. if (data.error.length || data.data.list == "") {
  176. if (data.error && data.error.length) {
  177. message.warning(data.error[0].message);
  178. }
  179. } else {
  180. for (let i = 0; i < data.data.list.length; i++) {
  181. let thisdata = data.data.list[i];
  182. theArr.push({
  183. key: i,
  184. id: thisdata.id, //ID
  185. orderNo: thisdata.orderNo, //订单编号
  186. taskName: thisdata.taskName, //任务名称
  187. userName: thisdata.userName, //客户名称
  188. cname: thisdata.cname, //项目品类
  189. taskStatus: thisdata.taskStatus, //任务状态
  190. receiverName: thisdata.receiverName, //负责人
  191. hours: thisdata.hours, //任务工时
  192. depName: thisdata.depName, //派单公司
  193. contractNo: thisdata.contractNo,
  194. signTime: thisdata.signTime,
  195. creteTime: thisdata.creteTime,
  196. projectStatus: thisdata.projectStatus,
  197. commodityPrice: thisdata.commodityPrice, //价格
  198. commodityQuantity: thisdata.commodityQuantity, //数量
  199. salesmanName: thisdata.salesmanName, //订单负责人
  200. taskDistributionTime: thisdata.taskDistributionTime,
  201. taskEndTime: thisdata.taskEndTime,
  202. outsource: thisdata.outsource,
  203. splitStatus: thisdata.splitStatus,
  204. splitSuper: thisdata.splitSuper,
  205. splitId: thisdata.splitId
  206. });
  207. }
  208. this.state.pagination.total = data.data.totalCount;
  209. }
  210. if (data.data && data.data.list && !data.data.list.length) {
  211. this.state.pagination.total = 0;
  212. }
  213. this.setState({
  214. dataSource: theArr,
  215. pageNo: pageNo,
  216. pagination: this.state.pagination,
  217. selectedRowKeys: []
  218. });
  219. }.bind(this)
  220. }).always(
  221. function() {
  222. this.setState({
  223. loading: false
  224. });
  225. }.bind(this)
  226. );
  227. }
  228. },
  229. getInitialState() {
  230. return {
  231. page: 1,
  232. releaseDate: [],
  233. selectedRowKeys: [],
  234. orgCodeUrl: [],
  235. paginations: false,
  236. pagination: {
  237. defaultCurrent: 1,
  238. defaultPageSize: 10,
  239. showQuickJumper: true,
  240. pageSize: 10,
  241. onChange: function(page) {
  242. this.loadData(page);
  243. }.bind(this),
  244. showTotal: function(total) {
  245. return "共" + total + "条数据";
  246. }
  247. },
  248. columns: [
  249. {
  250. title: "合同编号",
  251. dataIndex: "contractNo",
  252. key: "contractNo"
  253. },
  254. {
  255. title: "订单编号",
  256. dataIndex: "orderNo",
  257. key: "orderNo"
  258. },
  259. {
  260. title: "项目编号",
  261. dataIndex: "id",
  262. key: "id",
  263. render: (text, record) => {
  264. if (record.splitStatus == 2) {
  265. return <span>{record.splitSuper + "-" + record.splitId}</span>;
  266. } else {
  267. return text;
  268. }
  269. }
  270. },
  271. {
  272. title: "客户名称",
  273. dataIndex: "userName",
  274. key: "userName",
  275. render: text => {
  276. return text && text.length > 9 ? text.substr(0, 9) + "..." : text;
  277. }
  278. },
  279. {
  280. title: "订单部门",
  281. dataIndex: "depName",
  282. key: "depName"
  283. },
  284. {
  285. title: "订单负责人",
  286. dataIndex: "salesmanName",
  287. key: "salesmanName"
  288. },
  289. {
  290. title: "项目类别",
  291. dataIndex: "cname",
  292. key: "cname"
  293. },
  294. {
  295. title: "项目名称",
  296. dataIndex: "taskName",
  297. key: "taskName"
  298. },
  299. {
  300. title: "项目负责人",
  301. dataIndex: "receiverName",
  302. key: "receiverName"
  303. },
  304. {
  305. title: "项目价格(万元)",
  306. dataIndex: "commodityPrice",
  307. key: "commodityPrice"
  308. },
  309. {
  310. title: "数量(个)",
  311. dataIndex: "commodityQuantity",
  312. key: "commodityQuantity"
  313. },
  314. {
  315. title: "任务状态",
  316. dataIndex: "taskStatus",
  317. key: "taskStatus",
  318. render: text => {
  319. return getTaskStatus(text);
  320. }
  321. },
  322. {
  323. title: "项目状态",
  324. dataIndex: "projectStatus",
  325. key: "projectStatus",
  326. render: text => {
  327. return getProjectStatus(text);
  328. }
  329. },
  330. {
  331. title: "工时",
  332. dataIndex: "hours",
  333. key: "hours"
  334. },
  335. {
  336. title: "是否外包",
  337. dataIndex: "outsource",
  338. key: "outsource",
  339. render: text => {
  340. if (text == 0) {
  341. return "否";
  342. } else if (text == 1) {
  343. return "是";
  344. }
  345. }
  346. },
  347. {
  348. title: "签单日期",
  349. dataIndex: "signTime",
  350. key: "signTime"
  351. },
  352. {
  353. title: "派单日期",
  354. dataIndex: "creteTime",
  355. key: "creteTime"
  356. },
  357. {
  358. title: "分配时间",
  359. dataIndex: "taskDistributionTime",
  360. key: "taskDistributionTime"
  361. },
  362. {
  363. title: "完成时间",
  364. dataIndex: "taskEndTime",
  365. key: "taskEndTime"
  366. }
  367. ],
  368. data: [],
  369. dataSource: [],
  370. columnsX: [
  371. {
  372. title: "业务项目名称",
  373. dataIndex: "commodityName",
  374. key: "commodityName"
  375. },
  376. {
  377. title: "项目类别",
  378. dataIndex: "cname",
  379. key: "cname"
  380. },
  381. {
  382. title: "项目数量",
  383. dataIndex: "commodityQuantity",
  384. key: "commodityQuantity",
  385. render: (text, record) => {
  386. if (record.splitStatus == 1) {
  387. return (
  388. <span>
  389. {text}{" "}
  390. <Tag
  391. color="#108ee9"
  392. onClick={e => {
  393. e.stopPropagation();
  394. this.showRes(record);
  395. }}
  396. >
  397. 已拆
  398. </Tag>
  399. </span>
  400. );
  401. } else {
  402. return text;
  403. }
  404. }
  405. },
  406. {
  407. title: "金额(万元)",
  408. dataIndex: "commodityPrice",
  409. key: "commodityPrice"
  410. },
  411. {
  412. title: "负责人",
  413. dataIndex: "contacts",
  414. key: "contacts"
  415. },
  416. {
  417. title: "负责人电话",
  418. dataIndex: "contactsMobile",
  419. key: "contactsMobile"
  420. },
  421. {
  422. title: "主要项目",
  423. dataIndex: "main",
  424. key: "main",
  425. render: text => {
  426. return text ? "是" : "否";
  427. }
  428. },
  429. {
  430. title: "项目说明",
  431. dataIndex: "taskComment",
  432. key: "taskComment",
  433. render: text => {
  434. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  435. }
  436. }
  437. ],
  438. columnsA: [
  439. {
  440. title: "流程",
  441. dataIndex: "content",
  442. key: "content",
  443. align: "center"
  444. },
  445. {
  446. title: "操作人",
  447. dataIndex: "aName",
  448. key: "aName",
  449. align: "center"
  450. },
  451. {
  452. title: "时间",
  453. dataIndex: "createTimes",
  454. key: "createTimes",
  455. align: "center"
  456. }
  457. ],
  458. dataSourceX: [],
  459. dataSourceA: [],
  460. ContactsLists: [
  461. {
  462. title: "批次",
  463. dataIndex: "num",
  464. key: "num"
  465. },
  466. {
  467. title: "下证时间",
  468. dataIndex: "licenceTimes",
  469. key: "licenceTimes"
  470. },
  471. {
  472. title: "下证数量",
  473. dataIndex: "alreadyNumber",
  474. key: "alreadyNumber"
  475. },
  476. {
  477. title: "未下证数量",
  478. dataIndex: "notCount",
  479. key: "notCount"
  480. }
  481. ]
  482. };
  483. },
  484. //页面加载函数
  485. componentWillMount() {
  486. this.loadData();
  487. this.selectSuperId();
  488. this.departmentList();
  489. },
  490. // //整行点击
  491. tableRowClick(record) {
  492. this.state.RowData = record;
  493. if (record.taskName.substring(0, 5) === "软件著作权") {
  494. this.setState({
  495. speVisible: true,
  496. id: record.id,
  497. splitStatus: record.splitStatus,
  498. splitSuper: record.splitSuper,
  499. splitId: record.splitId,
  500. dataArr: record,
  501. commodityQuantity: record.commodityQuantity
  502. });
  503. } else {
  504. this.setState({
  505. visible: true,
  506. splitStatus: record.splitStatus,
  507. splitSuper: record.splitSuper,
  508. splitId: record.splitId
  509. });
  510. }
  511. this.xiangqing(record.id, record.taskName);
  512. this.xiangqings(record.orderNo);
  513. this.xiangmu(record.orderNo);
  514. this.loaduserss(record);
  515. },
  516. //订单详情
  517. xiangqing(id) {
  518. $.ajax({
  519. method: "get",
  520. dataType: "json",
  521. crossDomain: false,
  522. url: globalConfig.context + "/api/admin/orderProject/orderTaskDetail",
  523. data: {
  524. id: id
  525. },
  526. success: function(data) {
  527. if (data.error.length || data.data.list == "") {
  528. if (data.error && data.error.length) {
  529. message.warning(data.error[0].message);
  530. }
  531. } else {
  532. let thisdata = data.data;
  533. this.setState({
  534. id: thisdata.id, //ID
  535. orderNo: thisdata.orderNo, //订单编号
  536. userName: thisdata.userName, //客户名称
  537. taskName: thisdata.taskName, //任务名称
  538. cname: thisdata.cname, //项目品类
  539. contractNo: thisdata.contractNo, //合同编号
  540. projectStatus: thisdata.projectStatus, //项目状态
  541. taskStatus: thisdata.taskStatus, //任务状态
  542. taskDate: thisdata.taskDate, //分配时间
  543. taskComment: thisdata.taskComment, //说明
  544. attachmentUrl: thisdata.attachmentUrl
  545. ? splitUrl(
  546. thisdata.attachmentUrl,
  547. ",",
  548. globalConfig.avatarHost + "/upload"
  549. )
  550. : [], //图片地址
  551. salesmanName: thisdata.salesmanName, //订单负责人
  552. startDate: thisdata.startDate, //启动日期
  553. endDate: thisdata.endDate, //结束日期
  554. acceptDate: thisdata.acceptDate, //受理日期
  555. reviewDate: thisdata.reviewDate, //评审日期
  556. publicityDate: thisdata.publicityDate, //公示日期
  557. licenceDate: thisdata.licenceDate, //发证日期
  558. contacts: thisdata.contacts, //联系人
  559. contactMobile: thisdata.contactMobile, //联系人电话
  560. legalPerson: thisdata.legalPerson, //法人
  561. legalPersonTel: thisdata.legalPersonTel, //法人电话
  562. certificateNumber: thisdata.certificateNumber, //证书编号
  563. status: thisdata.status, //状态
  564. formRetrieve: thisdata.formRetrieve, //满意度表格
  565. taskRefund: thisdata.taskRefund, //退单
  566. refundContent: thisdata.refundContent, //退单信息
  567. retrieveContent: thisdata.retrieveContent, //回收信息
  568. arrivalMoney: thisdata.arrivalMoney, //是否到款
  569. setUpAmount: thisdata.setUpAmount, //立项金额
  570. declareUser: thisdata.declareUser, //账号
  571. declarePwd: thisdata.declarePwd, //密码
  572. depName: thisdata.depName, //订单部门
  573. outsourceName: thisdata.outsourceName, //外包公司名称
  574. outsourcePrice: thisdata.outsourcePrice, //外包价格
  575. declarationBatch: thisdata.declarationBatch,
  576. });
  577. }
  578. }.bind(this)
  579. }).always(
  580. function() {
  581. this.setState({
  582. loading: false
  583. });
  584. }.bind(this)
  585. );
  586. },
  587. // 拆分详细
  588. showRes(record) {
  589. this.setState({
  590. resVisible: true,
  591. resRecord: record
  592. });
  593. },
  594. resCancel() {
  595. this.setState({
  596. resVisible: false
  597. });
  598. },
  599. //订单详情
  600. xiangqings(orderNos) {
  601. $.ajax({
  602. method: "get",
  603. dataType: "json",
  604. crossDomain: false,
  605. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  606. data: {
  607. orderNo: orderNos
  608. },
  609. success: function(data) {
  610. let thisdata = data.data;
  611. let ProvinceCityArr = [];
  612. let ProvinceS = thisdata.locationProvince; //省
  613. let citys = thisdata.locationCity; //市
  614. let Areas = thisdata.locationArea; //区
  615. ProvinceCityArr.push(ProvinceS, citys, Areas);
  616. if (data.error.length || data.data.list == "") {
  617. if (data.error && data.error.length) {
  618. message.warning(data.error[0].message);
  619. }
  620. } else {
  621. this.setState({
  622. processStatus: thisdata.processStatus, //流程状态
  623. liquidationStatus: thisdata.liquidationStatus, //结算状态
  624. approval: thisdata.approval, //特批状态
  625. orderRemarks: thisdata.orderRemarks, //订单留言
  626. salesmanName: thisdata.salesmanName, //营销员名称
  627. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  628. financeName: thisdata.financeName, //财务名称
  629. financeMobile: thisdata.financeMobile, //财务电话
  630. depName: thisdata.depName, //订单部门
  631. locationProvince: thisdata.locationProvince,
  632. locationCity: thisdata.locationCity,
  633. locationArea: thisdata.locationArea,
  634. ProvinceCity: ProvinceCityArr,
  635. postalAddress: thisdata.postalAddress, //详细地址
  636. outsource: thisdata.outsource,
  637. });
  638. }
  639. }.bind(this)
  640. }).always(
  641. function() {
  642. this.setState({
  643. loading: false
  644. });
  645. }.bind(this)
  646. );
  647. },
  648. //查看下证信息
  649. loaduserss(record) {
  650. $.ajax({
  651. method: "get",
  652. dataType: "json",
  653. crossDomain: false,
  654. url:
  655. globalConfig.context + "/api/admin/orderProject/selectTaskProgress",
  656. data: {
  657. tid: record.id
  658. },
  659. success: function(data) {
  660. let theArr = [];
  661. let thisData = [];
  662. if (!thisData) {
  663. if (data.error && data.error.length) {
  664. message.warning(data.error[0].message);
  665. }
  666. thisData = {};
  667. } else {
  668. for (let i = 0; i < data.data.length; i++) {
  669. thisData = data.data[i];
  670. theArr.push({
  671. num: i + 1,
  672. key: i,
  673. id: thisData.id, //编号
  674. alreadyNumber: thisData.alreadyNumber, //下证数
  675. licenceTimes: thisData.licenceTimes, //下证时间
  676. notCount: thisData.notCount, //未下证数
  677. flag: true
  678. });
  679. }
  680. this.setState({
  681. contactList: theArr
  682. });
  683. }
  684. }.bind(this)
  685. }).always(
  686. function() {
  687. this.setState({
  688. loading: false
  689. });
  690. }.bind(this)
  691. );
  692. },
  693. caozuorizhi() {
  694. this.setState({
  695. visibleA: true
  696. });
  697. $.ajax({
  698. method: "get",
  699. dataType: "json",
  700. crossDomain: false,
  701. url: globalConfig.context + "/api/admin/orderProject/TaskLogList",
  702. data: {
  703. id: this.state.id
  704. },
  705. success: function(data) {
  706. let theArr = [];
  707. if (data.error.length || data.data.list == "") {
  708. if (data.error && data.error.length) {
  709. message.warning(data.error[0].message);
  710. }
  711. } else {
  712. for (let i = 0; i < data.data.length; i++) {
  713. let thisdata = data.data[i];
  714. theArr.push({
  715. key: i,
  716. id: thisdata.id, //日志ID
  717. content: thisdata.content, //流程
  718. taskId: thisdata.taskId, //任务ID
  719. aName: thisdata.aName, //负责人
  720. createTimes: thisdata.createTimes //时间
  721. });
  722. }
  723. }
  724. this.setState({
  725. dataSourceA: theArr
  726. });
  727. }.bind(this)
  728. }).always(
  729. function() {
  730. this.setState({
  731. loading: false
  732. });
  733. }.bind(this)
  734. );
  735. },
  736. //关闭操作工时
  737. visitCancelA() {
  738. this.setState({
  739. visibleA: false
  740. });
  741. },
  742. //项目列表
  743. xiangmu(orderNos) {
  744. $.ajax({
  745. method: "get",
  746. dataType: "json",
  747. crossDomain: false,
  748. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  749. data: {
  750. orderNo: orderNos
  751. },
  752. success: function(data) {
  753. let theArr = [];
  754. if (data.error.length || data.data.list == "") {
  755. if (data.error && data.error.length) {
  756. message.warning(data.error[0].message);
  757. }
  758. } else {
  759. for (let i = 0; i < data.data.length; i++) {
  760. let thisdata = data.data[i];
  761. theArr.push({
  762. key: i,
  763. id: thisdata.id,
  764. orderNo: thisdata.orderNo, //订单编号
  765. commodityId: thisdata.commodityId, //项目ID
  766. commodityName: thisdata.commodityName, //项目名称
  767. cname: thisdata.cname, //项目类别
  768. commodityPrice: thisdata.commodityPrice, //项目价格
  769. commodityQuantity: thisdata.commodityQuantity, //项目数量
  770. main: thisdata.main, //是否为主要任务
  771. taskComment: thisdata.taskComment, //任务说明
  772. contacts: thisdata.contacts, //联系人
  773. contactsMobile: thisdata.contactsMobile, //联系人电话
  774. taskStatus: thisdata.taskStatus, //是否分配
  775. splitStatus: thisdata.splitStatus, //是否为子项目 2是 1主项目
  776. splitSuper: thisdata.splitSuper,
  777. splitId: thisdata.splitId
  778. });
  779. }
  780. }
  781. this.setState({
  782. dataSourceX: theArr
  783. });
  784. }.bind(this)
  785. }).always(
  786. function() {
  787. this.setState({
  788. loading: false
  789. });
  790. }.bind(this)
  791. );
  792. },
  793. //关闭输入理由框
  794. noCancel() {
  795. this.setState({
  796. noVisible: false
  797. });
  798. },
  799. //搜索
  800. search() {
  801. this.setState({
  802. //signBillVisible:false
  803. });
  804. this.loadData();
  805. },
  806. //重置
  807. reset() {
  808. this.setState({
  809. signBillVisible: false
  810. });
  811. this.state.idSearch = "";
  812. this.state.customerName = "";
  813. this.state.releaseDate[0] = undefined;
  814. this.state.releaseDate[1] = undefined;
  815. this.state.orderNoSearch = "";
  816. this.state.departmenttList = [];
  817. this.state.cid = [];
  818. this.state.contractNoSearch = "";
  819. this.state.outsourceSearch = [];
  820. this.loadData(this.state.page);
  821. },
  822. resets() {
  823. this.state.orderNo = "";
  824. this.state.customerName = "";
  825. this.state.releaseDate[0] = undefined;
  826. this.state.releaseDate[1] = undefined;
  827. },
  828. getOrgCodeUrl(e) {
  829. this.setState({ orgCodeUrl: e });
  830. },
  831. //关闭操作工时
  832. visitCancelA() {
  833. this.setState({
  834. visibleA: false
  835. });
  836. },
  837. setColor() {
  838. $(".userName span").after(
  839. "(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)"
  840. );
  841. },
  842. closeDesc(e, s) {
  843. this.state.showDesc = e;
  844. if (s) {
  845. this.loadData(this.state.page);
  846. }
  847. },
  848. closeAssign(e, s) {
  849. this.state.roleName = "";
  850. this.state.assignVisible = e;
  851. if (s) {
  852. this.loadData(this.state.page);
  853. }
  854. },
  855. nextCancel() {
  856. this.setState({
  857. addnextVisible: false
  858. });
  859. },
  860. //点击打卡项目详情
  861. tableRowClickX(record) {
  862. this.setState({
  863. jid: record.id, //项目ID
  864. kid: record.commodityId, //商品ID
  865. commodityName: record.commodityName, //金额
  866. commodityPrice: record.commodityPrice, //金额
  867. commodityQuantity: record.commodityQuantity, //数量
  868. taskComment: record.taskComment, //备注
  869. main: record.main.toString(), //是否为主要
  870. addnextVisible: true,
  871. addState: 0
  872. });
  873. },
  874. //关闭详情
  875. visitCancel() {
  876. this.setState({
  877. visible: false,
  878. speVisible: false
  879. });
  880. this.resets();
  881. },
  882. visitOk() {
  883. this.setState({
  884. visible: false
  885. });
  886. this.resets();
  887. },
  888. //关闭详情
  889. visitCancels() {
  890. this.setState({
  891. visibles: false
  892. });
  893. this.resets();
  894. },
  895. //导出
  896. exportExec() {
  897. let nameText = this.state.SuperArr;
  898. let superText =
  899. this.state.cid && typeof this.state.cid != "object"
  900. ? nameText[parseInt(this.state.cid)].id
  901. : "";
  902. if (superText) {
  903. var data = {
  904. orderNo: this.state.orderNoSearch
  905. ? this.state.orderNoSearch
  906. : undefined,
  907. name: this.state.customerName ? this.state.customerName : undefined, //订单负责人
  908. taskId: this.state.idSearch ? this.state.idSearch : undefined, //订单编号
  909. starTime: this.state.releaseDate[0]
  910. ? this.state.releaseDate[0]
  911. : undefined,
  912. endTime: this.state.releaseDate[1]
  913. ? this.state.releaseDate[1]
  914. : undefined,
  915. depId: this.state.departmenttList
  916. ? this.state.departmenttList
  917. : undefined,
  918. cid: superText
  919. };
  920. } else {
  921. var data = {
  922. orderNo: this.state.orderNoSearch
  923. ? this.state.orderNoSearch
  924. : undefined,
  925. name: this.state.customerName ? this.state.customerName : undefined, //订单负责人
  926. taskId: this.state.idSearch ? this.state.idSearch : undefined, //订单编号
  927. starTime: this.state.releaseDate[0]
  928. ? this.state.releaseDate[0]
  929. : undefined,
  930. endTime: this.state.releaseDate[1]
  931. ? this.state.releaseDate[1]
  932. : undefined,
  933. depId: this.state.departmenttList
  934. ? this.state.departmenttList
  935. : undefined
  936. };
  937. }
  938. window.location.href =
  939. globalConfig.context +
  940. "/api/admin/orderProject/exportMyTaskList?" +
  941. $.param(data);
  942. },
  943. visitOks() {
  944. this.setState({
  945. visibles: false
  946. });
  947. this.resets();
  948. },
  949. selectSuperId() {
  950. this.state.data = [];
  951. $.ajax({
  952. method: "get",
  953. dataType: "json",
  954. crossDomain: false,
  955. url: globalConfig.context + "/api/admin/ProjectSize/getAllCname",
  956. data: {
  957. flag: 0
  958. },
  959. success: function(data) {
  960. let theArr = [];
  961. let thedata = data.data;
  962. if (!thedata) {
  963. if (data.error && data.error.length) {
  964. message.warning(data.error[0].message);
  965. }
  966. thedata = {};
  967. }
  968. var contactIds = [];
  969. for (var i = 0; i < data.data.length; i++) {
  970. let theData = data.data[i];
  971. theArr.push(
  972. <Select.Option value={i.toString()} key={theData.cname}>
  973. {theData.cname}
  974. </Select.Option>
  975. );
  976. }
  977. this.setState({
  978. SuperArr: thedata,
  979. contactsOption: theArr,
  980. orderStatusOptions: data.data
  981. });
  982. }.bind(this)
  983. }).always(
  984. function() {
  985. this.loadData(this.state.ispage);
  986. this.setState({
  987. loading: false
  988. });
  989. }.bind(this)
  990. );
  991. },
  992. render() {
  993. const formItemLayout = {
  994. labelCol: { span: 8 },
  995. wrapperCol: { span: 14 }
  996. };
  997. const utils = {
  998. getSatisfaction: function(num) {
  999. switch (num) {
  1000. case 0:
  1001. return "未收回";
  1002. case 1:
  1003. return "已收回";
  1004. default:
  1005. return "其它";
  1006. }
  1007. },
  1008. getChargeback: function(num) {
  1009. switch (num) {
  1010. case 0:
  1011. return "已完成";
  1012. case 1:
  1013. return "未完成";
  1014. default:
  1015. return "其它";
  1016. }
  1017. }
  1018. };
  1019. const isWai = [
  1020. {
  1021. id: 0,
  1022. name: "非外包"
  1023. },
  1024. {
  1025. id: 1,
  1026. name: "外包"
  1027. }
  1028. ];
  1029. const FormItem = Form.Item;
  1030. const { RangePicker } = DatePicker;
  1031. const departmentArr = this.state.departmentArr || [];
  1032. return (
  1033. <div className="user-content">
  1034. {this.state.resVisible ? (
  1035. <ResolutionDetail
  1036. cancel={this.resCancel}
  1037. detail={this.state.resRecord}
  1038. visible={this.state.resVisible}
  1039. id={this.state.resRecord.orderNo}
  1040. />
  1041. ) : (
  1042. ""
  1043. )}
  1044. <div className="content-title">
  1045. <span>工时数据统计</span>
  1046. </div>
  1047. <div className="user-search">
  1048. <Tabs
  1049. defaultActiveKey="1"
  1050. onChange={this.callback}
  1051. className="test"
  1052. >
  1053. <TabPane tab="搜索" key="1">
  1054. <Input
  1055. placeholder="客户名称"
  1056. style={{
  1057. width: "150px",
  1058. marginBottom: "10px",
  1059. marginLeft: 10,
  1060. marginRight: 10,
  1061. }}
  1062. value={this.state.customerName}
  1063. onChange={(e) => {
  1064. this.setState({ customerName: e.target.value });
  1065. }}
  1066. />
  1067. <Input
  1068. placeholder="任务编号"
  1069. style={{ width: "150px", marginRight: 10 }}
  1070. value={this.state.idSearch}
  1071. onChange={(e) => {
  1072. this.setState({ idSearch: e.target.value });
  1073. }}
  1074. />
  1075. <Input
  1076. placeholder="订单编号"
  1077. style={{ width: "150px", marginRight: 10 }}
  1078. value={this.state.orderNoSearch}
  1079. onChange={(e) => {
  1080. this.setState({
  1081. orderNoSearch: e.target.value,
  1082. });
  1083. }}
  1084. />
  1085. <Input
  1086. placeholder="合同编号"
  1087. style={{ width: "150px", marginRight: 10 }}
  1088. value={this.state.contractNoSearch}
  1089. onChange={(e) => {
  1090. this.setState({
  1091. contractNoSearch: e.target.value,
  1092. });
  1093. }}
  1094. />
  1095. <Select
  1096. placeholder="订单部门"
  1097. style={{ width: 150, marginRight: 10 }}
  1098. value={this.state.departmenttList}
  1099. onChange={(e) => {
  1100. this.setState({ departmenttList: e });
  1101. }}
  1102. >
  1103. {departmentArr.map(function (item) {
  1104. return (
  1105. <Select.Option key={item.id}>{item.name}</Select.Option>
  1106. );
  1107. })}
  1108. </Select>
  1109. <Select
  1110. placeholder="项目类别"
  1111. style={{ width: "150", marginRight: "10px" }}
  1112. value={this.state.cid}
  1113. onChange={(e) => {
  1114. this.setState({ cid: e });
  1115. }}
  1116. notFoundContent="未获取到上级品类列表"
  1117. >
  1118. {this.state.contactsOption}
  1119. </Select>
  1120. <Select
  1121. placeholder="是否外包"
  1122. style={{ width: "150", marginRight: "10px" }}
  1123. value={this.state.outsourceSearch}
  1124. onChange={(e) => {
  1125. this.setState({ outsourceSearch: e });
  1126. }}
  1127. >
  1128. {isWai.map(function (item) {
  1129. return (
  1130. <Select.Option key={item.id}>{item.name}</Select.Option>
  1131. );
  1132. })}
  1133. </Select>
  1134. <span style={{ marginRight: "10px" }}>合同签订时间 :</span>
  1135. <RangePicker
  1136. value={[
  1137. this.state.releaseDate[0]
  1138. ? moment(this.state.releaseDate[0])
  1139. : null,
  1140. this.state.releaseDate[1]
  1141. ? moment(this.state.releaseDate[1])
  1142. : null,
  1143. ]}
  1144. onChange={(data, dataString) => {
  1145. this.setState({ releaseDate: dataString });
  1146. }}
  1147. />
  1148. <Button
  1149. type="primary"
  1150. onClick={this.search}
  1151. style={{
  1152. marginLeft: "10px",
  1153. marginRight: 10,
  1154. marginBottom: 10,
  1155. }}
  1156. >
  1157. 搜索
  1158. </Button>
  1159. <Button onClick={this.reset}>重置</Button>
  1160. </TabPane>
  1161. <TabPane tab="导出" key="2">
  1162. <Button
  1163. type="primary"
  1164. onClick={this.exportExec}
  1165. style={{ margin: 10 }}
  1166. >
  1167. 导出工时数据
  1168. </Button>
  1169. </TabPane>
  1170. </Tabs>
  1171. <div className="patent-table">
  1172. <Spin spinning={this.state.loading}>
  1173. <Table
  1174. columns={this.state.columns}
  1175. dataSource={this.state.dataSource}
  1176. pagination={this.state.pagination}
  1177. onRowClick={this.tableRowClick.bind(this)}
  1178. scroll={{ x: "max-content", y: 0 }}
  1179. bordered
  1180. size="small"
  1181. />
  1182. </Spin>
  1183. </div>
  1184. </div>
  1185. <Modal
  1186. className="customeDetails"
  1187. footer=""
  1188. title="项目概况"
  1189. width="900px"
  1190. visible={this.state.visible}
  1191. onOk={this.visitOk}
  1192. onCancel={this.visitCancel}
  1193. >
  1194. <Form
  1195. layout="horizontal"
  1196. onSubmit={this.handleSubmit}
  1197. id="demand-form"
  1198. style={{ paddingBottom: "00px" }}
  1199. >
  1200. <Spin spinning={this.state.loading}>
  1201. <div className="clearfix">
  1202. <div className="clearfix">
  1203. <FormItem
  1204. className="half-item"
  1205. {...formItemLayout}
  1206. label="当前项目情况"
  1207. >
  1208. <span>{this.state.status ? "暂停" : "开启"}</span>
  1209. <Button
  1210. type="primary"
  1211. size="small"
  1212. style={{ marginTop: "5px", position: "absolute" }}
  1213. onClick={this.caozuorizhi}
  1214. >
  1215. 操作日志
  1216. </Button>
  1217. </FormItem>
  1218. <FormItem
  1219. className="half-item"
  1220. {...formItemLayout}
  1221. label="合同编号"
  1222. >
  1223. <span>{this.state.contractNo}</span>
  1224. </FormItem>
  1225. </div>
  1226. <div className="clearfix">
  1227. <FormItem
  1228. className="half-item"
  1229. {...formItemLayout}
  1230. label="项目状态"
  1231. >
  1232. <span>{getProcessStatus(this.state.projectStatus)}</span>
  1233. </FormItem>
  1234. <FormItem
  1235. className="half-item"
  1236. {...formItemLayout}
  1237. label="是否特批"
  1238. >
  1239. <span>{getApproval(this.state.approval)}</span>
  1240. </FormItem>
  1241. <FormItem
  1242. className="half-item"
  1243. {...formItemLayout}
  1244. label="结算状态"
  1245. >
  1246. <span>
  1247. {getLiquidationStatus(this.state.liquidationStatus)}
  1248. </span>
  1249. </FormItem>
  1250. <FormItem
  1251. className="half-item"
  1252. {...formItemLayout}
  1253. label="流程状态"
  1254. >
  1255. <span>{getProcessStatus(this.state.processStatus)}</span>
  1256. </FormItem>
  1257. <FormItem
  1258. className="half-item"
  1259. {...formItemLayout}
  1260. label="订单编号"
  1261. >
  1262. <span>{this.state.orderNo}</span>
  1263. </FormItem>
  1264. </div>
  1265. <div className="clearfix">
  1266. <FormItem
  1267. className="half-item"
  1268. {...formItemLayout}
  1269. label="满意度表格"
  1270. >
  1271. <span>
  1272. {utils.getSatisfaction(this.state.formRetrieve)}
  1273. </span>
  1274. </FormItem>
  1275. <FormItem
  1276. className="half-item"
  1277. {...formItemLayout}
  1278. label="退单"
  1279. >
  1280. <span>{utils.getChargeback(this.state.taskRefund)}</span>
  1281. </FormItem>
  1282. </div>
  1283. <div className="clearfix">
  1284. {
  1285. <FormItem
  1286. className="half-item"
  1287. {...formItemLayout}
  1288. label="(满意度)备注"
  1289. >
  1290. <span>{this.state.retrieveContent}</span>
  1291. </FormItem>
  1292. }
  1293. {
  1294. <FormItem
  1295. className="half-item"
  1296. {...formItemLayout}
  1297. label="(退单)备注"
  1298. >
  1299. <span>{this.state.refundContent}</span>
  1300. </FormItem>
  1301. }
  1302. </div>
  1303. <div className="clearfix">
  1304. <h3 className="sub-title">任务信息</h3>
  1305. <FormItem
  1306. className="half-item"
  1307. {...formItemLayout}
  1308. label="任务编号"
  1309. >
  1310. <span>
  1311. {this.state.splitStatus == 2
  1312. ? this.state.splitSuper + "-" + this.state.splitId
  1313. : this.state.id}
  1314. </span>
  1315. </FormItem>
  1316. <FormItem
  1317. className="half-item"
  1318. {...formItemLayout}
  1319. label="任务名称"
  1320. >
  1321. <span>{this.state.taskName}</span>
  1322. </FormItem>
  1323. <FormItem
  1324. className="half-item"
  1325. {...formItemLayout}
  1326. label="任务状态"
  1327. >
  1328. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1329. </FormItem>
  1330. <FormItem
  1331. className="half-item"
  1332. {...formItemLayout}
  1333. label="任务类别"
  1334. >
  1335. <span>{this.state.cname}</span>
  1336. </FormItem>
  1337. <FormItem
  1338. className="half-item"
  1339. {...formItemLayout}
  1340. label="证书编号"
  1341. >
  1342. <span>{this.state.certificateNumber}</span>
  1343. </FormItem>
  1344. </div>
  1345. {this.state.outsource === 1 ? (
  1346. <div className="clearfix">
  1347. <h3 className="sub-title">外包信息</h3>
  1348. <FormItem
  1349. className="half-item"
  1350. {...formItemLayout}
  1351. label="外包公司"
  1352. >
  1353. <span>{this.state.outsourceName}</span>
  1354. </FormItem>
  1355. <FormItem
  1356. className="half-item"
  1357. {...formItemLayout}
  1358. label="外包成本(万元)"
  1359. >
  1360. <span>{this.state.outsourcePrice}</span>
  1361. </FormItem>
  1362. </div>
  1363. ) : (
  1364. ""
  1365. )}
  1366. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1367. <div className="clearfix">
  1368. <h3 className="sub-title">联系信息</h3>
  1369. <FormItem
  1370. className="half-item"
  1371. {...formItemLayout}
  1372. label="客户名称"
  1373. >
  1374. <span>{this.state.userName}</span>
  1375. </FormItem>
  1376. <FormItem
  1377. className="half-item"
  1378. {...formItemLayout}
  1379. label="企业法人"
  1380. >
  1381. <span>{this.state.legalPerson}</span>
  1382. </FormItem>
  1383. <FormItem
  1384. className="half-item"
  1385. {...formItemLayout}
  1386. label="法人电话"
  1387. >
  1388. <span>{this.state.legalPersonTel}</span>
  1389. </FormItem>
  1390. <FormItem
  1391. className="half-item"
  1392. {...formItemLayout}
  1393. label="客户联系人"
  1394. >
  1395. <span>{this.state.contacts}</span>
  1396. </FormItem>
  1397. <FormItem
  1398. className="half-item"
  1399. {...formItemLayout}
  1400. label="联系人电话"
  1401. >
  1402. <span>{this.state.contactMobile}</span>
  1403. </FormItem>
  1404. <FormItem
  1405. className="half-item"
  1406. {...formItemLayout}
  1407. label="企业地址"
  1408. >
  1409. <span>
  1410. {getprovince(this.state.locationProvince)}/
  1411. {getprovince(this.state.locationCity)}/
  1412. {getprovince(this.state.locationArea)}
  1413. </span>
  1414. </FormItem>
  1415. <FormItem
  1416. className="half-item"
  1417. {...formItemLayout}
  1418. label=""
  1419. ></FormItem>
  1420. <FormItem className="half-item" {...formItemLayout}>
  1421. <span style={{ paddingLeft: "12em" }}>
  1422. {this.state.postalAddress}
  1423. </span>
  1424. </FormItem>
  1425. </div>
  1426. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1427. <div className="clearfix">
  1428. <h3 className="sub-title">订单负责人信息</h3>
  1429. <FormItem
  1430. className="half-item"
  1431. {...formItemLayout}
  1432. label="负责人"
  1433. >
  1434. <span>
  1435. {this.state.salesmanName +
  1436. "(" +
  1437. this.state.depName +
  1438. ")"}
  1439. </span>
  1440. </FormItem>
  1441. <FormItem
  1442. className="half-item"
  1443. {...formItemLayout}
  1444. label="负责人电话"
  1445. >
  1446. <span>{this.state.salesmanMobile}</span>
  1447. </FormItem>
  1448. <FormItem
  1449. className="half-item"
  1450. {...formItemLayout}
  1451. label="财务负责人"
  1452. >
  1453. <span>{this.state.financeName}</span>
  1454. </FormItem>
  1455. <FormItem
  1456. className="half-item"
  1457. {...formItemLayout}
  1458. label="财务负责人电话"
  1459. >
  1460. <span>{this.state.financeMobile}</span>
  1461. </FormItem>
  1462. </div>
  1463. <div className="clearfix">
  1464. <h3 className="sub-title">申报系统账户信息</h3>
  1465. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  1466. <FormItem
  1467. className="half-item"
  1468. {...formItemLayout}
  1469. label="用户名"
  1470. >
  1471. <span>{this.state.declareUser ? "*" : ""}</span>
  1472. </FormItem>
  1473. <FormItem
  1474. className="half-item"
  1475. {...formItemLayout}
  1476. label="密码"
  1477. >
  1478. <span>{this.state.declarePwd ? "*" : ""}</span>
  1479. </FormItem>
  1480. </div>
  1481. <div className="clearfix">
  1482. <h3 className="sub-title">项目申报进度</h3>
  1483. <FormItem
  1484. className="half-item"
  1485. {...formItemLayout}
  1486. label="申报批次"
  1487. >
  1488. <span>{this.state.declarationBatch}</span>
  1489. </FormItem>
  1490. <FormItem
  1491. className="half-item"
  1492. {...formItemLayout}
  1493. label="启动时间"
  1494. >
  1495. <span>{this.state.startDate}</span>
  1496. </FormItem>
  1497. <FormItem
  1498. className="half-item"
  1499. {...formItemLayout}
  1500. label="完成时间"
  1501. >
  1502. <span>{this.state.endDate}</span>
  1503. </FormItem>
  1504. <FormItem
  1505. className="half-item"
  1506. {...formItemLayout}
  1507. label="受理时间"
  1508. >
  1509. <span>{this.state.acceptDate}</span>
  1510. </FormItem>
  1511. <FormItem
  1512. className="half-item"
  1513. {...formItemLayout}
  1514. label="评审时间"
  1515. >
  1516. <span>{this.state.reviewDate}</span>
  1517. </FormItem>
  1518. <FormItem
  1519. className="half-item"
  1520. {...formItemLayout}
  1521. label="公示时间"
  1522. >
  1523. <span>{this.state.publicityDate}</span>
  1524. </FormItem>
  1525. <FormItem
  1526. className="half-item"
  1527. {...formItemLayout}
  1528. label="发证时间"
  1529. >
  1530. <span>{this.state.licenceDate}</span>
  1531. </FormItem>
  1532. <FormItem
  1533. className="half-item"
  1534. {...formItemLayout}
  1535. label="立项金额(万元)"
  1536. >
  1537. <span>{this.state.setUpAmount}</span>
  1538. </FormItem>
  1539. <FormItem
  1540. className="half-item"
  1541. {...formItemLayout}
  1542. label="是否到款"
  1543. >
  1544. <span>
  1545. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1546. </span>
  1547. </FormItem>
  1548. </div>
  1549. <div className="clearfix">
  1550. <FormItem
  1551. labelCol={{ span: 3 }}
  1552. wrapperCol={{ span: 18 }}
  1553. label="附件"
  1554. >
  1555. <Upload
  1556. className="demandDetailShow-upload"
  1557. listType="picture-card"
  1558. fileList={this.state.attachmentUrl}
  1559. onPreview={(file) => {
  1560. this.setState({
  1561. previewImage: file.url || file.thumbUrl,
  1562. previewVisible: true,
  1563. });
  1564. }}
  1565. ></Upload>
  1566. <Modal
  1567. maskClosable={false}
  1568. footer={null}
  1569. visible={this.state.previewVisible}
  1570. onCancel={() => {
  1571. this.setState({ previewVisible: false });
  1572. }}
  1573. >
  1574. <img
  1575. alt=""
  1576. style={{ width: "100%" }}
  1577. src={this.state.previewImage || ""}
  1578. />
  1579. </Modal>
  1580. </FormItem>
  1581. </div>
  1582. <div className="clearfix">
  1583. <FormItem
  1584. labelCol={{ span: 3 }}
  1585. wrapperCol={{ span: 16 }}
  1586. label="备注"
  1587. >
  1588. <span>{this.state.taskComment}</span>
  1589. </FormItem>
  1590. </div>
  1591. <div>
  1592. <h3 className="sub-title">项目业务</h3>
  1593. {this.state.processStatus == 0 ? (
  1594. <Button
  1595. type="primary"
  1596. onClick={this.addDetailed}
  1597. style={{
  1598. float: "right",
  1599. marginRight: "50px",
  1600. marginBottom: "15px",
  1601. }}
  1602. >
  1603. 添加项目明细
  1604. </Button>
  1605. ) : (
  1606. ""
  1607. )}
  1608. </div>
  1609. <div className="patent-table">
  1610. <Spin spinning={this.state.loading}>
  1611. <Table
  1612. columns={this.state.columnsX}
  1613. dataSource={this.state.dataSourceX}
  1614. pagination={this.state.paginations}
  1615. onRowClick={this.tableRowClickX}
  1616. bordered
  1617. size={"small"}
  1618. />
  1619. </Spin>
  1620. </div>
  1621. </div>
  1622. </Spin>
  1623. </Form>
  1624. </Modal>
  1625. <Modal
  1626. maskClosable={false}
  1627. visible={this.state.addnextVisible}
  1628. onOk={this.nextCancel}
  1629. onCancel={this.nextCancel}
  1630. width="900px"
  1631. title="项目任务详情"
  1632. footer=""
  1633. className="admin-desc-content"
  1634. >
  1635. <Form
  1636. layout="horizontal"
  1637. onSubmit={this.nextSubmit}
  1638. id="demand-form"
  1639. >
  1640. <Spin spinning={this.state.loading}>
  1641. <div className="clearfix">
  1642. <FormItem
  1643. className="half-item"
  1644. {...formItemLayout}
  1645. label="项目名称"
  1646. >
  1647. <span>{this.state.commodityName}</span>
  1648. </FormItem>
  1649. <FormItem
  1650. className="half-item"
  1651. {...formItemLayout}
  1652. label="项目数量"
  1653. >
  1654. <span>{this.state.commodityQuantity}</span>
  1655. </FormItem>
  1656. <FormItem
  1657. className="half-item"
  1658. {...formItemLayout}
  1659. label="金额(万元)"
  1660. >
  1661. <span>{this.state.commodityPrice}</span>
  1662. </FormItem>
  1663. <FormItem
  1664. className="half-item"
  1665. {...formItemLayout}
  1666. label="主要项目"
  1667. >
  1668. <span>{getboutique(this.state.main)}</span>
  1669. </FormItem>
  1670. <div className="clearfix">
  1671. <FormItem
  1672. labelCol={{ span: 4 }}
  1673. wrapperCol={{ span: 16 }}
  1674. label="服务说明"
  1675. >
  1676. <span>{this.state.taskComment}</span>
  1677. </FormItem>
  1678. </div>
  1679. </div>
  1680. </Spin>
  1681. </Form>
  1682. </Modal>
  1683. <Modal
  1684. width="800px"
  1685. title="操作日志"
  1686. footer=""
  1687. className="admin-desc-content"
  1688. >
  1689. <div className="patent-table patent-table-center">
  1690. <Spin spinning={this.state.loading}>
  1691. <Table columns={this.state.columnsY} bordered size={"small"} />
  1692. </Spin>
  1693. </div>
  1694. </Modal>
  1695. <Modal
  1696. maskClosable={false}
  1697. visible={this.state.speVisible}
  1698. onOk={this.visitOk}
  1699. onCancel={this.visitCancel}
  1700. width="900px"
  1701. title="项目概况"
  1702. footer=""
  1703. className="admin-desc-content"
  1704. >
  1705. <div className="clearfix">
  1706. <FormItem
  1707. className="half-item"
  1708. {...formItemLayout}
  1709. label="当前项目情况"
  1710. >
  1711. <span>{this.state.status ? "暂停" : "开启"}</span>
  1712. <Button
  1713. type="primary"
  1714. size="small"
  1715. style={{ marginTop: "5px", position: "absolute" }}
  1716. onClick={this.caozuorizhi}
  1717. >
  1718. 操作日志
  1719. </Button>
  1720. </FormItem>
  1721. <FormItem
  1722. className="half-item"
  1723. {...formItemLayout}
  1724. label="合同编号"
  1725. >
  1726. <span>{this.state.contractNo}</span>
  1727. </FormItem>
  1728. </div>
  1729. <div className="clearfix">
  1730. <FormItem
  1731. className="half-item"
  1732. {...formItemLayout}
  1733. label="项目状态"
  1734. >
  1735. <span>{getProcessStatus(this.state.projectStatus)}</span>
  1736. </FormItem>
  1737. <FormItem
  1738. className="half-item"
  1739. {...formItemLayout}
  1740. label="是否特批"
  1741. >
  1742. <span>{getApproval(this.state.approval)}</span>
  1743. </FormItem>
  1744. <FormItem
  1745. className="half-item"
  1746. {...formItemLayout}
  1747. label="结算状态"
  1748. >
  1749. <span>
  1750. {getLiquidationStatus(this.state.liquidationStatus)}
  1751. </span>
  1752. </FormItem>
  1753. <FormItem
  1754. className="half-item"
  1755. {...formItemLayout}
  1756. label="流程状态"
  1757. >
  1758. <span>{getProcessStatus(this.state.processStatus)}</span>
  1759. </FormItem>
  1760. <FormItem
  1761. className="half-item"
  1762. {...formItemLayout}
  1763. label="订单编号"
  1764. >
  1765. <span>{this.state.orderNo}</span>
  1766. </FormItem>
  1767. </div>
  1768. <div className="clearfix">
  1769. <FormItem
  1770. className="half-item"
  1771. {...formItemLayout}
  1772. label="满意度表格"
  1773. >
  1774. <span>{utils.getSatisfaction(this.state.formRetrieve)}</span>
  1775. </FormItem>
  1776. <FormItem className="half-item" {...formItemLayout} label="退单">
  1777. <span>{utils.getChargeback(this.state.taskRefund)}</span>
  1778. </FormItem>
  1779. </div>
  1780. <div className="clearfix">
  1781. {
  1782. <FormItem
  1783. className="half-item"
  1784. {...formItemLayout}
  1785. label="(满意度)备注"
  1786. >
  1787. <span>{this.state.retrieveContent}</span>
  1788. </FormItem>
  1789. }
  1790. {
  1791. <FormItem
  1792. className="half-item"
  1793. {...formItemLayout}
  1794. label="(退单)备注"
  1795. >
  1796. <span>{this.state.refundContent}</span>
  1797. </FormItem>
  1798. }
  1799. </div>
  1800. <div className="clearfix">
  1801. <h3 className="sub-title">任务信息</h3>
  1802. <FormItem
  1803. className="half-item"
  1804. {...formItemLayout}
  1805. label="任务编号"
  1806. >
  1807. <span>
  1808. {this.state.splitStatus == 2
  1809. ? this.state.splitSuper + "-" + this.state.splitId
  1810. : this.state.id}
  1811. </span>
  1812. </FormItem>
  1813. <FormItem
  1814. className="half-item"
  1815. {...formItemLayout}
  1816. label="任务名称"
  1817. >
  1818. <span>{this.state.taskName}</span>
  1819. </FormItem>
  1820. <FormItem
  1821. className="half-item"
  1822. {...formItemLayout}
  1823. label="任务状态"
  1824. >
  1825. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1826. </FormItem>
  1827. <FormItem
  1828. className="half-item"
  1829. {...formItemLayout}
  1830. label="任务类别"
  1831. >
  1832. <span>{this.state.cname}</span>
  1833. </FormItem>
  1834. <FormItem
  1835. className="half-item"
  1836. {...formItemLayout}
  1837. label="证书编号"
  1838. >
  1839. <span>{this.state.certificateNumber}</span>
  1840. </FormItem>
  1841. </div>
  1842. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1843. <div className="clearfix">
  1844. <h3 className="sub-title">联系信息</h3>
  1845. <FormItem
  1846. className="half-item"
  1847. {...formItemLayout}
  1848. label="客户名称"
  1849. >
  1850. <span>{this.state.userName}</span>
  1851. </FormItem>
  1852. <FormItem
  1853. className="half-item"
  1854. {...formItemLayout}
  1855. label="企业法人"
  1856. >
  1857. <span>{this.state.legalPerson}</span>
  1858. </FormItem>
  1859. <FormItem
  1860. className="half-item"
  1861. {...formItemLayout}
  1862. label="法人电话"
  1863. >
  1864. <span>{this.state.legalPersonTel}</span>
  1865. </FormItem>
  1866. <FormItem
  1867. className="half-item"
  1868. {...formItemLayout}
  1869. label="客户联系人"
  1870. >
  1871. <span>{this.state.contacts}</span>
  1872. </FormItem>
  1873. <FormItem
  1874. className="half-item"
  1875. {...formItemLayout}
  1876. label="联系人电话"
  1877. >
  1878. <span>{this.state.contactMobile}</span>
  1879. </FormItem>
  1880. <FormItem
  1881. className="half-item"
  1882. {...formItemLayout}
  1883. label="企业地址"
  1884. >
  1885. <span>
  1886. {getprovince(this.state.locationProvince)}/
  1887. {getprovince(this.state.locationCity)}/
  1888. {getprovince(this.state.locationArea)}
  1889. </span>
  1890. </FormItem>
  1891. <FormItem
  1892. className="half-item"
  1893. {...formItemLayout}
  1894. label=""
  1895. ></FormItem>
  1896. <FormItem className="half-item" {...formItemLayout} label="">
  1897. <span style={{ paddingLeft: "12em" }}>
  1898. {this.state.postalAddress}
  1899. </span>
  1900. </FormItem>
  1901. </div>
  1902. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1903. <div className="clearfix">
  1904. <h3 className="sub-title">订单负责人信息</h3>
  1905. <FormItem
  1906. className="half-item"
  1907. {...formItemLayout}
  1908. label="负责人"
  1909. >
  1910. <span>
  1911. {this.state.salesmanName + "(" + this.state.depName + ")"}
  1912. </span>
  1913. </FormItem>
  1914. <FormItem
  1915. className="half-item"
  1916. {...formItemLayout}
  1917. label="负责人电话"
  1918. >
  1919. <span>{this.state.salesmanMobile}</span>
  1920. </FormItem>
  1921. <FormItem
  1922. className="half-item"
  1923. {...formItemLayout}
  1924. label="财务负责人"
  1925. >
  1926. <span>{this.state.financeName}</span>
  1927. </FormItem>
  1928. <FormItem
  1929. className="half-item"
  1930. {...formItemLayout}
  1931. label="财务负责人电话"
  1932. >
  1933. <span>{this.state.financeMobile}</span>
  1934. </FormItem>
  1935. </div>
  1936. <div className="clearfix" style={{ marginTop: "10px" }}>
  1937. <FormItem
  1938. labelCol={{ span: 3 }}
  1939. wrapperCol={{ span: 18 }}
  1940. label="附件"
  1941. >
  1942. <Upload
  1943. className="demandDetailShow-upload"
  1944. listType="picture-card"
  1945. fileList={this.state.attachmentUrl}
  1946. onPreview={(file) => {
  1947. this.setState({
  1948. previewImage: file.url || file.thumbUrl,
  1949. previewVisible: true,
  1950. });
  1951. }}
  1952. ></Upload>
  1953. <Modal
  1954. maskClosable={false}
  1955. footer={null}
  1956. visible={this.state.previewVisible}
  1957. onCancel={() => {
  1958. this.setState({ previewVisible: false });
  1959. }}
  1960. >
  1961. <img
  1962. alt=""
  1963. style={{ width: "100%" }}
  1964. src={this.state.previewImage || ""}
  1965. />
  1966. </Modal>
  1967. </FormItem>
  1968. </div>
  1969. <div className="clearfix">
  1970. <FormItem
  1971. labelCol={{ span: 3 }}
  1972. wrapperCol={{ span: 16 }}
  1973. label="备注"
  1974. >
  1975. <span>{this.state.taskComment}</span>
  1976. </FormItem>
  1977. </div>
  1978. <div className="clearfix">
  1979. <h3 className="sub-title">项目申报进度</h3>
  1980. <FormItem
  1981. className="half-item"
  1982. {...formItemLayout}
  1983. label="申报批次"
  1984. >
  1985. <span>{this.state.declarationBatch}</span>
  1986. </FormItem>
  1987. <FormItem
  1988. className="half-item"
  1989. {...formItemLayout}
  1990. label="启动时间"
  1991. >
  1992. <span>{this.state.startDate}</span>
  1993. </FormItem>
  1994. <FormItem
  1995. className="half-item"
  1996. {...formItemLayout}
  1997. label="软著派单数量"
  1998. >
  1999. <span>{this.state.commodityQuantity}</span>
  2000. </FormItem>
  2001. <div className="patent-table patent-table-center">
  2002. <Spin spinning={this.state.loading}>
  2003. <Table
  2004. columns={this.state.ContactsLists}
  2005. dataSource={this.state.contactList}
  2006. bordered
  2007. size="small"
  2008. pagination={false}
  2009. />
  2010. </Spin>
  2011. </div>
  2012. </div>
  2013. <div className="clearfix">
  2014. <h3 className="sub-title">项目业务</h3>
  2015. <div className="patent-table">
  2016. <Spin spinning={this.state.loading}>
  2017. <Table
  2018. columns={this.state.columnsX}
  2019. dataSource={this.state.dataSourceX}
  2020. pagination={this.state.paginations}
  2021. onRowClick={this.tableRowClickX}
  2022. bordered
  2023. size="small"
  2024. />
  2025. </Spin>
  2026. </div>
  2027. </div>
  2028. </Modal>
  2029. <Modal
  2030. width="800px"
  2031. visible={this.state.visibleA}
  2032. onCancel={this.visitCancelA}
  2033. title="操作日志"
  2034. footer=""
  2035. className="admin-desc-content"
  2036. >
  2037. <div className="patent-table patent-table-center">
  2038. <Spin spinning={this.state.loading}>
  2039. <Table
  2040. columns={this.state.columnsA}
  2041. dataSource={this.state.dataSourceA}
  2042. bordered
  2043. size="small"
  2044. pagination={false}
  2045. />
  2046. </Spin>
  2047. </div>
  2048. </Modal>
  2049. </div>
  2050. );
  2051. }
  2052. })
  2053. );
  2054. export default MyTaskCount;