projectDetails.jsx 63 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804
  1. import React, { Component } from 'react';
  2. import { Button, Form, Input, message, Modal, Spin, Table, Tabs, Tag, Tooltip, Radio } from "antd";
  3. import PatentSchedule from "../task/patentSchedule";
  4. import ImgList from "../../../common/imgList";
  5. import OrderDetail from "../../order/orderNew/changeComponent/orderDetail";
  6. import {
  7. getProcessStatus,
  8. getApproval,
  9. getTaskStatus,
  10. getLiquidationStatus,
  11. splitUrl,
  12. getProjectStatus,
  13. getboutique,
  14. getprovince,
  15. ShowModal,
  16. getProjectName,
  17. getFormRetrieve,
  18. } from "@/tools";
  19. import OrderRiZi from "@/orderRiZi.jsx";
  20. import Picture from '@/manageCenter/publicComponent/picture'
  21. import $ from "jquery";
  22. import DeclarationProgress from "../../../common/declarationProgress";
  23. import OrderItemStatus from "../../../common/orderItemStatus";
  24. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  25. const FormItem = Form.Item;
  26. const { TabPane } = Tabs;
  27. const formItemLayout = {
  28. labelCol: { span: 8 },
  29. wrapperCol: { span: 14 },
  30. };
  31. const utils = {
  32. getSatisfaction: function (num) {
  33. switch (num) {
  34. case 0:
  35. return "未收回";
  36. case 1:
  37. return "已收回";
  38. default:
  39. return "其它";
  40. }
  41. },
  42. getChargeback: function (num) {
  43. switch (num) {
  44. case 0:
  45. return "已完成";
  46. case 1:
  47. return "未完成";
  48. default:
  49. return "其它";
  50. }
  51. },
  52. };
  53. class ProjectDetails extends Component {
  54. constructor(props) {
  55. super(props);
  56. this.state = {
  57. satisfactionDegreeUrl: [], // 满意度调查表
  58. satisfactionDegree: "", // 满意度
  59. formRetrieve: "",// 满意调查表上传状态
  60. timeRecordparse: {},
  61. activeKey: '1',
  62. loading: false,
  63. orderData: [],
  64. orderNo: "",
  65. jiedian: [],
  66. jiedianNew: [],
  67. searchMore: true,
  68. assignVisible: false,
  69. releaseDate: [],
  70. roleName: "",
  71. testFlag: true,
  72. departmentArr: [],
  73. boHuivisible: false,
  74. selectedRowKeys: [],
  75. selectedRows: [],
  76. paginations: false,
  77. pagination: {
  78. defaultCurrent: 1,
  79. defaultPageSize: 10,
  80. showQuickJumper: true,
  81. pageSize: 10,
  82. onChange: function (page) {
  83. this.loadData(page);
  84. }.bind(this),
  85. showTotal: function (total) {
  86. return "共" + total + "条数据";
  87. },
  88. },
  89. columns: [
  90. {
  91. title: "项目编号",
  92. dataIndex: "id",
  93. key: "id",
  94. render: (text, record) => {
  95. if (record.splitStatus == 2) {
  96. return <span>{record.splitSuper + "-" + record.splitId}</span>;
  97. } else {
  98. return text;
  99. }
  100. },
  101. },
  102. {
  103. title: "任务名称",
  104. dataIndex: "taskName",
  105. key: "taskName",
  106. className: "taskName",
  107. },
  108. {
  109. title: "订单编号",
  110. dataIndex: "orderNo",
  111. key: "orderNo",
  112. },
  113. {
  114. title: "业务类别",
  115. dataIndex: "cname",
  116. key: "cname",
  117. },
  118. {
  119. title: "客户名称",
  120. dataIndex: "userName",
  121. key: "userName",
  122. className: "userName",
  123. width: 150,
  124. render: (text) => {
  125. return (
  126. <Tooltip title={text}>
  127. <div
  128. // style={{
  129. // maxWidth: '150px',
  130. // overflow: 'hidden',
  131. // textOverflow: "ellipsis",
  132. // whiteSpace: 'nowrap',
  133. // }}
  134. >{text}</div>
  135. </Tooltip>
  136. )
  137. },
  138. },
  139. {
  140. title: "任务状态",
  141. dataIndex: "taskStatus",
  142. key: "taskStatus",
  143. render: (text) => {
  144. return getTaskStatus(text);
  145. },
  146. },
  147. {
  148. title: "项目状态",
  149. dataIndex: "projectStatus",
  150. key: "projectStatus",
  151. render: (text) => {
  152. return getProjectStatus(text);
  153. },
  154. },
  155. {
  156. title: "分配时间",
  157. dataIndex: "taskDate",
  158. key: "taskDate",
  159. },
  160. {
  161. title: "任务数量",
  162. dataIndex: "commodityQuantity",
  163. key: "commodityQuantity",
  164. },
  165. {
  166. title: "任务责任人",
  167. dataIndex: "receiverName",
  168. key: "receiverName",
  169. },
  170. {
  171. title: "订单部门",
  172. dataIndex: "depName",
  173. key: "depName",
  174. },
  175. ],
  176. dataSource: [],
  177. searchTime: [],
  178. columnsX: [
  179. {
  180. title: "业务项目名称",
  181. dataIndex: "commodityName",
  182. key: "commodityName",
  183. render: (text, record) => {
  184. return <span>
  185. {text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}
  186. <div>
  187. {record.cSort == 6 && record.projectType == 1 && <span>(含{record.htMember == 1 ? '高新会员&' : ''}{record.additionalDeduction == 1 ? '加计扣除&' : ''}{record.rdAwardsubsidy == 1 ? '研发奖补' : ''})</span>}
  188. {record.cSort == 6 && ([0, 3].indexOf(record.projectType) > -1) && <span>(仅提供单边会员服务)</span>}
  189. {record.cSort == 6 && record.projectType == 2 && <span>(仅填报表,仅咨询,不出备查资料)</span>}
  190. {record.cSort == 3 && <span>{record.technologyProjectType==0?'(简易项目)':record.technologyProjectType==1?'(市区级)':record.technologyProjectType==2?'(省级)':record.technologyProjectType==3?'(国家级)':''}</span>}
  191. {record.cSort == 8 ? (record.type != 2 && record.patentType == 1) ? <span>(变更)</span> : <span>{record.ordinaryRisk == 0 ? '(普通申请)' : record.ordinaryRisk == 1 ? '(风险代理)' : ''}</span> : ""}
  192. {record.type == 2 && <span>({record.days == 0 ? '普通' : record.days == 1 ? '加急' : ''}{record.scheme == 0 ? '&无方案' : record.scheme == 1 ? '&有方案' : ''})</span>}
  193. </div>
  194. </span>
  195. }
  196. },
  197. {
  198. title: "项目类别",
  199. dataIndex: "cname",
  200. key: "cname",
  201. },
  202. {
  203. title: "项目数量",
  204. dataIndex: "commodityQuantity",
  205. key: "commodityQuantity",
  206. render: (text, record) => {
  207. if (record.splitStatus == 1) {
  208. return (
  209. <span>
  210. {text}{" "}
  211. {/* <Tag
  212. color="#108ee9"
  213. onClick={(e) => {
  214. e.stopPropagation();
  215. this.showRes(record);
  216. }}
  217. >
  218. 已拆
  219. </Tag> */}
  220. </span>
  221. );
  222. } else {
  223. return text;
  224. }
  225. },
  226. },
  227. {
  228. title: "金额(万元)",
  229. dataIndex: "commodityPrice",
  230. key: "commodityPrice",
  231. render: (text, record) => {
  232. return (
  233. <span>
  234. {this.props.isZxs || text === -1 ? '***' : text}
  235. </span>
  236. )
  237. }
  238. },
  239. {
  240. title: "负责人",
  241. dataIndex: "contacts",
  242. key: "contacts",
  243. },
  244. {
  245. title: "负责人电话",
  246. dataIndex: "contactsMobile",
  247. key: "contactsMobile",
  248. },
  249. {
  250. title: "主要项目",
  251. dataIndex: "main",
  252. key: "main",
  253. render: (text) => {
  254. return text ? "是" : "否";
  255. },
  256. },
  257. {
  258. title: "总年限",
  259. dataIndex: "yearSum",
  260. key: "yearSum",
  261. render: (text, record) => {
  262. return (
  263. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  264. );
  265. }
  266. },
  267. {
  268. title: "年限",
  269. dataIndex: "serviceLife",
  270. key: "serviceLife",
  271. render: (text, record) => {
  272. return (
  273. <div>{!!text && JSON.parse(text).toString()}</div>
  274. );
  275. }
  276. },
  277. {
  278. title: "本次派单",
  279. dataIndex: "serviceYear",
  280. key: "serviceYear",
  281. render: (text, record) => {
  282. return (
  283. <div>{!text ? "" : text}</div>
  284. );
  285. }
  286. },
  287. {
  288. title: "项目说明",
  289. dataIndex: "taskComment",
  290. key: "taskComment",
  291. render: (text, record) => {
  292. let textStr = text;
  293. return (
  294. <Tooltip title={textStr}>
  295. <div
  296. style={{
  297. width: 100,
  298. overflow: "hidden",
  299. whiteSpace: "nowrap",
  300. textOverflow: "ellipsis",
  301. }}
  302. >{textStr}</div>
  303. </Tooltip>
  304. )
  305. },
  306. },
  307. ],
  308. columnsA: [
  309. {
  310. title: "流程",
  311. dataIndex: "content",
  312. key: "content",
  313. align: "center",
  314. },
  315. {
  316. title: "操作人",
  317. dataIndex: "aName",
  318. key: "aName",
  319. align: "center",
  320. },
  321. {
  322. title: "时间",
  323. dataIndex: "createTimes",
  324. key: "createTimes",
  325. align: "center",
  326. },
  327. ],
  328. dataSourceX: [],
  329. dataSourceA: [],
  330. ContactsLists: [
  331. {
  332. title: "批次",
  333. dataIndex: "num",
  334. key: "num",
  335. },
  336. {
  337. title: "下证时间",
  338. dataIndex: "licenceTimes",
  339. key: "licenceTimes",
  340. },
  341. {
  342. title: "下证数量",
  343. dataIndex: "alreadyNumber",
  344. key: "alreadyNumber",
  345. },
  346. {
  347. title: "未下证数量",
  348. dataIndex: "notCount",
  349. key: "notCount",
  350. },
  351. ],
  352. displayFees: "none",
  353. costReduction: '',
  354. officialCost: '',
  355. isSoftware: false,
  356. }
  357. this.orderChange = this.orderChange.bind(this);
  358. this.caozuorizhi = this.caozuorizhi.bind(this);
  359. this.getOrderLog = this.getOrderLog.bind(this);
  360. this.rizhi = this.rizhi.bind(this);
  361. }
  362. orderChange(key) {
  363. this.setState({
  364. activeKey: key,
  365. });
  366. if (key === '2') {
  367. this.orderDetailData(this.props.orderNo);
  368. this.xiangmu(this.props.orderNo);
  369. this.jiedian(this.props.orderNo);
  370. this.jiedianNew(this.props.orderNo);
  371. }
  372. }
  373. caozuorizhi() {
  374. this.setState({
  375. visibleA: true,
  376. });
  377. $.ajax({
  378. method: "get",
  379. dataType: "json",
  380. crossDomain: false,
  381. url: globalConfig.context + "/api/admin/orderProject/TaskLogList",
  382. data: {
  383. id: this.props.id,
  384. },
  385. success: function (data) {
  386. let theArr = [];
  387. if (data.error.length || data.data.list == "") {
  388. if (data.error && data.error.length) {
  389. message.warning(data.error[0].message);
  390. }
  391. } else {
  392. for (let i = 0; i < data.data.length; i++) {
  393. let thisdata = data.data[i];
  394. theArr.push({
  395. key: i,
  396. id: thisdata.id, //日志ID
  397. content: thisdata.content, //流程
  398. taskId: thisdata.taskId, //任务ID
  399. aName: thisdata.aName, //负责人
  400. createTimes: thisdata.createTimes, //时间
  401. });
  402. }
  403. }
  404. this.setState({
  405. dataSourceA: theArr,
  406. });
  407. }.bind(this),
  408. }).always(
  409. function () {
  410. this.setState({
  411. loading: false,
  412. });
  413. }.bind(this)
  414. );
  415. }
  416. //节点列表
  417. jiedian(orderNos) {
  418. $.ajax({
  419. method: "get",
  420. dataType: "json",
  421. crossDomain: false,
  422. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  423. data: {
  424. orderNo: orderNos,
  425. },
  426. success: function (data) {
  427. let theArr = [];
  428. let thisData = [];
  429. if (data.error.length || data.data.list == "") {
  430. if (data.error && data.error.length) {
  431. message.warning(data.error[0].message);
  432. }
  433. } else {
  434. for (let i = 0; i < data.data.length; i++) {
  435. thisData = data.data[i];
  436. theArr.push({
  437. key: i,
  438. dunSubject: thisData.dunSubject
  439. ? thisData.dunSubject.toString()
  440. : "", //催款科目
  441. id: thisData.id, //节点Id
  442. money: thisData.money, //催款金额
  443. dunStatus: thisData.dunStatus, //催款状态
  444. });
  445. }
  446. this.setState({
  447. jiedian: theArr,
  448. });
  449. }
  450. }.bind(this),
  451. });
  452. }
  453. //部门
  454. departmentList() {
  455. this.setState({
  456. loading: true,
  457. });
  458. $.ajax({
  459. method: "get",
  460. dataType: "json",
  461. crossDomain: false,
  462. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  463. data: {},
  464. success: function (data) {
  465. let thedata = data.data;
  466. let theArr = [];
  467. if (!thedata) {
  468. if (data.error && data.error.length) {
  469. message.warning(data.error[0].message);
  470. }
  471. } else {
  472. thedata.map(function (item, index) {
  473. theArr.push({
  474. key: index,
  475. name: item.name,
  476. id: item.id,
  477. });
  478. });
  479. }
  480. this.setState({
  481. departmentArr: theArr,
  482. });
  483. }.bind(this),
  484. }).always(
  485. function () {
  486. this.setState({
  487. loading: false,
  488. });
  489. }.bind(this)
  490. );
  491. }
  492. //订单详情
  493. xiangqing(id) {
  494. $.ajax({
  495. method: "get",
  496. dataType: "json",
  497. crossDomain: false,
  498. url: globalConfig.context + "/api/admin/orderProject/orderTaskDetail",
  499. data: {
  500. id: id,
  501. },
  502. success: function (data) {
  503. if (data.error.length || data.data.list == "") {
  504. if (data.error && data.error.length) {
  505. message.warning(data.error[0].message);
  506. }
  507. } else {
  508. let thisdata = data.data;
  509. this.setState({
  510. certificationCorporate: thisdata.certificationCorporate,//认证费公司
  511. certificationFee: thisdata.certificationFee,//认证费
  512. ifCertificationFee: thisdata.ifCertificationFee,//是否包含认证费
  513. id: thisdata.id, //ID
  514. orderNo: thisdata.orderNo, //订单编号
  515. userName: thisdata.userName, //客户名称
  516. taskName: thisdata.taskName, //任务名称
  517. cname: thisdata.cname, //项目品类
  518. contractNo: thisdata.contractNo, //合同编号
  519. projectStatus: thisdata.projectStatus, //项目状态
  520. taskStatus: thisdata.taskStatus, //任务状态
  521. taskDate: thisdata.taskDate, //分配时间
  522. taskComment: thisdata.taskComment, //说明
  523. attachmentUrl: thisdata.attachmentUrl
  524. ? splitUrl(
  525. thisdata.attachmentUrl,
  526. ",",
  527. globalConfig.avatarHost + "/upload"
  528. )
  529. : [], //图片地址
  530. salesmanName: thisdata.salesmanName, //订单负责人
  531. startDate: thisdata.startDate, //启动日期
  532. endDate: thisdata.endDate, //结束日期
  533. acceptDate: thisdata.acceptDate, //受理日期
  534. reviewDate: thisdata.reviewDate, //评审日期
  535. publicityDate: thisdata.publicityDate, //公示日期
  536. licenceDate: thisdata.licenceDate, //发证日期
  537. contacts: thisdata.contacts, //联系人
  538. contactMobile: thisdata.contactMobile, //联系人电话
  539. legalPerson: thisdata.legalPerson, //法人
  540. legalPersonTel: thisdata.legalPersonTel, //法人电话
  541. certificateNumber: thisdata.certificateNumber, //证书编号
  542. status: thisdata.status, //状态
  543. formRetrieve: thisdata.formRetrieve, //满意调查表状态
  544. satisfactionDegree: thisdata.satisfactionDegree, //满意度
  545. satisfactionDegreeUrl: thisdata.satisfactionDegreeUrl
  546. ? splitUrl(thisdata.satisfactionDegreeUrl, ',', globalConfig.avatarHost + '/upload')
  547. : [], //满意度调查表
  548. taskRefund: thisdata.taskRefund, //退单
  549. refundContent: thisdata.refundContent, //退单信息
  550. retrieveContent: thisdata.retrieveContent, //回收信息
  551. arrivalMoney: thisdata.arrivalMoney, //是否到款
  552. setUpAmount: thisdata.setUpAmount, //立项金额
  553. declareUser: thisdata.declareUser, //账号
  554. declarePwd: thisdata.declarePwd, //密码
  555. depName: thisdata.depName, //订单部门
  556. outsourceName: thisdata.outsourceName, //外包公司名称
  557. outsourcePrice: thisdata.outsourcePrice, //外包价格
  558. declarationBatch: thisdata.declarationBatch,
  559. bpType: thisdata.bpType,//0 正常 1专利 2软著 3审计 4双软 5高新 6商标
  560. cSort: thisdata.sort,
  561. specialComment: thisdata.specialComment,
  562. urgentDay: thisdata.urgentDay, //有无方案
  563. ifMaterial: thisdata.ifMaterial, //加急情况
  564. spotCheckStatus: thisdata.spotCheckStatus,
  565. setUpStatus: thisdata.setUpStatus,
  566. setUpTime: thisdata.setUpTime,
  567. highTechStatus: thisdata.highTechStatus,
  568. acceptCount: thisdata.acceptCount, //受理数
  569. certificatesCount: thisdata.certificatesCount, //授权数
  570. rejectCount: thisdata.rejectCount, //驳回数
  571. commodityQuantity: thisdata.commodityQuantity, //派单项目数
  572. timeRecordparse: thisdata.timeRecord ? JSON.parse(thisdata.timeRecord) : {},//项目状态JSON
  573. });
  574. }
  575. }.bind(this),
  576. }).always(
  577. function () {
  578. this.setState({
  579. loading: false,
  580. });
  581. }.bind(this)
  582. );
  583. }
  584. //订单详情
  585. xiangqings(orderNos) {
  586. $.ajax({
  587. method: "get",
  588. dataType: "json",
  589. crossDomain: false,
  590. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  591. data: {
  592. orderNo: orderNos,
  593. },
  594. success: function (data) {
  595. let thisdata = data.data;
  596. let ProvinceCityArr = [];
  597. let ProvinceS = thisdata.locationProvince; //省
  598. let citys = thisdata.locationCity; //市
  599. let Areas = thisdata.locationArea; //区
  600. ProvinceCityArr.push(ProvinceS, citys, Areas);
  601. if (data.error.length || data.data.list == "") {
  602. if (data.error && data.error.length) {
  603. message.warning(data.error[0].message);
  604. }
  605. } else {
  606. this.setState({
  607. orderUid: thisdata.uid,
  608. examineName: thisdata.examineName,
  609. processStatus: thisdata.processStatus, //流程状态
  610. liquidationStatus: thisdata.liquidationStatus, //结算状态
  611. approval: thisdata.approval, //特批状态
  612. orderRemarks: thisdata.orderRemarks, //订单留言
  613. salesmanName: thisdata.salesmanName, //营销员名称
  614. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  615. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  616. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  617. financeName: thisdata.financeName, //财务名称
  618. financeMobile: thisdata.financeMobile, //财务电话
  619. nowFinance: thisdata.nowFinance, //财务名称
  620. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  621. depName: thisdata.depName, //订单部门
  622. locationProvince: thisdata.locationProvince,
  623. locationCity: thisdata.locationCity,
  624. locationArea: thisdata.locationArea,
  625. ProvinceCity: ProvinceCityArr,
  626. postalAddress: thisdata.postalAddress, //详细地址
  627. outsource: thisdata.outsource,
  628. deleteSign: thisdata.deleteSign,
  629. });
  630. }
  631. }.bind(this),
  632. }).always(
  633. function () {
  634. this.setState({
  635. loading: false,
  636. });
  637. }.bind(this)
  638. );
  639. }
  640. //查看下证信息
  641. loaduserss(id) {
  642. $.ajax({
  643. method: "get",
  644. dataType: "json",
  645. crossDomain: false,
  646. url: globalConfig.context + "/api/admin/orderProject/selectTaskProgress",
  647. data: {
  648. tid: id,
  649. },
  650. success: function (data) {
  651. let theArr = [];
  652. let thisData = [];
  653. if (!thisData) {
  654. if (data.error && data.error.length) {
  655. message.warning(data.error[0].message);
  656. }
  657. } else {
  658. for (let i = 0; i < data.data.length; i++) {
  659. thisData = data.data[i];
  660. theArr.push({
  661. num: i + 1,
  662. key: i,
  663. id: thisData.id, //编号
  664. alreadyNumber: thisData.alreadyNumber, //下证数
  665. licenceTimes: thisData.licenceTimes, //下证时间
  666. notCount: thisData.notCount, //未下证数
  667. flag: true,
  668. });
  669. }
  670. this.setState({
  671. contactList: theArr,
  672. });
  673. }
  674. }.bind(this),
  675. }).always(
  676. function () {
  677. this.setState({
  678. loading: false,
  679. });
  680. }.bind(this)
  681. );
  682. }
  683. jiedianNew(orderNos) {
  684. $.ajax({
  685. method: "get",
  686. dataType: "json",
  687. crossDomain: false,
  688. url:
  689. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  690. data: {
  691. orderNo: orderNos,
  692. },
  693. success: function (data) {
  694. if (data.error && data.error.length) {
  695. message.warning(data.error[0].message);
  696. } else {
  697. let theArr = [];
  698. let thisData = [];
  699. let arr = data.data || [];
  700. let totalCui = 0;
  701. for (let i = 0; i < arr.length; i++) {
  702. thisData = arr[i];
  703. totalCui += +thisData.money;
  704. thisData.key = i;
  705. thisData.dunSubject = thisData.dunSubject
  706. ? thisData.dunSubject.toString()
  707. : "", //催款科目
  708. theArr.push(thisData);
  709. }
  710. if (!totalCui) {
  711. totalCui = 0;
  712. }
  713. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  714. this.setState({
  715. jiedianNew: theArr,
  716. totalCui,
  717. });
  718. }
  719. }.bind(this),
  720. }).always(
  721. function () {
  722. this.setState({
  723. loading: false,
  724. });
  725. }.bind(this)
  726. );
  727. }
  728. orderDetailData(orderNos) {
  729. this.setState({
  730. loading: true,
  731. });
  732. $.ajax({
  733. method: "get",
  734. dataType: "json",
  735. crossDomain: false,
  736. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  737. data: {
  738. orderNo: orderNos,
  739. },
  740. success: function (data) {
  741. if (data.error.length || data.data.list == "") {
  742. if (data.error && data.error.length) {
  743. message.warning(data.error[0].message);
  744. this.setState({
  745. loading: false,
  746. });
  747. }
  748. } else {
  749. let thisdata = data.data;
  750. this.setState({
  751. loading: false,
  752. orderUid: thisdata.uid,
  753. userName: thisdata.userName,
  754. primaryOrderNo: thisdata.primaryOrder,
  755. additionalOrder: thisdata.additionalOrder,
  756. contractNo: thisdata.contractNo,
  757. orderData: thisdata,
  758. isAddition: thisdata.additionalOrder ? true : false,
  759. contractPictureUrl: thisdata.contractPictureUrl
  760. ? splitUrl(
  761. thisdata.contractPictureUrl,
  762. ",",
  763. globalConfig.avatarHost + "/upload"
  764. )
  765. : [],
  766. deleteSign: thisdata.deleteSign,
  767. });
  768. }
  769. }.bind(this),
  770. });
  771. }
  772. //项目列表
  773. xiangmu(orderNos) {
  774. this.setState({
  775. loading: true,
  776. });
  777. $.ajax({
  778. method: "get",
  779. dataType: "json",
  780. crossDomain: false,
  781. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  782. data: {
  783. orderNo: orderNos,
  784. },
  785. success: function (data) {
  786. let theArr = [];
  787. if (data.error.length || data.data.list == "") {
  788. if (data.error && data.error.length) {
  789. message.warning(data.error[0].message);
  790. }
  791. } else {
  792. for (let i = 0; i < data.data.length; i++) {
  793. let thisdata = data.data[i];
  794. thisdata.key = i;
  795. theArr.push(thisdata);
  796. }
  797. }
  798. this.setState({
  799. dataSourceX: theArr,
  800. });
  801. }.bind(this),
  802. }).always(
  803. function () {
  804. this.setState({
  805. loading: false,
  806. });
  807. }.bind(this)
  808. );
  809. }
  810. rizhi() {
  811. this.setState({
  812. loading: true,
  813. });
  814. $.ajax({
  815. method: "get",
  816. dataType: "json",
  817. crossDomain: false,
  818. url: "/api/admin/newOrder/selectOrderLog",
  819. data: {
  820. orderNo: this.props.orderNo,
  821. },
  822. success: function (data) {
  823. let theArr = [];
  824. let thisData = data.data;
  825. if (!thisData.length) {
  826. if (data.error && data.error.length) {
  827. message.warning(data.error[0].message);
  828. }
  829. } else {
  830. for (let i = 0; i < data.data.length; i++) {
  831. let thisdata = data.data[i];
  832. theArr.push({
  833. processName: thisdata.processName,
  834. adminName: thisdata.adminName,
  835. createDate: thisdata.createDate,
  836. remarks: thisdata.remarks,
  837. });
  838. }
  839. }
  840. this.setState({
  841. dataSourceY: theArr,
  842. });
  843. }.bind(this),
  844. }).always(
  845. function () {
  846. this.setState({
  847. loading: false,
  848. });
  849. }.bind(this)
  850. );
  851. }
  852. getOrderLog() {
  853. this.setState({
  854. avisible: true,
  855. });
  856. this.rizhi();
  857. }
  858. componentDidMount() {
  859. if (this.props.taskName.substring(0, 5) === "软件著作权") {
  860. this.setState({
  861. isSoftware: true,
  862. })
  863. }
  864. this.setState({
  865. isIso: this.props.taskName.indexOf("贯标") !== -1,
  866. })
  867. this.departmentList();
  868. this.xiangqing(this.props.id);
  869. this.xiangqings(this.props.orderNo);
  870. this.xiangmu(this.props.orderNo);
  871. this.loaduserss(this.props.id);
  872. }
  873. // 修改项目满意度
  874. updateSatisfactionDegree(status) {
  875. let satisfactionDegreeUrls = []
  876. if (this.state.satisfactionDegreeUrl.length) {
  877. let picArr = []
  878. this.state.satisfactionDegreeUrl.map(function (item) {
  879. if (item.response && item.response.data && item.response.data.length) {
  880. picArr.push(item.response.data)
  881. }
  882. })
  883. satisfactionDegreeUrls = picArr.join(',')
  884. }
  885. if (status == 2) {
  886. if (satisfactionDegreeUrls.length == 0) {
  887. message.warning("请先上传满意度调查表!");
  888. return
  889. }
  890. if (!this.state.formRetrieve) {
  891. message.warning("请先选择满意度!");
  892. return
  893. }
  894. }
  895. let obj1 = {
  896. id: this.props.id,
  897. formRetrieve: 1,
  898. }
  899. let obj2 = {
  900. id: this.props.id,
  901. formRetrieve: status,
  902. satisfactionDegree: this.state.satisfactionDegree,
  903. satisfactionDegreeUrl: satisfactionDegreeUrls.length ? satisfactionDegreeUrls : '',
  904. }
  905. this.setState({
  906. loading: true,
  907. });
  908. $.ajax({
  909. url: globalConfig.context + "/api/admin/orderProject/updateSatisfactionDegree",
  910. method: "post",
  911. data: status == 1 ? obj1 : obj2,
  912. }).done(
  913. function (data) {
  914. this.setState({
  915. loading: false,
  916. });
  917. if (data.error.length === 0) {
  918. if (status == 1) {
  919. this.setState({
  920. formRetrieve: 1
  921. })
  922. } else if (status == 2) {
  923. this.setState({
  924. formRetrieve: 2
  925. })
  926. message.success("保存成功!");
  927. }
  928. } else {
  929. message.warning(data.error[0].message);
  930. }
  931. }.bind(this)
  932. );
  933. }
  934. // 可展开颜色不同
  935. addRowColor(record) {
  936. if (!!record.splitList && record.splitList.length > 0) {
  937. return 'light'
  938. } else {
  939. return 'dark'
  940. }
  941. }
  942. render() {
  943. const expandedRowRenderVip = (e) => {
  944. const data = e.splitList;
  945. let columns = [];
  946. if (data instanceof Array && data.length) {
  947. if (e.cSort == 6) {
  948. columns = [
  949. {
  950. title: "负责人",
  951. dataIndex: "receiverName",
  952. key: "receiverName",
  953. },
  954. {
  955. title: "负责人电话",
  956. dataIndex: "receiverMobile",
  957. key: "receiverMobile",
  958. },
  959. {
  960. title: "会员负责人",
  961. dataIndex: "projectMemberName",
  962. key: "projectMemberName",
  963. },
  964. {
  965. title: "项目状态",
  966. dataIndex: "projectStatus",
  967. key: "projectStatus",
  968. render: (text) => {
  969. return getProjectName(text);
  970. },
  971. },
  972. {
  973. title: "本次派单",
  974. dataIndex: "serviceYear",
  975. key: "serviceYear",
  976. },
  977. {
  978. title: "项目说明",
  979. dataIndex: "taskComment",
  980. key: "taskComment",
  981. render: (text, record) => {
  982. let textStr = text;
  983. let textArr = [];
  984. if (record.htMember === 1) {
  985. textArr.push("高新会员");
  986. }
  987. if (record.additionalDeduction === 1) {
  988. textArr.push("加计扣除");
  989. }
  990. if (record.rdAwardsubsidy === 1) {
  991. textArr.push("研发补助");
  992. }
  993. if (textArr.length) {
  994. textStr = `${textArr.join("&")} ${!!text ? `(${text})` : ''}`
  995. }
  996. return (
  997. <Tooltip title={textStr}>
  998. <div
  999. >{textStr}</div>
  1000. </Tooltip>
  1001. )
  1002. },
  1003. },
  1004. ];
  1005. } else {
  1006. columns = [
  1007. {
  1008. title: "子项目名称",
  1009. dataIndex: "taskName",
  1010. key: "taskName"
  1011. },
  1012. {
  1013. title: "子项目数量",
  1014. dataIndex: "commodityQuantity",
  1015. key: "commodityQuantity"
  1016. },
  1017. {
  1018. title: "拆分操作人",
  1019. dataIndex: "splitAname",
  1020. key: "splitAname"
  1021. },
  1022. {
  1023. title: "项目负责人",
  1024. dataIndex: "receiverName",
  1025. key: "receiverName"
  1026. },
  1027. {
  1028. title: "拆分时间",
  1029. dataIndex: "splitTimes",
  1030. key: "splitTimes"
  1031. }
  1032. ]
  1033. }
  1034. return (
  1035. <Table
  1036. columns={columns}
  1037. dataSource={data}
  1038. pagination={false}
  1039. />
  1040. );
  1041. } else {
  1042. columns = [];
  1043. return (
  1044. <p
  1045. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  1046. >
  1047. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  1048. </p>
  1049. );
  1050. }
  1051. };
  1052. return (
  1053. this.props.visible ? <Modal
  1054. maskClosable={false}
  1055. className="customeDetails"
  1056. footer=""
  1057. title=""
  1058. width="1200px"
  1059. visible={this.props.visible}
  1060. onOk={() => {
  1061. this.props.visitOk && this.props.visitOk()
  1062. }}
  1063. onCancel={() => {
  1064. this.props.visitCancel && this.props.visitCancel();
  1065. }}
  1066. >
  1067. <Tabs activeKey={this.state.activeKey} onChange={this.orderChange} tabBarExtraContent={
  1068. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  1069. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1070. </div>
  1071. }>
  1072. <TabPane tab="项目概况" key="1">
  1073. <Form
  1074. layout="horizontal"
  1075. id="demand-form"
  1076. style={{ paddingBottom: "0px" }}
  1077. >
  1078. <Spin spinning={this.state.loading}>
  1079. <div className="clearfix">
  1080. <div className="clearfix">
  1081. <FormItem
  1082. className="half-item"
  1083. {...formItemLayout}
  1084. label="项目状态"
  1085. >
  1086. <span>{getProjectName(parseInt(this.state.projectStatus))}</span>
  1087. <Button
  1088. type="primary"
  1089. size="small"
  1090. style={{ marginTop: "5px", position: "absolute" }}
  1091. onClick={this.caozuorizhi}
  1092. >
  1093. 操作日志
  1094. </Button>
  1095. {this.state.visibleA ? <Modal
  1096. maskClosable={false}
  1097. width="800px"
  1098. visible={this.state.visibleA}
  1099. onCancel={() => {
  1100. this.setState({
  1101. visibleA: false
  1102. })
  1103. }}
  1104. title="操作日志"
  1105. footer=""
  1106. className="admin-desc-content"
  1107. >
  1108. <div className="patent-table patent-table-center">
  1109. <Spin spinning={this.state.loading}>
  1110. <Table
  1111. columns={this.state.columnsA}
  1112. dataSource={this.state.dataSourceA}
  1113. pagination={false}
  1114. bordered
  1115. size="small"
  1116. />
  1117. </Spin>
  1118. </div>
  1119. </Modal> : null}
  1120. </FormItem>
  1121. <FormItem
  1122. className="half-item"
  1123. {...formItemLayout}
  1124. label="合同编号"
  1125. >
  1126. <span>{this.state.contractNo}</span>
  1127. </FormItem>
  1128. </div>
  1129. <div className="clearfix">
  1130. <FormItem
  1131. className="half-item"
  1132. {...formItemLayout}
  1133. label="是否特批"
  1134. >
  1135. <span>{getApproval(this.state.approval)}</span>
  1136. </FormItem>
  1137. <FormItem
  1138. className="half-item"
  1139. {...formItemLayout}
  1140. label="结算状态"
  1141. >
  1142. <span>
  1143. {getLiquidationStatus(this.state.liquidationStatus)}
  1144. </span>
  1145. </FormItem>
  1146. <FormItem
  1147. className="half-item"
  1148. {...formItemLayout}
  1149. label="流程状态"
  1150. >
  1151. <span>
  1152. {getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}
  1153. </span>
  1154. </FormItem>
  1155. <FormItem
  1156. className="half-item"
  1157. {...formItemLayout}
  1158. label="订单编号"
  1159. >
  1160. <span>{this.state.orderNo}</span>
  1161. </FormItem>
  1162. <FormItem
  1163. className="half-item"
  1164. {...formItemLayout}
  1165. label="是否外包"
  1166. >
  1167. <span>{this.state.outsource === 0 ? "否" : "是"}</span>
  1168. </FormItem>
  1169. </div>
  1170. <div className="clearfix">
  1171. <FormItem
  1172. labelCol={{ span: 3 }}
  1173. wrapperCol={{ span: 16 }}
  1174. label="满意度表格"
  1175. >
  1176. <div>
  1177. {getFormRetrieve(this.state.formRetrieve)}
  1178. {this.state.formRetrieve == 0 &&
  1179. <Button
  1180. type="primary"
  1181. size="small"
  1182. style={{ marginTop: "5px", marginLeft: '5px', }}
  1183. onClick={() => { this.updateSatisfactionDegree(1) }}
  1184. >已发送至客户</Button>}
  1185. {
  1186. (this.state.formRetrieve == 1 || this.state.formRetrieve == 2) &&
  1187. <div className="clearfix">
  1188. <FormItem
  1189. labelCol={{ span: 3 }}
  1190. wrapperCol={{ span: 16 }}
  1191. label="满意度调查整表"
  1192. >
  1193. <Picture
  1194. showRemove={false} //删除图标
  1195. domId={'table'}
  1196. fileList={(e) => {
  1197. this.setState({ satisfactionDegreeUrl: e })
  1198. }}
  1199. pictureUrl={this.state.satisfactionDegreeUrl}
  1200. visible={this.props.visible}
  1201. data={{
  1202. sign: 'satisfactionDegree',
  1203. url: '/api/admin/orderProject/upload/satisfactionDegree',
  1204. }}
  1205. />
  1206. </FormItem>
  1207. </div>
  1208. }
  1209. <p style={{ color: 'red' }}>
  1210. {
  1211. this.state.formRetrieve == 0
  1212. ? "注:满意度调查整表,已发送时,即可上传回复件了!"
  1213. : "注:回收表格后,即可上传回复件了"
  1214. }
  1215. </p>
  1216. {
  1217. (this.state.formRetrieve == 1 || this.state.formRetrieve == 2) &&
  1218. <div className="clearfix">
  1219. <FormItem
  1220. labelCol={{ span: 3 }}
  1221. wrapperCol={{ span: 16 }}
  1222. label="满意度"
  1223. >
  1224. <Radio.Group
  1225. value={this.state.satisfactionDegree}
  1226. onChange={(e) => {
  1227. this.setState({ satisfactionDegree: e.target.value })
  1228. }}
  1229. >
  1230. <Radio value={0}>非常满意</Radio>
  1231. <Radio value={1}>满意</Radio>
  1232. <Radio value={2}>一般</Radio>
  1233. <Radio value={3}>不满意</Radio>
  1234. </Radio.Group>
  1235. <div>
  1236. <Button type="primary" size="small"
  1237. onClick={() => {
  1238. this.updateSatisfactionDegree(2)
  1239. }}>保存并上传</Button>
  1240. </div>
  1241. </FormItem>
  1242. </div>
  1243. }
  1244. </div>
  1245. </FormItem>
  1246. </div>
  1247. {/*软著显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1248. {this.state.bpType === 2 ? <div className="clearfix">
  1249. <FormItem
  1250. className="half-item"
  1251. {...formItemLayout}
  1252. label="加急天数"
  1253. >
  1254. {
  1255. this.state.urgentDay === 1 ? '是' :
  1256. this.state.urgentDay === 0 ? '否' : ''
  1257. }
  1258. </FormItem>
  1259. <FormItem
  1260. className="half-item"
  1261. {...formItemLayout}
  1262. label="有无方案"
  1263. >
  1264. {
  1265. this.state.ifMaterial === 1 ? '是' :
  1266. this.state.ifMaterial === 0 ? '否' : ''
  1267. }
  1268. </FormItem>
  1269. </div> : null}
  1270. <div className="clearfix">
  1271. <div style={{
  1272. paddingLeft: '8%',
  1273. }}>
  1274. <div style={{ color: '#000', fontWeight: 500 }}>
  1275. 特别说明
  1276. <span style={{ color: '#58a3ff', }}>(针对项目的特殊情况说明)</span>
  1277. </div>
  1278. <div style={{
  1279. display: 'flex',
  1280. }}>
  1281. <span style={{ paddingRight: '10px', whiteSpace: "nowrap" }}>备注:</span>
  1282. <span style={{
  1283. flex: 1,
  1284. wordBreak: 'break-all',
  1285. }}>{this.state.specialComment}</span>
  1286. </div>
  1287. </div>
  1288. </div>
  1289. <div className="clearfix">
  1290. <h3 className="sub-title">任务信息</h3>
  1291. {/*0通用 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1292. {/*贯标需要显示*/}
  1293. {
  1294. this.state.isIso ?
  1295. <div>
  1296. <FormItem
  1297. className="half-item"
  1298. {...formItemLayout}
  1299. label="认证费"
  1300. >
  1301. <span>
  1302. {
  1303. this.state.ifCertificationFee === 1 ? '包含' : '不包含'
  1304. }
  1305. </span>
  1306. </FormItem>
  1307. {this.state.ifCertificationFee === 1 ? <FormItem
  1308. className="half-item"
  1309. {...formItemLayout}
  1310. label="认证费(万元)"
  1311. >
  1312. <span>
  1313. {
  1314. this.state.certificationFee
  1315. }
  1316. </span>
  1317. </FormItem> : null}
  1318. {this.state.ifCertificationFee === 1 ? <FormItem
  1319. className="half-item"
  1320. {...formItemLayout}
  1321. label=""
  1322. /> : null}
  1323. {this.state.ifCertificationFee === 1 ? <FormItem
  1324. className="half-item"
  1325. {...formItemLayout}
  1326. label="付款公司名称"
  1327. >
  1328. <span>
  1329. {this.state.certificationCorporate}
  1330. </span>
  1331. </FormItem> : null}
  1332. </div> : null
  1333. }
  1334. <FormItem
  1335. className="half-item"
  1336. {...formItemLayout}
  1337. label="任务编号"
  1338. >
  1339. <span>
  1340. {
  1341. this.state.splitStatus === 2
  1342. ? this.state.splitSuper + "-" + this.state.splitId
  1343. : this.state.id
  1344. }
  1345. </span>
  1346. </FormItem>
  1347. <FormItem
  1348. className="half-item"
  1349. {...formItemLayout}
  1350. label="任务名称"
  1351. >
  1352. <span>{this.state.taskName}</span>
  1353. </FormItem>
  1354. <FormItem
  1355. className="half-item"
  1356. {...formItemLayout}
  1357. label="任务状态"
  1358. >
  1359. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1360. </FormItem>
  1361. <FormItem
  1362. className="half-item"
  1363. {...formItemLayout}
  1364. label="任务类别"
  1365. >
  1366. <span>{this.state.cname}</span>
  1367. </FormItem>
  1368. <FormItem
  1369. className="half-item"
  1370. {...formItemLayout}
  1371. label="证书编号"
  1372. >
  1373. <span>{this.state.certificateNumber}</span>
  1374. </FormItem>
  1375. </div>
  1376. <div className="clearfix">
  1377. <h3 className="sub-title">联系信息</h3>
  1378. <FormItem
  1379. className="half-item"
  1380. {...formItemLayout}
  1381. label="客户名称"
  1382. >
  1383. <span>{this.state.userName}</span>
  1384. <EnterpriseNameChange
  1385. type='journal'
  1386. style={{ marginLeft: 10 }}
  1387. enterpriseId={this.state.orderUid} />
  1388. </FormItem>
  1389. <FormItem
  1390. className="half-item"
  1391. {...formItemLayout}
  1392. label="企业法人"
  1393. >
  1394. <span>{this.state.legalPerson}</span>
  1395. </FormItem>
  1396. <FormItem
  1397. className="half-item"
  1398. {...formItemLayout}
  1399. label="法人电话"
  1400. >
  1401. <span>{this.state.legalPersonTel}</span>
  1402. </FormItem>
  1403. <FormItem
  1404. className="half-item"
  1405. {...formItemLayout}
  1406. label="客户联系人"
  1407. >
  1408. <span>{this.state.contacts}</span>
  1409. </FormItem>
  1410. <FormItem
  1411. className="half-item"
  1412. {...formItemLayout}
  1413. label="联系人电话"
  1414. >
  1415. <span>{this.state.contactMobile}</span>
  1416. </FormItem>
  1417. <FormItem
  1418. className="half-item"
  1419. {...formItemLayout}
  1420. label="企业地址"
  1421. >
  1422. <span>
  1423. {getprovince(this.state.locationProvince)}/
  1424. {getprovince(this.state.locationCity)}/
  1425. {getprovince(this.state.locationArea)}
  1426. </span>
  1427. </FormItem>
  1428. <FormItem
  1429. className="half-item"
  1430. {...formItemLayout}
  1431. label=""
  1432. />
  1433. <FormItem className="half-item" {...formItemLayout}>
  1434. <span style={{ paddingLeft: "12em" }}>
  1435. {this.state.postalAddress}
  1436. </span>
  1437. </FormItem>
  1438. </div>
  1439. <div className="clearfix">
  1440. <h3 className="sub-title">订单负责人信息</h3>
  1441. <FormItem
  1442. className="half-item"
  1443. {...formItemLayout}
  1444. label="负责人"
  1445. >
  1446. <span>
  1447. {this.state.salesmanName +
  1448. "(" +
  1449. this.state.depName +
  1450. ")"}
  1451. </span>
  1452. </FormItem>
  1453. <FormItem
  1454. className="half-item"
  1455. {...formItemLayout}
  1456. label="负责人电话"
  1457. >
  1458. <span>{this.state.salesmanMobile}</span>
  1459. </FormItem>
  1460. <FormItem
  1461. className="half-item"
  1462. {...formItemLayout}
  1463. label="当前财务负责人"
  1464. >
  1465. <span>{this.state.nowFinance}</span>
  1466. </FormItem>
  1467. <FormItem
  1468. className="half-item"
  1469. {...formItemLayout}
  1470. label="当前财务负责人电话"
  1471. >
  1472. <span>{this.state.nowFinanceMobile}</span>
  1473. </FormItem>
  1474. {!this.state.isSoftware ? <div>
  1475. <FormItem
  1476. className="half-item"
  1477. {...formItemLayout}
  1478. style={{ opacity: ".5" }}
  1479. label="原负责人"
  1480. >
  1481. <span>{this.state.oldSalesmanName}</span>
  1482. </FormItem>
  1483. <FormItem
  1484. className="half-item"
  1485. {...formItemLayout}
  1486. style={{ opacity: ".5" }}
  1487. label="原负责人电话"
  1488. >
  1489. <span>{this.state.oldSalesmanMobile}</span>
  1490. </FormItem>
  1491. <FormItem
  1492. className="half-item"
  1493. {...formItemLayout}
  1494. style={{ opacity: ".5" }}
  1495. label="实际财务操作人"
  1496. >
  1497. <span>{this.state.financeName}</span>
  1498. </FormItem>
  1499. <FormItem
  1500. className="half-item"
  1501. {...formItemLayout}
  1502. style={{ opacity: ".5" }}
  1503. label="实际财务操作人电话"
  1504. >
  1505. <span>{this.state.financeMobile}</span>
  1506. </FormItem>
  1507. </div> : null}
  1508. <FormItem
  1509. className="half-item"
  1510. {...formItemLayout}
  1511. label="订单留言"
  1512. >
  1513. <span>{this.state.orderRemarks}</span>
  1514. </FormItem>
  1515. <FormItem
  1516. className="half-item"
  1517. {...formItemLayout}
  1518. label=""
  1519. >
  1520. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  1521. </FormItem>
  1522. <OrderRiZi
  1523. dataSourcerizhi={this.state.dataSourceY}
  1524. closeOrderLog={() => {
  1525. this.setState({
  1526. avisible: false
  1527. })
  1528. }}
  1529. visible={this.state.avisible}
  1530. loading={this.state.loading}
  1531. />
  1532. </div>
  1533. {!this.state.isSoftware ? <div className="clearfix">
  1534. <h3 className="sub-title">申报系统账户信息</h3>
  1535. <FormItem
  1536. className="half-item"
  1537. {...formItemLayout}
  1538. label="用户名"
  1539. >
  1540. <span>{this.state.declareUser}</span>
  1541. </FormItem>
  1542. <FormItem
  1543. className="half-item"
  1544. {...formItemLayout}
  1545. label="密码"
  1546. >
  1547. <span>{this.state.declarePwd}</span>
  1548. </FormItem>
  1549. </div> : null}
  1550. {this.state.isSoftware ?
  1551. <div className="clearfix">
  1552. <h3 className="sub-title">项目申报进度</h3>
  1553. <DeclarationProgress
  1554. timeRecordparse={this.state.timeRecordparse}
  1555. startDate={this.state.startDate}
  1556. taskDate={this.state.taskDate}
  1557. list={[
  1558. { id: 4, name: '完成时间', value: this.state.endDate },
  1559. { id: 6, name: '受理时间', value: this.state.acceptDate },
  1560. { id: 8, name: '公示时间', value: this.state.publicityDate },
  1561. { id: 10, name: '发证时间', value: this.state.licenceDate },
  1562. { id: 15, name: '立项金额', value: this.state.setUpAmount }
  1563. ]} />
  1564. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1565. {/*cSort: 3 科技项目 6: 会员*/}
  1566. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  1567. className="half-item"
  1568. {...formItemLayout}
  1569. label="申报批次"
  1570. >
  1571. <span>{this.state.declarationBatch}</span>
  1572. </FormItem>}
  1573. <FormItem
  1574. className="half-item"
  1575. {...formItemLayout}
  1576. label="软著派单数量"
  1577. >
  1578. <span>{this.state.commodityQuantity}</span>
  1579. </FormItem>
  1580. <div className="patent-table patent-table-center">
  1581. <Spin spinning={this.state.loading}>
  1582. <Table
  1583. columns={this.state.ContactsLists}
  1584. dataSource={this.state.contactList}
  1585. pagination={false}
  1586. bordered
  1587. size="small"
  1588. />
  1589. </Spin>
  1590. </div>
  1591. </div> :
  1592. <div className="clearfix">
  1593. <h3 className="sub-title">项目申报进度</h3>
  1594. <DeclarationProgress
  1595. timeRecordparse={this.state.timeRecordparse}
  1596. startDate={this.state.startDate}
  1597. taskDate={this.state.taskDate}
  1598. list={[
  1599. { id: 4, name: '完成时间', value: this.state.endDate },
  1600. { id: 6, name: '受理时间', value: this.state.acceptDate },
  1601. { id: 8, name: '公示时间', value: this.state.publicityDate },
  1602. { id: 10, name: '发证时间', value: this.state.licenceDate },
  1603. { id: 15, name: '立项金额', value: this.state.setUpAmount }
  1604. ]} />
  1605. {
  1606. this.state.bpType === 1 || this.state.bpType === 6 ?
  1607. <div>
  1608. <FormItem
  1609. labelCol={{ span: 3 }}
  1610. wrapperCol={{ span: 16 }}
  1611. label="是否高新企业"
  1612. >
  1613. <span>
  1614. {
  1615. this.state.highTechStatus === 1 ? '是' :
  1616. this.state.highTechStatus === 0 ? '否' : ''
  1617. }
  1618. </span>
  1619. </FormItem>
  1620. <FormItem />
  1621. <PatentSchedule
  1622. readOnly
  1623. bpType={this.state.bpType}
  1624. taskId={this.state.id}
  1625. acceptCount={this.state.acceptCount}
  1626. certificatesCount={this.state.certificatesCount}
  1627. rejectCount={this.state.rejectCount}
  1628. commodityQuantity={this.state.commodityQuantity}
  1629. refresh={() => { this.xiangqing(this.state.id) }}
  1630. />
  1631. </div> :
  1632. <div>
  1633. {/*高新显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1634. {this.state.bpType === 5 ? <FormItem
  1635. className="half-item"
  1636. {...formItemLayout}
  1637. label="是否抽查">
  1638. {
  1639. this.state.spotCheckStatus === 0 ? '否' :
  1640. this.state.spotCheckStatus === 1 ? '是,未通过' :
  1641. this.state.spotCheckStatus === 2 ? '是,通过' : ''
  1642. }
  1643. </FormItem> : null}
  1644. <FormItem />
  1645. {this.state.bpType === 5 ? <FormItem
  1646. className="half-item"
  1647. {...formItemLayout}
  1648. label="是否立项"
  1649. >
  1650. {
  1651. this.state.setUpStatus === 1 ? '是' :
  1652. this.state.setUpStatus === 0 ? '否' : ''
  1653. }
  1654. </FormItem> : null}
  1655. {this.state.bpType === 5 ? <FormItem
  1656. className="half-item"
  1657. {...formItemLayout}
  1658. label={this.state.setUpStatus === 1 ? "立项时间" : ''}
  1659. >
  1660. {this.state.setUpStatus === 1 ? this.state.setUpTime : null}
  1661. </FormItem> : null}
  1662. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1663. {/*cSort: 3 科技项目 6: 会员*/}
  1664. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  1665. className="half-item"
  1666. {...formItemLayout}
  1667. label="申报批次"
  1668. >
  1669. <span>{this.state.declarationBatch}</span>
  1670. </FormItem>}
  1671. {/*只有科技项目才有是否到款*/}
  1672. {/*cSort: 3 科技项目 6: 会员*/}
  1673. {this.state.cSort === 3 && <FormItem
  1674. className="half-item"
  1675. {...formItemLayout}
  1676. label="是否到款"
  1677. >
  1678. <span>
  1679. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1680. </span>
  1681. </FormItem>}
  1682. </div>
  1683. }
  1684. </div>}
  1685. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1686. <FormItem
  1687. labelCol={{ span: 3 }}
  1688. wrapperCol={{ span: 18 }}
  1689. label="附件"
  1690. >
  1691. {this.state.visible && this.state.attachmentUrl && this.state.activeKey === "1" ? <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1692. <ImgList fileList={this.state.attachmentUrl} domId={'taskQuery1'} />
  1693. </div> : null}
  1694. </FormItem>
  1695. </div> : null}
  1696. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1697. <FormItem
  1698. labelCol={{ span: 3 }}
  1699. wrapperCol={{ span: 16 }}
  1700. label="项目说明"
  1701. >
  1702. <span>{this.state.taskComment}</span>
  1703. </FormItem>
  1704. </div> : null}
  1705. <div>
  1706. <h3 className="sub-title">项目业务</h3>
  1707. {this.state.processStatus === 0 ? (
  1708. <Button
  1709. type="primary"
  1710. onClick={this.addDetailed}
  1711. style={{
  1712. float: "right",
  1713. marginRight: "50px",
  1714. marginBottom: "15px",
  1715. }}
  1716. >
  1717. 添加项目明细
  1718. </Button>
  1719. ) : null}
  1720. </div>
  1721. <div className="patent-table">
  1722. <Spin spinning={this.state.loading}>
  1723. <Table
  1724. columns={this.state.columnsX}
  1725. dataSource={this.state.dataSourceX}
  1726. pagination={this.state.paginations}
  1727. onRowClick={this.tableRowClickX}
  1728. expandedRowRender={expandedRowRenderVip}
  1729. rowClassName={this.addRowColor}
  1730. style={{
  1731. cursor: 'pointer',
  1732. }}
  1733. bordered
  1734. size="small"
  1735. />
  1736. </Spin>
  1737. </div>
  1738. </div>
  1739. </Spin>
  1740. </Form>
  1741. </TabPane>
  1742. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  1743. <TabPane tab="订单详情" key="2">
  1744. {this.state.activeKey === "2" ? <Spin spinning={this.state.loading}>
  1745. <OrderDetail
  1746. orderUid={this.state.orderUid}
  1747. orderData={this.state.orderData}
  1748. getOrderLog={this.getOrderLog}
  1749. dataSourceX={this.state.dataSourceX}
  1750. contactList={this.state.jiedian}
  1751. orderNo={this.state.orderNo}
  1752. totalCui={this.state.totalCui}
  1753. contactListNew={this.state.jiedianNew}
  1754. pictureUrl={this.state.contractPictureUrl}
  1755. />
  1756. </Spin> : null}
  1757. <OrderRiZi
  1758. dataSourcerizhi={this.state.dataSourceY}
  1759. closeOrderLog={() => {
  1760. this.setState({
  1761. avisible: false
  1762. })
  1763. }}
  1764. visible={this.state.avisible}
  1765. loading={this.state.loading}
  1766. />
  1767. </TabPane>
  1768. ) : null}
  1769. </Tabs>
  1770. </Modal> : null
  1771. );
  1772. }
  1773. }
  1774. export default ProjectDetails;