myTaskCount.jsx 74 KB

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