myTaskCount.jsx 68 KB

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