taskCount.jsx 71 KB

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