taskCount.jsx 66 KB

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