projectDetails.jsx 56 KB

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