taskCount.jsx 85 KB

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