taskCount.jsx 78 KB

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