myTaskCount.jsx 67 KB

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