myTaskCount.jsx 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058
  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. });
  576. }
  577. }.bind(this)
  578. }).always(
  579. function() {
  580. this.setState({
  581. loading: false
  582. });
  583. }.bind(this)
  584. );
  585. },
  586. // 拆分详细
  587. showRes(record) {
  588. this.setState({
  589. resVisible: true,
  590. resRecord: record
  591. });
  592. },
  593. resCancel() {
  594. this.setState({
  595. resVisible: false
  596. });
  597. },
  598. //订单详情
  599. xiangqings(orderNos) {
  600. $.ajax({
  601. method: "get",
  602. dataType: "json",
  603. crossDomain: false,
  604. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  605. data: {
  606. orderNo: orderNos
  607. },
  608. success: function(data) {
  609. let thisdata = data.data;
  610. let ProvinceCityArr = [];
  611. let ProvinceS = thisdata.locationProvince; //省
  612. let citys = thisdata.locationCity; //市
  613. let Areas = thisdata.locationArea; //区
  614. ProvinceCityArr.push(ProvinceS, citys, Areas);
  615. if (data.error.length || data.data.list == "") {
  616. if (data.error && data.error.length) {
  617. message.warning(data.error[0].message);
  618. }
  619. } else {
  620. this.setState({
  621. processStatus: thisdata.processStatus, //流程状态
  622. liquidationStatus: thisdata.liquidationStatus, //结算状态
  623. approval: thisdata.approval, //特批状态
  624. orderRemarks: thisdata.orderRemarks, //订单留言
  625. salesmanName: thisdata.salesmanName, //营销员名称
  626. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  627. financeName: thisdata.financeName, //财务名称
  628. financeMobile: thisdata.financeMobile, //财务电话
  629. depName: thisdata.depName, //订单部门
  630. locationProvince: thisdata.locationProvince,
  631. locationCity: thisdata.locationCity,
  632. locationArea: thisdata.locationArea,
  633. ProvinceCity: ProvinceCityArr,
  634. postalAddress: thisdata.postalAddress, //详细地址
  635. outsource: thisdata.outsource,
  636. });
  637. }
  638. }.bind(this)
  639. }).always(
  640. function() {
  641. this.setState({
  642. loading: false
  643. });
  644. }.bind(this)
  645. );
  646. },
  647. //查看下证信息
  648. loaduserss(record) {
  649. $.ajax({
  650. method: "get",
  651. dataType: "json",
  652. crossDomain: false,
  653. url:
  654. globalConfig.context + "/api/admin/orderProject/selectTaskProgress",
  655. data: {
  656. tid: record.id
  657. },
  658. success: function(data) {
  659. let theArr = [];
  660. let thisData = [];
  661. if (!thisData) {
  662. if (data.error && data.error.length) {
  663. message.warning(data.error[0].message);
  664. }
  665. thisData = {};
  666. } else {
  667. for (let i = 0; i < data.data.length; i++) {
  668. thisData = data.data[i];
  669. theArr.push({
  670. num: i + 1,
  671. key: i,
  672. id: thisData.id, //编号
  673. alreadyNumber: thisData.alreadyNumber, //下证数
  674. licenceTimes: thisData.licenceTimes, //下证时间
  675. notCount: thisData.notCount, //未下证数
  676. flag: true
  677. });
  678. }
  679. this.setState({
  680. contactList: theArr
  681. });
  682. }
  683. }.bind(this)
  684. }).always(
  685. function() {
  686. this.setState({
  687. loading: false
  688. });
  689. }.bind(this)
  690. );
  691. },
  692. caozuorizhi() {
  693. this.setState({
  694. visibleA: true
  695. });
  696. $.ajax({
  697. method: "get",
  698. dataType: "json",
  699. crossDomain: false,
  700. url: globalConfig.context + "/api/admin/orderProject/TaskLogList",
  701. data: {
  702. id: this.state.id
  703. },
  704. success: function(data) {
  705. let theArr = [];
  706. if (data.error.length || data.data.list == "") {
  707. if (data.error && data.error.length) {
  708. message.warning(data.error[0].message);
  709. }
  710. } else {
  711. for (let i = 0; i < data.data.length; i++) {
  712. let thisdata = data.data[i];
  713. theArr.push({
  714. key: i,
  715. id: thisdata.id, //日志ID
  716. content: thisdata.content, //流程
  717. taskId: thisdata.taskId, //任务ID
  718. aName: thisdata.aName, //负责人
  719. createTimes: thisdata.createTimes //时间
  720. });
  721. }
  722. }
  723. this.setState({
  724. dataSourceA: theArr
  725. });
  726. }.bind(this)
  727. }).always(
  728. function() {
  729. this.setState({
  730. loading: false
  731. });
  732. }.bind(this)
  733. );
  734. },
  735. //关闭操作工时
  736. visitCancelA() {
  737. this.setState({
  738. visibleA: false
  739. });
  740. },
  741. //项目列表
  742. xiangmu(orderNos) {
  743. $.ajax({
  744. method: "get",
  745. dataType: "json",
  746. crossDomain: false,
  747. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  748. data: {
  749. orderNo: orderNos
  750. },
  751. success: function(data) {
  752. let theArr = [];
  753. if (data.error.length || data.data.list == "") {
  754. if (data.error && data.error.length) {
  755. message.warning(data.error[0].message);
  756. }
  757. } else {
  758. for (let i = 0; i < data.data.length; i++) {
  759. let thisdata = data.data[i];
  760. theArr.push({
  761. key: i,
  762. id: thisdata.id,
  763. orderNo: thisdata.orderNo, //订单编号
  764. commodityId: thisdata.commodityId, //项目ID
  765. commodityName: thisdata.commodityName, //项目名称
  766. cname: thisdata.cname, //项目类别
  767. commodityPrice: thisdata.commodityPrice, //项目价格
  768. commodityQuantity: thisdata.commodityQuantity, //项目数量
  769. main: thisdata.main, //是否为主要任务
  770. taskComment: thisdata.taskComment, //任务说明
  771. contacts: thisdata.contacts, //联系人
  772. contactsMobile: thisdata.contactsMobile, //联系人电话
  773. taskStatus: thisdata.taskStatus, //是否分配
  774. splitStatus: thisdata.splitStatus, //是否为子项目 2是 1主项目
  775. splitSuper: thisdata.splitSuper,
  776. splitId: thisdata.splitId
  777. });
  778. }
  779. }
  780. this.setState({
  781. dataSourceX: theArr
  782. });
  783. }.bind(this)
  784. }).always(
  785. function() {
  786. this.setState({
  787. loading: false
  788. });
  789. }.bind(this)
  790. );
  791. },
  792. //关闭输入理由框
  793. noCancel() {
  794. this.setState({
  795. noVisible: false
  796. });
  797. },
  798. //搜索
  799. search() {
  800. this.setState({
  801. //signBillVisible:false
  802. });
  803. this.loadData();
  804. },
  805. //重置
  806. reset() {
  807. this.setState({
  808. signBillVisible: false
  809. });
  810. this.state.idSearch = "";
  811. this.state.customerName = "";
  812. this.state.releaseDate[0] = undefined;
  813. this.state.releaseDate[1] = undefined;
  814. this.state.orderNoSearch = "";
  815. this.state.departmenttList = [];
  816. this.state.cid = [];
  817. this.state.contractNoSearch = "";
  818. this.state.outsourceSearch = [];
  819. this.loadData(this.state.page);
  820. },
  821. resets() {
  822. this.state.orderNo = "";
  823. this.state.customerName = "";
  824. this.state.releaseDate[0] = undefined;
  825. this.state.releaseDate[1] = undefined;
  826. },
  827. getOrgCodeUrl(e) {
  828. this.setState({ orgCodeUrl: e });
  829. },
  830. //关闭操作工时
  831. visitCancelA() {
  832. this.setState({
  833. visibleA: false
  834. });
  835. },
  836. setColor() {
  837. $(".userName span").after(
  838. "(<span class='ruanzhu'>软著数</span>/<span class='xiazheng'>下证数</span>)"
  839. );
  840. },
  841. closeDesc(e, s) {
  842. this.state.showDesc = e;
  843. if (s) {
  844. this.loadData(this.state.page);
  845. }
  846. },
  847. closeAssign(e, s) {
  848. this.state.roleName = "";
  849. this.state.assignVisible = e;
  850. if (s) {
  851. this.loadData(this.state.page);
  852. }
  853. },
  854. nextCancel() {
  855. this.setState({
  856. addnextVisible: false
  857. });
  858. },
  859. //点击打卡项目详情
  860. tableRowClickX(record) {
  861. this.setState({
  862. jid: record.id, //项目ID
  863. kid: record.commodityId, //商品ID
  864. commodityName: record.commodityName, //金额
  865. commodityPrice: record.commodityPrice, //金额
  866. commodityQuantity: record.commodityQuantity, //数量
  867. taskComment: record.taskComment, //备注
  868. main: record.main.toString(), //是否为主要
  869. addnextVisible: true,
  870. addState: 0
  871. });
  872. },
  873. //关闭详情
  874. visitCancel() {
  875. this.setState({
  876. visible: false,
  877. speVisible: false
  878. });
  879. this.resets();
  880. },
  881. visitOk() {
  882. this.setState({
  883. visible: false
  884. });
  885. this.resets();
  886. },
  887. //关闭详情
  888. visitCancels() {
  889. this.setState({
  890. visibles: false
  891. });
  892. this.resets();
  893. },
  894. //导出
  895. exportExec() {
  896. let nameText = this.state.SuperArr;
  897. let superText =
  898. this.state.cid && typeof this.state.cid != "object"
  899. ? nameText[parseInt(this.state.cid)].id
  900. : "";
  901. if (superText) {
  902. var data = {
  903. orderNo: this.state.orderNoSearch
  904. ? this.state.orderNoSearch
  905. : undefined,
  906. name: this.state.customerName ? this.state.customerName : undefined, //订单负责人
  907. taskId: this.state.idSearch ? this.state.idSearch : undefined, //订单编号
  908. starTime: this.state.releaseDate[0]
  909. ? this.state.releaseDate[0]
  910. : undefined,
  911. endTime: this.state.releaseDate[1]
  912. ? this.state.releaseDate[1]
  913. : undefined,
  914. depId: this.state.departmenttList
  915. ? this.state.departmenttList
  916. : undefined,
  917. cid: superText
  918. };
  919. } else {
  920. var data = {
  921. orderNo: this.state.orderNoSearch
  922. ? this.state.orderNoSearch
  923. : undefined,
  924. name: this.state.customerName ? this.state.customerName : undefined, //订单负责人
  925. taskId: this.state.idSearch ? this.state.idSearch : undefined, //订单编号
  926. starTime: this.state.releaseDate[0]
  927. ? this.state.releaseDate[0]
  928. : undefined,
  929. endTime: this.state.releaseDate[1]
  930. ? this.state.releaseDate[1]
  931. : undefined,
  932. depId: this.state.departmenttList
  933. ? this.state.departmenttList
  934. : undefined
  935. };
  936. }
  937. window.location.href =
  938. globalConfig.context +
  939. "/api/admin/orderProject/exportMyTaskList?" +
  940. $.param(data);
  941. },
  942. visitOks() {
  943. this.setState({
  944. visibles: false
  945. });
  946. this.resets();
  947. },
  948. selectSuperId() {
  949. this.state.data = [];
  950. $.ajax({
  951. method: "get",
  952. dataType: "json",
  953. crossDomain: false,
  954. url: globalConfig.context + "/api/admin/ProjectSize/getAllCname",
  955. data: {
  956. flag: 0
  957. },
  958. success: function(data) {
  959. let theArr = [];
  960. let thedata = data.data;
  961. if (!thedata) {
  962. if (data.error && data.error.length) {
  963. message.warning(data.error[0].message);
  964. }
  965. thedata = {};
  966. }
  967. var contactIds = [];
  968. for (var i = 0; i < data.data.length; i++) {
  969. let theData = data.data[i];
  970. theArr.push(
  971. <Select.Option value={i.toString()} key={theData.cname}>
  972. {theData.cname}
  973. </Select.Option>
  974. );
  975. }
  976. this.setState({
  977. SuperArr: thedata,
  978. contactsOption: theArr,
  979. orderStatusOptions: data.data
  980. });
  981. }.bind(this)
  982. }).always(
  983. function() {
  984. this.loadData(this.state.ispage);
  985. this.setState({
  986. loading: false
  987. });
  988. }.bind(this)
  989. );
  990. },
  991. render() {
  992. const formItemLayout = {
  993. labelCol: { span: 8 },
  994. wrapperCol: { span: 14 }
  995. };
  996. const utils = {
  997. getSatisfaction: function(num) {
  998. switch (num) {
  999. case 0:
  1000. return "未收回";
  1001. case 1:
  1002. return "已收回";
  1003. default:
  1004. return "其它";
  1005. }
  1006. },
  1007. getChargeback: function(num) {
  1008. switch (num) {
  1009. case 0:
  1010. return "已完成";
  1011. case 1:
  1012. return "未完成";
  1013. default:
  1014. return "其它";
  1015. }
  1016. }
  1017. };
  1018. const isWai = [
  1019. {
  1020. id: 0,
  1021. name: "非外包"
  1022. },
  1023. {
  1024. id: 1,
  1025. name: "外包"
  1026. }
  1027. ];
  1028. const FormItem = Form.Item;
  1029. const { RangePicker } = DatePicker;
  1030. const departmentArr = this.state.departmentArr || [];
  1031. return (
  1032. <div className="user-content">
  1033. {this.state.resVisible ? (
  1034. <ResolutionDetail
  1035. cancel={this.resCancel}
  1036. detail={this.state.resRecord}
  1037. visible={this.state.resVisible}
  1038. id={this.state.resRecord.orderNo}
  1039. />
  1040. ) : (
  1041. ""
  1042. )}
  1043. <div className="content-title">
  1044. <span>工时数据统计</span>
  1045. </div>
  1046. <div className="user-search">
  1047. <Tabs
  1048. defaultActiveKey="1"
  1049. onChange={this.callback}
  1050. className="test"
  1051. >
  1052. <TabPane tab="搜索" key="1">
  1053. <Input
  1054. placeholder="客户名称"
  1055. style={{
  1056. width: "150px",
  1057. marginBottom: "10px",
  1058. marginLeft: 10,
  1059. marginRight: 10
  1060. }}
  1061. value={this.state.customerName}
  1062. onChange={e => {
  1063. this.setState({ customerName: e.target.value });
  1064. }}
  1065. />
  1066. <Input
  1067. placeholder="任务编号"
  1068. style={{ width: "150px", marginRight: 10 }}
  1069. value={this.state.idSearch}
  1070. onChange={e => {
  1071. this.setState({ idSearch: e.target.value });
  1072. }}
  1073. />
  1074. <Input
  1075. placeholder="订单编号"
  1076. style={{ width: "150px", marginRight: 10 }}
  1077. value={this.state.orderNoSearch}
  1078. onChange={e => {
  1079. this.setState({
  1080. orderNoSearch: e.target.value
  1081. });
  1082. }}
  1083. />
  1084. <Input
  1085. placeholder="合同编号"
  1086. style={{ width: "150px", marginRight: 10 }}
  1087. value={this.state.contractNoSearch}
  1088. onChange={e => {
  1089. this.setState({
  1090. contractNoSearch: e.target.value
  1091. });
  1092. }}
  1093. />
  1094. <Select
  1095. placeholder="订单部门"
  1096. style={{ width: 150, marginRight: 10 }}
  1097. value={this.state.departmenttList}
  1098. onChange={e => {
  1099. this.setState({ departmenttList: e });
  1100. }}
  1101. >
  1102. {departmentArr.map(function(item) {
  1103. return (
  1104. <Select.Option key={item.id}>{item.name}</Select.Option>
  1105. );
  1106. })}
  1107. </Select>
  1108. <Select
  1109. placeholder="项目类别"
  1110. style={{ width: "150", marginRight: "10px" }}
  1111. value={this.state.cid}
  1112. onChange={e => {
  1113. this.setState({ cid: e });
  1114. }}
  1115. notFoundContent="未获取到上级品类列表"
  1116. >
  1117. {this.state.contactsOption}
  1118. </Select>
  1119. <Select
  1120. placeholder="是否外包"
  1121. style={{ width: "150", marginRight: "10px" }}
  1122. value={this.state.outsourceSearch}
  1123. onChange={e => {
  1124. this.setState({ outsourceSearch: e });
  1125. }}
  1126. >
  1127. {isWai.map(function(item) {
  1128. return (
  1129. <Select.Option key={item.id}>{item.name}</Select.Option>
  1130. );
  1131. })}
  1132. </Select>
  1133. <span style={{ marginRight: "10px" }}>合同签订时间 :</span>
  1134. <RangePicker
  1135. value={[
  1136. this.state.releaseDate[0]
  1137. ? moment(this.state.releaseDate[0])
  1138. : null,
  1139. this.state.releaseDate[1]
  1140. ? moment(this.state.releaseDate[1])
  1141. : null
  1142. ]}
  1143. onChange={(data, dataString) => {
  1144. this.setState({ releaseDate: dataString });
  1145. }}
  1146. />
  1147. <Button
  1148. type="primary"
  1149. onClick={this.search}
  1150. style={{
  1151. marginLeft: "10px",
  1152. marginRight: 10,
  1153. marginBottom: 10
  1154. }}
  1155. >
  1156. 搜索
  1157. </Button>
  1158. <Button onClick={this.reset}>重置</Button>
  1159. </TabPane>
  1160. <TabPane tab="导出" key="2">
  1161. <Button
  1162. type="primary"
  1163. onClick={this.exportExec}
  1164. style={{ margin: 10 }}
  1165. >
  1166. 导出工时数据
  1167. </Button>
  1168. </TabPane>
  1169. </Tabs>
  1170. <div className="patent-table">
  1171. <Spin spinning={this.state.loading}>
  1172. <Table
  1173. columns={this.state.columns}
  1174. dataSource={this.state.dataSource}
  1175. pagination={this.state.pagination}
  1176. onRowClick={this.tableRowClick.bind(this)}
  1177. scroll={{ x: "max-content", y: 0 }}
  1178. bordered
  1179. size="small"
  1180. />
  1181. </Spin>
  1182. </div>
  1183. </div>
  1184. <Modal
  1185. className="customeDetails"
  1186. footer=""
  1187. title="项目概况"
  1188. width="900px"
  1189. visible={this.state.visible}
  1190. onOk={this.visitOk}
  1191. onCancel={this.visitCancel}
  1192. >
  1193. <Form
  1194. layout="horizontal"
  1195. onSubmit={this.handleSubmit}
  1196. id="demand-form"
  1197. style={{ paddingBottom: "00px" }}
  1198. >
  1199. <Spin spinning={this.state.loading}>
  1200. <div className="clearfix">
  1201. <div className="clearfix">
  1202. <FormItem
  1203. className="half-item"
  1204. {...formItemLayout}
  1205. label="当前项目情况"
  1206. >
  1207. <span>{this.state.status ? "暂停" : "开启"}</span>
  1208. <Button
  1209. type="primary"
  1210. size="small"
  1211. style={{ marginTop: "5px", position: "absolute" }}
  1212. onClick={this.caozuorizhi}
  1213. >
  1214. 操作日志
  1215. </Button>
  1216. </FormItem>
  1217. <FormItem
  1218. className="half-item"
  1219. {...formItemLayout}
  1220. label="合同编号"
  1221. >
  1222. <span>{this.state.contractNo}</span>
  1223. </FormItem>
  1224. </div>
  1225. <div className="clearfix">
  1226. <FormItem
  1227. className="half-item"
  1228. {...formItemLayout}
  1229. label="项目状态"
  1230. >
  1231. <span>{getProcessStatus(this.state.projectStatus)}</span>
  1232. </FormItem>
  1233. <FormItem
  1234. className="half-item"
  1235. {...formItemLayout}
  1236. label="是否特批"
  1237. >
  1238. <span>{getApproval(this.state.approval)}</span>
  1239. </FormItem>
  1240. <FormItem
  1241. className="half-item"
  1242. {...formItemLayout}
  1243. label="结算状态"
  1244. >
  1245. <span>
  1246. {getLiquidationStatus(this.state.liquidationStatus)}
  1247. </span>
  1248. </FormItem>
  1249. <FormItem
  1250. className="half-item"
  1251. {...formItemLayout}
  1252. label="流程状态"
  1253. >
  1254. <span>{getProcessStatus(this.state.processStatus)}</span>
  1255. </FormItem>
  1256. <FormItem
  1257. className="half-item"
  1258. {...formItemLayout}
  1259. label="订单编号"
  1260. >
  1261. <span>{this.state.orderNo}</span>
  1262. </FormItem>
  1263. </div>
  1264. <div className="clearfix">
  1265. <FormItem
  1266. className="half-item"
  1267. {...formItemLayout}
  1268. label="满意度表格"
  1269. >
  1270. <span>
  1271. {utils.getSatisfaction(this.state.formRetrieve)}
  1272. </span>
  1273. </FormItem>
  1274. <FormItem
  1275. className="half-item"
  1276. {...formItemLayout}
  1277. label="退单"
  1278. >
  1279. <span>{utils.getChargeback(this.state.taskRefund)}</span>
  1280. </FormItem>
  1281. </div>
  1282. <div className="clearfix">
  1283. {
  1284. <FormItem
  1285. className="half-item"
  1286. {...formItemLayout}
  1287. label="(满意度)备注"
  1288. >
  1289. <span>{this.state.retrieveContent}</span>
  1290. </FormItem>
  1291. }
  1292. {
  1293. <FormItem
  1294. className="half-item"
  1295. {...formItemLayout}
  1296. label="(退单)备注"
  1297. >
  1298. <span>{this.state.refundContent}</span>
  1299. </FormItem>
  1300. }
  1301. </div>
  1302. <div className="clearfix">
  1303. <h3 className="sub-title">任务信息</h3>
  1304. <FormItem
  1305. className="half-item"
  1306. {...formItemLayout}
  1307. label="任务编号"
  1308. >
  1309. <span>
  1310. {this.state.splitStatus == 2
  1311. ? this.state.splitSuper + "-" + this.state.splitId
  1312. : this.state.id}
  1313. </span>
  1314. </FormItem>
  1315. <FormItem
  1316. className="half-item"
  1317. {...formItemLayout}
  1318. label="任务名称"
  1319. >
  1320. <span>{this.state.taskName}</span>
  1321. </FormItem>
  1322. <FormItem
  1323. className="half-item"
  1324. {...formItemLayout}
  1325. label="任务状态"
  1326. >
  1327. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1328. </FormItem>
  1329. <FormItem
  1330. className="half-item"
  1331. {...formItemLayout}
  1332. label="任务类别"
  1333. >
  1334. <span>{this.state.cname}</span>
  1335. </FormItem>
  1336. <FormItem
  1337. className="half-item"
  1338. {...formItemLayout}
  1339. label="证书编号"
  1340. >
  1341. <span>{this.state.certificateNumber}</span>
  1342. </FormItem>
  1343. </div>
  1344. {this.state.outsource === 1 ? (
  1345. <div className="clearfix">
  1346. <h3 className="sub-title">外包信息</h3>
  1347. <FormItem
  1348. className="half-item"
  1349. {...formItemLayout}
  1350. label="外包公司"
  1351. >
  1352. <span>{this.state.outsourceName}</span>
  1353. </FormItem>
  1354. <FormItem
  1355. className="half-item"
  1356. {...formItemLayout}
  1357. label="外包成本(万元)"
  1358. >
  1359. <span>{this.state.outsourcePrice}</span>
  1360. </FormItem>
  1361. </div>
  1362. ) : (
  1363. ""
  1364. )}
  1365. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1366. <div className="clearfix">
  1367. <h3 className="sub-title">联系信息</h3>
  1368. <FormItem
  1369. className="half-item"
  1370. {...formItemLayout}
  1371. label="客户名称"
  1372. >
  1373. <span>{this.state.userName}</span>
  1374. </FormItem>
  1375. <FormItem
  1376. className="half-item"
  1377. {...formItemLayout}
  1378. label="企业法人"
  1379. >
  1380. <span>{this.state.legalPerson}</span>
  1381. </FormItem>
  1382. <FormItem
  1383. className="half-item"
  1384. {...formItemLayout}
  1385. label="法人电话"
  1386. >
  1387. <span>{this.state.legalPersonTel}</span>
  1388. </FormItem>
  1389. <FormItem
  1390. className="half-item"
  1391. {...formItemLayout}
  1392. label="客户联系人"
  1393. >
  1394. <span>{this.state.contacts}</span>
  1395. </FormItem>
  1396. <FormItem
  1397. className="half-item"
  1398. {...formItemLayout}
  1399. label="联系人电话"
  1400. >
  1401. <span>{this.state.contactMobile}</span>
  1402. </FormItem>
  1403. <FormItem
  1404. className="half-item"
  1405. {...formItemLayout}
  1406. label="企业地址"
  1407. >
  1408. <span>
  1409. {getprovince(this.state.locationProvince)}/
  1410. {getprovince(this.state.locationCity)}/
  1411. {getprovince(this.state.locationArea)}
  1412. </span>
  1413. </FormItem>
  1414. <FormItem
  1415. className="half-item"
  1416. {...formItemLayout}
  1417. label=""
  1418. ></FormItem>
  1419. <FormItem className="half-item" {...formItemLayout}>
  1420. <span style={{ paddingLeft: "12em" }}>
  1421. {this.state.postalAddress}
  1422. </span>
  1423. </FormItem>
  1424. </div>
  1425. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1426. <div className="clearfix">
  1427. <h3 className="sub-title">订单负责人信息</h3>
  1428. <FormItem
  1429. className="half-item"
  1430. {...formItemLayout}
  1431. label="负责人"
  1432. >
  1433. <span>
  1434. {this.state.salesmanName +
  1435. "(" +
  1436. this.state.depName +
  1437. ")"}
  1438. </span>
  1439. </FormItem>
  1440. <FormItem
  1441. className="half-item"
  1442. {...formItemLayout}
  1443. label="负责人电话"
  1444. >
  1445. <span>{this.state.salesmanMobile}</span>
  1446. </FormItem>
  1447. <FormItem
  1448. className="half-item"
  1449. {...formItemLayout}
  1450. label="财务负责人"
  1451. >
  1452. <span>{this.state.financeName}</span>
  1453. </FormItem>
  1454. <FormItem
  1455. className="half-item"
  1456. {...formItemLayout}
  1457. label="财务负责人电话"
  1458. >
  1459. <span>{this.state.financeMobile}</span>
  1460. </FormItem>
  1461. </div>
  1462. <div className="clearfix">
  1463. <h3 className="sub-title">申报系统账户信息</h3>
  1464. {/*<span style={{color:'red'}}>注:仅技术部可见</span>*/}
  1465. <FormItem
  1466. className="half-item"
  1467. {...formItemLayout}
  1468. label="用户名"
  1469. >
  1470. <span>{this.state.declareUser ? "*" : ""}</span>
  1471. </FormItem>
  1472. <FormItem
  1473. className="half-item"
  1474. {...formItemLayout}
  1475. label="密码"
  1476. >
  1477. <span>{this.state.declarePwd ? "*" : ""}</span>
  1478. </FormItem>
  1479. </div>
  1480. <div className="clearfix">
  1481. <h3 className="sub-title">项目申报进度</h3>
  1482. <FormItem
  1483. className="half-item"
  1484. {...formItemLayout}
  1485. label="启动时间"
  1486. >
  1487. <span>{this.state.startDate}</span>
  1488. </FormItem>
  1489. <FormItem
  1490. className="half-item"
  1491. {...formItemLayout}
  1492. label="完成时间"
  1493. >
  1494. <span>{this.state.endDate}</span>
  1495. </FormItem>
  1496. <FormItem
  1497. className="half-item"
  1498. {...formItemLayout}
  1499. label="受理时间"
  1500. >
  1501. <span>{this.state.acceptDate}</span>
  1502. </FormItem>
  1503. <FormItem
  1504. className="half-item"
  1505. {...formItemLayout}
  1506. label="评审时间"
  1507. >
  1508. <span>{this.state.reviewDate}</span>
  1509. </FormItem>
  1510. <FormItem
  1511. className="half-item"
  1512. {...formItemLayout}
  1513. label="公示时间"
  1514. >
  1515. <span>{this.state.publicityDate}</span>
  1516. </FormItem>
  1517. <FormItem
  1518. className="half-item"
  1519. {...formItemLayout}
  1520. label="发证时间"
  1521. >
  1522. <span>{this.state.licenceDate}</span>
  1523. </FormItem>
  1524. <FormItem
  1525. className="half-item"
  1526. {...formItemLayout}
  1527. label="立项金额(万元)"
  1528. >
  1529. <span>{this.state.setUpAmount}</span>
  1530. </FormItem>
  1531. <FormItem
  1532. className="half-item"
  1533. {...formItemLayout}
  1534. label="是否到款"
  1535. >
  1536. <span>
  1537. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1538. </span>
  1539. </FormItem>
  1540. </div>
  1541. <div className="clearfix">
  1542. <FormItem
  1543. labelCol={{ span: 3 }}
  1544. wrapperCol={{ span: 18 }}
  1545. label="附件"
  1546. >
  1547. <Upload
  1548. className="demandDetailShow-upload"
  1549. listType="picture-card"
  1550. fileList={this.state.attachmentUrl}
  1551. onPreview={file => {
  1552. this.setState({
  1553. previewImage: file.url || file.thumbUrl,
  1554. previewVisible: true
  1555. });
  1556. }}
  1557. ></Upload>
  1558. <Modal
  1559. maskClosable={false}
  1560. footer={null}
  1561. visible={this.state.previewVisible}
  1562. onCancel={() => {
  1563. this.setState({ previewVisible: false });
  1564. }}
  1565. >
  1566. <img
  1567. alt=""
  1568. style={{ width: "100%" }}
  1569. src={this.state.previewImage || ""}
  1570. />
  1571. </Modal>
  1572. </FormItem>
  1573. </div>
  1574. <div className="clearfix">
  1575. <FormItem
  1576. labelCol={{ span: 3 }}
  1577. wrapperCol={{ span: 16 }}
  1578. label="备注"
  1579. >
  1580. <span>{this.state.taskComment}</span>
  1581. </FormItem>
  1582. </div>
  1583. <div>
  1584. <h3 className="sub-title">项目业务</h3>
  1585. {this.state.processStatus == 0 ? (
  1586. <Button
  1587. type="primary"
  1588. onClick={this.addDetailed}
  1589. style={{
  1590. float: "right",
  1591. marginRight: "50px",
  1592. marginBottom: "15px"
  1593. }}
  1594. >
  1595. 添加项目明细
  1596. </Button>
  1597. ) : (
  1598. ""
  1599. )}
  1600. </div>
  1601. <div className="patent-table">
  1602. <Spin spinning={this.state.loading}>
  1603. <Table
  1604. columns={this.state.columnsX}
  1605. dataSource={this.state.dataSourceX}
  1606. pagination={this.state.paginations}
  1607. onRowClick={this.tableRowClickX}
  1608. bordered
  1609. size={"small"}
  1610. />
  1611. </Spin>
  1612. </div>
  1613. </div>
  1614. </Spin>
  1615. </Form>
  1616. </Modal>
  1617. <Modal
  1618. maskClosable={false}
  1619. visible={this.state.addnextVisible}
  1620. onOk={this.nextCancel}
  1621. onCancel={this.nextCancel}
  1622. width="900px"
  1623. title="项目任务详情"
  1624. footer=""
  1625. className="admin-desc-content"
  1626. >
  1627. <Form
  1628. layout="horizontal"
  1629. onSubmit={this.nextSubmit}
  1630. id="demand-form"
  1631. >
  1632. <Spin spinning={this.state.loading}>
  1633. <div className="clearfix">
  1634. <FormItem
  1635. className="half-item"
  1636. {...formItemLayout}
  1637. label="项目名称"
  1638. >
  1639. <span>{this.state.commodityName}</span>
  1640. </FormItem>
  1641. <FormItem
  1642. className="half-item"
  1643. {...formItemLayout}
  1644. label="项目数量"
  1645. >
  1646. <span>{this.state.commodityQuantity}</span>
  1647. </FormItem>
  1648. <FormItem
  1649. className="half-item"
  1650. {...formItemLayout}
  1651. label="金额(万元)"
  1652. >
  1653. <span>{this.state.commodityPrice}</span>
  1654. </FormItem>
  1655. <FormItem
  1656. className="half-item"
  1657. {...formItemLayout}
  1658. label="主要项目"
  1659. >
  1660. <span>{getboutique(this.state.main)}</span>
  1661. </FormItem>
  1662. <div className="clearfix">
  1663. <FormItem
  1664. labelCol={{ span: 4 }}
  1665. wrapperCol={{ span: 16 }}
  1666. label="服务说明"
  1667. >
  1668. <span>{this.state.taskComment}</span>
  1669. </FormItem>
  1670. </div>
  1671. </div>
  1672. </Spin>
  1673. </Form>
  1674. </Modal>
  1675. <Modal
  1676. width="800px"
  1677. title="操作日志"
  1678. footer=""
  1679. className="admin-desc-content"
  1680. >
  1681. <div className="patent-table patent-table-center">
  1682. <Spin spinning={this.state.loading}>
  1683. <Table columns={this.state.columnsY} bordered size={"small"} />
  1684. </Spin>
  1685. </div>
  1686. </Modal>
  1687. <Modal
  1688. maskClosable={false}
  1689. visible={this.state.speVisible}
  1690. onOk={this.visitOk}
  1691. onCancel={this.visitCancel}
  1692. width="900px"
  1693. title="项目概况"
  1694. footer=""
  1695. className="admin-desc-content"
  1696. >
  1697. <div className="clearfix">
  1698. <FormItem
  1699. className="half-item"
  1700. {...formItemLayout}
  1701. label="当前项目情况"
  1702. >
  1703. <span>{this.state.status ? "暂停" : "开启"}</span>
  1704. <Button
  1705. type="primary"
  1706. size="small"
  1707. style={{ marginTop: "5px", position: "absolute" }}
  1708. onClick={this.caozuorizhi}
  1709. >
  1710. 操作日志
  1711. </Button>
  1712. </FormItem>
  1713. <FormItem
  1714. className="half-item"
  1715. {...formItemLayout}
  1716. label="合同编号"
  1717. >
  1718. <span>{this.state.contractNo}</span>
  1719. </FormItem>
  1720. </div>
  1721. <div className="clearfix">
  1722. <FormItem
  1723. className="half-item"
  1724. {...formItemLayout}
  1725. label="项目状态"
  1726. >
  1727. <span>{getProcessStatus(this.state.projectStatus)}</span>
  1728. </FormItem>
  1729. <FormItem
  1730. className="half-item"
  1731. {...formItemLayout}
  1732. label="是否特批"
  1733. >
  1734. <span>{getApproval(this.state.approval)}</span>
  1735. </FormItem>
  1736. <FormItem
  1737. className="half-item"
  1738. {...formItemLayout}
  1739. label="结算状态"
  1740. >
  1741. <span>
  1742. {getLiquidationStatus(this.state.liquidationStatus)}
  1743. </span>
  1744. </FormItem>
  1745. <FormItem
  1746. className="half-item"
  1747. {...formItemLayout}
  1748. label="流程状态"
  1749. >
  1750. <span>{getProcessStatus(this.state.processStatus)}</span>
  1751. </FormItem>
  1752. <FormItem
  1753. className="half-item"
  1754. {...formItemLayout}
  1755. label="订单编号"
  1756. >
  1757. <span>{this.state.orderNo}</span>
  1758. </FormItem>
  1759. </div>
  1760. <div className="clearfix">
  1761. <FormItem
  1762. className="half-item"
  1763. {...formItemLayout}
  1764. label="满意度表格"
  1765. >
  1766. <span>{utils.getSatisfaction(this.state.formRetrieve)}</span>
  1767. </FormItem>
  1768. <FormItem className="half-item" {...formItemLayout} label="退单">
  1769. <span>{utils.getChargeback(this.state.taskRefund)}</span>
  1770. </FormItem>
  1771. </div>
  1772. <div className="clearfix">
  1773. {
  1774. <FormItem
  1775. className="half-item"
  1776. {...formItemLayout}
  1777. label="(满意度)备注"
  1778. >
  1779. <span>{this.state.retrieveContent}</span>
  1780. </FormItem>
  1781. }
  1782. {
  1783. <FormItem
  1784. className="half-item"
  1785. {...formItemLayout}
  1786. label="(退单)备注"
  1787. >
  1788. <span>{this.state.refundContent}</span>
  1789. </FormItem>
  1790. }
  1791. </div>
  1792. <div className="clearfix">
  1793. <h3 className="sub-title">任务信息</h3>
  1794. <FormItem
  1795. className="half-item"
  1796. {...formItemLayout}
  1797. label="任务编号"
  1798. >
  1799. <span>
  1800. {this.state.splitStatus == 2
  1801. ? this.state.splitSuper + "-" + this.state.splitId
  1802. : this.state.id}
  1803. </span>
  1804. </FormItem>
  1805. <FormItem
  1806. className="half-item"
  1807. {...formItemLayout}
  1808. label="任务名称"
  1809. >
  1810. <span>{this.state.taskName}</span>
  1811. </FormItem>
  1812. <FormItem
  1813. className="half-item"
  1814. {...formItemLayout}
  1815. label="任务状态"
  1816. >
  1817. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1818. </FormItem>
  1819. <FormItem
  1820. className="half-item"
  1821. {...formItemLayout}
  1822. label="任务类别"
  1823. >
  1824. <span>{this.state.cname}</span>
  1825. </FormItem>
  1826. <FormItem
  1827. className="half-item"
  1828. {...formItemLayout}
  1829. label="证书编号"
  1830. >
  1831. <span>{this.state.certificateNumber}</span>
  1832. </FormItem>
  1833. </div>
  1834. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1835. <div className="clearfix">
  1836. <h3 className="sub-title">联系信息</h3>
  1837. <FormItem
  1838. className="half-item"
  1839. {...formItemLayout}
  1840. label="客户名称"
  1841. >
  1842. <span>{this.state.userName}</span>
  1843. </FormItem>
  1844. <FormItem
  1845. className="half-item"
  1846. {...formItemLayout}
  1847. label="企业法人"
  1848. >
  1849. <span>{this.state.legalPerson}</span>
  1850. </FormItem>
  1851. <FormItem
  1852. className="half-item"
  1853. {...formItemLayout}
  1854. label="法人电话"
  1855. >
  1856. <span>{this.state.legalPersonTel}</span>
  1857. </FormItem>
  1858. <FormItem
  1859. className="half-item"
  1860. {...formItemLayout}
  1861. label="客户联系人"
  1862. >
  1863. <span>{this.state.contacts}</span>
  1864. </FormItem>
  1865. <FormItem
  1866. className="half-item"
  1867. {...formItemLayout}
  1868. label="联系人电话"
  1869. >
  1870. <span>{this.state.contactMobile}</span>
  1871. </FormItem>
  1872. <FormItem
  1873. className="half-item"
  1874. {...formItemLayout}
  1875. label="企业地址"
  1876. >
  1877. <span>
  1878. {getprovince(this.state.locationProvince)}/
  1879. {getprovince(this.state.locationCity)}/
  1880. {getprovince(this.state.locationArea)}
  1881. </span>
  1882. </FormItem>
  1883. <FormItem
  1884. className="half-item"
  1885. {...formItemLayout}
  1886. label=""
  1887. ></FormItem>
  1888. <FormItem className="half-item" {...formItemLayout} label="">
  1889. <span style={{ paddingLeft: "12em" }}>
  1890. {this.state.postalAddress}
  1891. </span>
  1892. </FormItem>
  1893. </div>
  1894. {/*<hr style={{border:'1px dashed #aaa', width:"90%",margin:'auto'}}/>*/}
  1895. <div className="clearfix">
  1896. <h3 className="sub-title">订单负责人信息</h3>
  1897. <FormItem
  1898. className="half-item"
  1899. {...formItemLayout}
  1900. label="负责人"
  1901. >
  1902. <span>
  1903. {this.state.salesmanName + "(" + this.state.depName + ")"}
  1904. </span>
  1905. </FormItem>
  1906. <FormItem
  1907. className="half-item"
  1908. {...formItemLayout}
  1909. label="负责人电话"
  1910. >
  1911. <span>{this.state.salesmanMobile}</span>
  1912. </FormItem>
  1913. <FormItem
  1914. className="half-item"
  1915. {...formItemLayout}
  1916. label="财务负责人"
  1917. >
  1918. <span>{this.state.financeName}</span>
  1919. </FormItem>
  1920. <FormItem
  1921. className="half-item"
  1922. {...formItemLayout}
  1923. label="财务负责人电话"
  1924. >
  1925. <span>{this.state.financeMobile}</span>
  1926. </FormItem>
  1927. </div>
  1928. <div className="clearfix" style={{ marginTop: "10px" }}>
  1929. <FormItem
  1930. labelCol={{ span: 3 }}
  1931. wrapperCol={{ span: 18 }}
  1932. label="附件"
  1933. >
  1934. <Upload
  1935. className="demandDetailShow-upload"
  1936. listType="picture-card"
  1937. fileList={this.state.attachmentUrl}
  1938. onPreview={file => {
  1939. this.setState({
  1940. previewImage: file.url || file.thumbUrl,
  1941. previewVisible: true
  1942. });
  1943. }}
  1944. ></Upload>
  1945. <Modal
  1946. maskClosable={false}
  1947. footer={null}
  1948. visible={this.state.previewVisible}
  1949. onCancel={() => {
  1950. this.setState({ previewVisible: false });
  1951. }}
  1952. >
  1953. <img
  1954. alt=""
  1955. style={{ width: "100%" }}
  1956. src={this.state.previewImage || ""}
  1957. />
  1958. </Modal>
  1959. </FormItem>
  1960. </div>
  1961. <div className="clearfix">
  1962. <FormItem
  1963. labelCol={{ span: 3 }}
  1964. wrapperCol={{ span: 16 }}
  1965. label="备注"
  1966. >
  1967. <span>{this.state.taskComment}</span>
  1968. </FormItem>
  1969. </div>
  1970. <div className="clearfix">
  1971. <h3 className="sub-title">项目申报进度</h3>
  1972. <FormItem
  1973. className="half-item"
  1974. {...formItemLayout}
  1975. label="启动时间"
  1976. >
  1977. <span>{this.state.startDate}</span>
  1978. </FormItem>
  1979. <FormItem
  1980. className="half-item"
  1981. {...formItemLayout}
  1982. label="软著派单数量"
  1983. >
  1984. <span>{this.state.commodityQuantity}</span>
  1985. </FormItem>
  1986. <div className="patent-table patent-table-center">
  1987. <Spin spinning={this.state.loading}>
  1988. <Table
  1989. columns={this.state.ContactsLists}
  1990. dataSource={this.state.contactList}
  1991. bordered
  1992. size="small"
  1993. pagination={false}
  1994. />
  1995. </Spin>
  1996. </div>
  1997. </div>
  1998. <div className="clearfix">
  1999. <h3 className="sub-title">项目业务</h3>
  2000. <div className="patent-table">
  2001. <Spin spinning={this.state.loading}>
  2002. <Table
  2003. columns={this.state.columnsX}
  2004. dataSource={this.state.dataSourceX}
  2005. pagination={this.state.paginations}
  2006. onRowClick={this.tableRowClickX}
  2007. bordered
  2008. size="small"
  2009. />
  2010. </Spin>
  2011. </div>
  2012. </div>
  2013. </Modal>
  2014. <Modal
  2015. width="800px"
  2016. visible={this.state.visibleA}
  2017. onCancel={this.visitCancelA}
  2018. title="操作日志"
  2019. footer=""
  2020. className="admin-desc-content"
  2021. >
  2022. <div className="patent-table patent-table-center">
  2023. <Spin spinning={this.state.loading}>
  2024. <Table
  2025. columns={this.state.columnsA}
  2026. dataSource={this.state.dataSourceA}
  2027. bordered
  2028. size="small"
  2029. pagination={false}
  2030. />
  2031. </Spin>
  2032. </div>
  2033. </Modal>
  2034. </div>
  2035. );
  2036. }
  2037. })
  2038. );
  2039. export default MyTaskCount;