myTaskCount.jsx 69 KB

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