projectDetails.jsx 74 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540
  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 style={{
  123. maxWidth: '150px',
  124. overflow: 'hidden',
  125. textOverflow: "ellipsis",
  126. whiteSpace: 'nowrap',
  127. }}>{text}</div>
  128. </Tooltip>
  129. )
  130. },
  131. },
  132. {
  133. title: "任务状态",
  134. dataIndex: "taskStatus",
  135. key: "taskStatus",
  136. render: (text) => {
  137. return getTaskStatus(text);
  138. },
  139. },
  140. {
  141. title: "项目状态",
  142. dataIndex: "projectStatus",
  143. key: "projectStatus",
  144. render: (text) => {
  145. return getProjectStatus(text);
  146. },
  147. },
  148. {
  149. title: "分配时间",
  150. dataIndex: "taskDate",
  151. key: "taskDate",
  152. },
  153. {
  154. title: "任务数量",
  155. dataIndex: "commodityQuantity",
  156. key: "commodityQuantity",
  157. },
  158. {
  159. title: "任务责任人",
  160. dataIndex: "receiverName",
  161. key: "receiverName",
  162. },
  163. {
  164. title: "订单部门",
  165. dataIndex: "depName",
  166. key: "depName",
  167. },
  168. ],
  169. dataSource: [],
  170. searchTime: [],
  171. columnsX: [
  172. {
  173. title: "业务项目名称",
  174. dataIndex: "commodityName",
  175. key: "commodityName",
  176. render: (text, record) => {
  177. return (
  178. <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span></span>
  179. )
  180. }
  181. },
  182. {
  183. title: "项目类别",
  184. dataIndex: "cname",
  185. key: "cname",
  186. },
  187. {
  188. title: "项目数量",
  189. dataIndex: "commodityQuantity",
  190. key: "commodityQuantity",
  191. render: (text, record) => {
  192. if (record.splitStatus == 1) {
  193. return (
  194. <span>
  195. {text}{" "}
  196. <Tag
  197. color="#108ee9"
  198. onClick={(e) => {
  199. e.stopPropagation();
  200. this.showRes(record);
  201. }}
  202. >
  203. 已拆
  204. </Tag>
  205. </span>
  206. );
  207. } else {
  208. return text;
  209. }
  210. },
  211. },
  212. {
  213. title: "金额(万元)",
  214. dataIndex: "commodityPrice",
  215. key: "commodityPrice",
  216. render: (text, record) => {
  217. return (
  218. <span>
  219. {this.props.isZxs || text === -1 ? '***' : text}
  220. </span>
  221. )
  222. }
  223. },
  224. {
  225. title: "负责人",
  226. dataIndex: "contacts",
  227. key: "contacts",
  228. },
  229. {
  230. title: "负责人电话",
  231. dataIndex: "contactsMobile",
  232. key: "contactsMobile",
  233. },
  234. {
  235. title: "主要项目",
  236. dataIndex: "main",
  237. key: "main",
  238. render: (text) => {
  239. return text ? "是" : "否";
  240. },
  241. },
  242. {
  243. title: "总年限",
  244. dataIndex: "yearSum",
  245. key: "yearSum",
  246. render: (text, record) => {
  247. return (
  248. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  249. );
  250. }
  251. },
  252. {
  253. title: "年限",
  254. dataIndex: "serviceLife",
  255. key: "serviceLife",
  256. render: (text, record) => {
  257. return (
  258. !!text && JSON.parse(text).map(item =>
  259. <div>{item}</div>
  260. )
  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. processStatus: thisdata.processStatus, //流程状态
  591. liquidationStatus: thisdata.liquidationStatus, //结算状态
  592. approval: thisdata.approval, //特批状态
  593. orderRemarks: thisdata.orderRemarks, //订单留言
  594. salesmanName: thisdata.salesmanName, //营销员名称
  595. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  596. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  597. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  598. financeName: thisdata.financeName, //财务名称
  599. financeMobile: thisdata.financeMobile, //财务电话
  600. nowFinance: thisdata.nowFinance, //财务名称
  601. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  602. depName: thisdata.depName, //订单部门
  603. locationProvince: thisdata.locationProvince,
  604. locationCity: thisdata.locationCity,
  605. locationArea: thisdata.locationArea,
  606. ProvinceCity: ProvinceCityArr,
  607. postalAddress: thisdata.postalAddress, //详细地址
  608. outsource: thisdata.outsource,
  609. deleteSign: thisdata.deleteSign,
  610. });
  611. }
  612. }.bind(this),
  613. }).always(
  614. function () {
  615. this.setState({
  616. loading: false,
  617. });
  618. }.bind(this)
  619. );
  620. }
  621. //查看下证信息
  622. loaduserss(id) {
  623. $.ajax({
  624. method: "get",
  625. dataType: "json",
  626. crossDomain: false,
  627. url: globalConfig.context + "/api/admin/orderProject/selectTaskProgress",
  628. data: {
  629. tid: id,
  630. },
  631. success: function (data) {
  632. let theArr = [];
  633. let thisData = [];
  634. if (!thisData) {
  635. if (data.error && data.error.length) {
  636. message.warning(data.error[0].message);
  637. }
  638. } else {
  639. for (let i = 0; i < data.data.length; i++) {
  640. thisData = data.data[i];
  641. theArr.push({
  642. num: i + 1,
  643. key: i,
  644. id: thisData.id, //编号
  645. alreadyNumber: thisData.alreadyNumber, //下证数
  646. licenceTimes: thisData.licenceTimes, //下证时间
  647. notCount: thisData.notCount, //未下证数
  648. flag: true,
  649. });
  650. }
  651. this.setState({
  652. contactList: theArr,
  653. });
  654. }
  655. }.bind(this),
  656. }).always(
  657. function () {
  658. this.setState({
  659. loading: false,
  660. });
  661. }.bind(this)
  662. );
  663. }
  664. jiedianNew(orderNos) {
  665. $.ajax({
  666. method: "get",
  667. dataType: "json",
  668. crossDomain: false,
  669. url:
  670. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  671. data: {
  672. orderNo: orderNos,
  673. },
  674. success: function (data) {
  675. if (data.error && data.error.length) {
  676. message.warning(data.error[0].message);
  677. } else {
  678. let theArr = [];
  679. let thisData = [];
  680. let arr = data.data || [];
  681. let totalCui = 0;
  682. for (let i = 0; i < arr.length; i++) {
  683. thisData = arr[i];
  684. totalCui += +thisData.money;
  685. thisData.key = i;
  686. thisData.dunSubject = thisData.dunSubject
  687. ? thisData.dunSubject.toString()
  688. : "", //催款科目
  689. theArr.push(thisData);
  690. }
  691. if (!totalCui) {
  692. totalCui = 0;
  693. }
  694. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  695. this.setState({
  696. jiedianNew: theArr,
  697. totalCui,
  698. });
  699. }
  700. }.bind(this),
  701. }).always(
  702. function () {
  703. this.setState({
  704. loading: false,
  705. });
  706. }.bind(this)
  707. );
  708. }
  709. orderDetailData(orderNos) {
  710. this.setState({
  711. loading: true,
  712. });
  713. $.ajax({
  714. method: "get",
  715. dataType: "json",
  716. crossDomain: false,
  717. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  718. data: {
  719. orderNo: orderNos,
  720. },
  721. success: function (data) {
  722. if (data.error.length || data.data.list == "") {
  723. if (data.error && data.error.length) {
  724. message.warning(data.error[0].message);
  725. this.setState({
  726. loading: false,
  727. });
  728. }
  729. } else {
  730. let thisdata = data.data;
  731. this.setState({
  732. loading: false,
  733. orderUid: thisdata.uid,
  734. userName: thisdata.userName,
  735. primaryOrderNo: thisdata.primaryOrder,
  736. additionalOrder: thisdata.additionalOrder,
  737. contractNo: thisdata.contractNo,
  738. orderData: thisdata,
  739. isAddition: thisdata.additionalOrder ? true : false,
  740. contractPictureUrl: thisdata.contractPictureUrl
  741. ? splitUrl(
  742. thisdata.contractPictureUrl,
  743. ",",
  744. globalConfig.avatarHost + "/upload"
  745. )
  746. : [],
  747. deleteSign: thisdata.deleteSign,
  748. });
  749. }
  750. }.bind(this),
  751. });
  752. }
  753. //项目列表
  754. xiangmu(orderNos) {
  755. this.setState({
  756. loading: true,
  757. });
  758. $.ajax({
  759. method: "get",
  760. dataType: "json",
  761. crossDomain: false,
  762. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  763. data: {
  764. orderNo: orderNos,
  765. },
  766. success: function (data) {
  767. let theArr = [];
  768. if (data.error.length || data.data.list == "") {
  769. if (data.error && data.error.length) {
  770. message.warning(data.error[0].message);
  771. }
  772. } else {
  773. for (let i = 0; i < data.data.length; i++) {
  774. let thisdata = data.data[i];
  775. thisdata.key = i;
  776. theArr.push(thisdata);
  777. }
  778. }
  779. this.setState({
  780. dataSourceX: theArr,
  781. });
  782. }.bind(this),
  783. }).always(
  784. function () {
  785. this.setState({
  786. loading: false,
  787. });
  788. }.bind(this)
  789. );
  790. }
  791. rizhi() {
  792. this.setState({
  793. loading: true,
  794. });
  795. $.ajax({
  796. method: "get",
  797. dataType: "json",
  798. crossDomain: false,
  799. url: "/api/admin/newOrder/selectOrderLog",
  800. data: {
  801. orderNo: this.props.orderNo,
  802. },
  803. success: function (data) {
  804. let theArr = [];
  805. let thisData = data.data;
  806. if (!thisData.length) {
  807. if (data.error && data.error.length) {
  808. message.warning(data.error[0].message);
  809. }
  810. } else {
  811. for (let i = 0; i < data.data.length; i++) {
  812. let thisdata = data.data[i];
  813. theArr.push({
  814. processName: thisdata.processName,
  815. adminName: thisdata.adminName,
  816. createDate: thisdata.createDate,
  817. remarks: thisdata.remarks,
  818. });
  819. }
  820. }
  821. this.setState({
  822. dataSourceY: theArr,
  823. });
  824. }.bind(this),
  825. }).always(
  826. function () {
  827. this.setState({
  828. loading: false,
  829. });
  830. }.bind(this)
  831. );
  832. }
  833. getOrderLog() {
  834. this.setState({
  835. avisible: true,
  836. });
  837. this.rizhi();
  838. }
  839. componentDidMount() {
  840. if (this.props.taskName.substring(0, 5) === "软件著作权") {
  841. this.setState({
  842. isSoftware: true,
  843. })
  844. }
  845. this.setState({
  846. isIso: this.props.taskName.indexOf("贯标") !== -1,
  847. })
  848. this.departmentList();
  849. this.xiangqing(this.props.id);
  850. this.xiangqings(this.props.orderNo);
  851. this.xiangmu(this.props.orderNo);
  852. this.loaduserss(this.props.id);
  853. }
  854. render() {
  855. return (
  856. this.props.visible ? <Modal
  857. maskClosable={false}
  858. className="customeDetails"
  859. footer=""
  860. title=""
  861. width="900px"
  862. visible={this.props.visible}
  863. onOk={() => {
  864. this.props.visitOk && this.props.visitOk()
  865. }}
  866. onCancel={() => {
  867. this.props.visitCancel && this.props.visitCancel();
  868. }}
  869. >
  870. <Tabs activeKey={this.state.activeKey} onChange={this.orderChange} tabBarExtraContent={
  871. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  872. <OrderItemStatus deleteSign={this.state.deleteSign} />
  873. </div>
  874. }>
  875. <TabPane tab="项目概况" key="1">
  876. {this.state.activeKey === "1" ? <Form
  877. layout="horizontal"
  878. id="demand-form"
  879. style={{ paddingBottom: "0px" }}
  880. >
  881. <Spin spinning={this.state.loading}>
  882. <div className="clearfix">
  883. <div className="clearfix">
  884. <FormItem
  885. className="half-item"
  886. {...formItemLayout}
  887. label="项目状态"
  888. >
  889. <span>{getProjectName(parseInt(this.state.projectStatus))}</span>
  890. <Button
  891. type="primary"
  892. size="small"
  893. style={{ marginTop: "5px", position: "absolute" }}
  894. onClick={this.caozuorizhi}
  895. >
  896. 操作日志
  897. </Button>
  898. {this.state.visibleA ? <Modal
  899. maskClosable={false}
  900. width="800px"
  901. visible={this.state.visibleA}
  902. onCancel={() => {
  903. this.setState({
  904. visibleA: false
  905. })
  906. }}
  907. title="操作日志"
  908. footer=""
  909. className="admin-desc-content"
  910. >
  911. <div className="patent-table patent-table-center">
  912. <Spin spinning={this.state.loading}>
  913. <Table
  914. columns={this.state.columnsA}
  915. dataSource={this.state.dataSourceA}
  916. pagination={false}
  917. bordered
  918. size="small"
  919. />
  920. </Spin>
  921. </div>
  922. </Modal> : null}
  923. </FormItem>
  924. <FormItem
  925. className="half-item"
  926. {...formItemLayout}
  927. label="合同编号"
  928. >
  929. <span>{this.state.contractNo}</span>
  930. </FormItem>
  931. </div>
  932. <div className="clearfix">
  933. <FormItem
  934. className="half-item"
  935. {...formItemLayout}
  936. label="是否特批"
  937. >
  938. <span>{getApproval(this.state.approval)}</span>
  939. </FormItem>
  940. <FormItem
  941. className="half-item"
  942. {...formItemLayout}
  943. label="结算状态"
  944. >
  945. <span>
  946. {getLiquidationStatus(this.state.liquidationStatus)}
  947. </span>
  948. </FormItem>
  949. <FormItem
  950. className="half-item"
  951. {...formItemLayout}
  952. label="流程状态"
  953. >
  954. <span>
  955. {getProcessStatus(this.state.processStatus)}
  956. </span>
  957. </FormItem>
  958. <FormItem
  959. className="half-item"
  960. {...formItemLayout}
  961. label="订单编号"
  962. >
  963. <span>{this.state.orderNo}</span>
  964. </FormItem>
  965. <FormItem
  966. className="half-item"
  967. {...formItemLayout}
  968. label="是否外包"
  969. >
  970. <span>{this.state.outsource === 0 ? "否" : "是"}</span>
  971. </FormItem>
  972. </div>
  973. <div className="clearfix">
  974. <FormItem
  975. className="half-item"
  976. {...formItemLayout}
  977. label="满意度表格"
  978. >
  979. <span>
  980. {utils.getSatisfaction(this.state.formRetrieve)}
  981. </span>
  982. </FormItem>
  983. <FormItem
  984. className="half-item"
  985. {...formItemLayout}
  986. label="(满意度)备注"
  987. >
  988. <span>{this.state.retrieveContent}</span>
  989. </FormItem>
  990. </div>
  991. {/*软著显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  992. {this.state.bpType === 2 ? <div className="clearfix">
  993. <FormItem
  994. className="half-item"
  995. {...formItemLayout}
  996. label="加急天数"
  997. >
  998. {
  999. this.state.urgentDay === 1 ? '是' :
  1000. this.state.urgentDay === 0 ? '否' : ''
  1001. }
  1002. </FormItem>
  1003. <FormItem
  1004. className="half-item"
  1005. {...formItemLayout}
  1006. label="有无材料"
  1007. >
  1008. {
  1009. this.state.ifMaterial === 1 ? '是' :
  1010. this.state.ifMaterial === 0 ? '否' : ''
  1011. }
  1012. </FormItem>
  1013. </div> : null}
  1014. <div className="clearfix">
  1015. <div style={{
  1016. paddingLeft: '8%',
  1017. }}>
  1018. <div style={{ color: '#000', fontWeight: 500 }}>
  1019. 特别说明
  1020. <span style={{ color: '#58a3ff', }}>(针对项目的特殊情况说明)</span>
  1021. </div>
  1022. <div style={{
  1023. display: 'flex',
  1024. }}>
  1025. <span style={{ paddingRight: '10px', whiteSpace: "nowrap" }}>备注:</span>
  1026. <span style={{
  1027. flex: 1,
  1028. wordBreak: 'break-all',
  1029. }}>{this.state.specialComment}</span>
  1030. </div>
  1031. </div>
  1032. </div>
  1033. <div className="clearfix">
  1034. <h3 className="sub-title">任务信息</h3>
  1035. {/*0通用 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1036. {/*贯标需要显示*/}
  1037. {
  1038. this.state.isIso ?
  1039. <div>
  1040. <FormItem
  1041. className="half-item"
  1042. {...formItemLayout}
  1043. label="认证费"
  1044. >
  1045. <span>
  1046. {
  1047. this.state.ifCertificationFee === 1 ? '包含' : '不包含'
  1048. }
  1049. </span>
  1050. </FormItem>
  1051. {this.state.ifCertificationFee === 1 ? <FormItem
  1052. className="half-item"
  1053. {...formItemLayout}
  1054. label="认证费(万元)"
  1055. >
  1056. <span>
  1057. {
  1058. this.state.certificationFee
  1059. }
  1060. </span>
  1061. </FormItem> : null}
  1062. {this.state.ifCertificationFee === 1 ? <FormItem
  1063. className="half-item"
  1064. {...formItemLayout}
  1065. label=""
  1066. /> : null}
  1067. {this.state.ifCertificationFee === 1 ? <FormItem
  1068. className="half-item"
  1069. {...formItemLayout}
  1070. label="付款公司名称"
  1071. >
  1072. <span>
  1073. {this.state.certificationCorporate}
  1074. </span>
  1075. </FormItem> : null}
  1076. </div> : null
  1077. }
  1078. <FormItem
  1079. className="half-item"
  1080. {...formItemLayout}
  1081. label="任务编号"
  1082. >
  1083. <span>
  1084. {
  1085. this.state.splitStatus === 2
  1086. ? this.state.splitSuper + "-" + this.state.splitId
  1087. : this.state.id
  1088. }
  1089. </span>
  1090. </FormItem>
  1091. <FormItem
  1092. className="half-item"
  1093. {...formItemLayout}
  1094. label="任务名称"
  1095. >
  1096. <span>{this.state.taskName}</span>
  1097. </FormItem>
  1098. <FormItem
  1099. className="half-item"
  1100. {...formItemLayout}
  1101. label="任务状态"
  1102. >
  1103. <span>{getTaskStatus(this.state.taskStatus)}</span>
  1104. </FormItem>
  1105. <FormItem
  1106. className="half-item"
  1107. {...formItemLayout}
  1108. label="任务类别"
  1109. >
  1110. <span>{this.state.cname}</span>
  1111. </FormItem>
  1112. <FormItem
  1113. className="half-item"
  1114. {...formItemLayout}
  1115. label="证书编号"
  1116. >
  1117. <span>{this.state.certificateNumber}</span>
  1118. </FormItem>
  1119. </div>
  1120. <div className="clearfix">
  1121. <h3 className="sub-title">联系信息</h3>
  1122. <FormItem
  1123. className="half-item"
  1124. {...formItemLayout}
  1125. label="客户名称"
  1126. >
  1127. <span>{this.state.userName}</span>
  1128. <EnterpriseNameChange
  1129. type='journal'
  1130. style={{ marginLeft: 10 }}
  1131. enterpriseId={this.state.orderUid} />
  1132. </FormItem>
  1133. <FormItem
  1134. className="half-item"
  1135. {...formItemLayout}
  1136. label="企业法人"
  1137. >
  1138. <span>{this.state.legalPerson}</span>
  1139. </FormItem>
  1140. <FormItem
  1141. className="half-item"
  1142. {...formItemLayout}
  1143. label="法人电话"
  1144. >
  1145. <span>{this.state.legalPersonTel}</span>
  1146. </FormItem>
  1147. <FormItem
  1148. className="half-item"
  1149. {...formItemLayout}
  1150. label="客户联系人"
  1151. >
  1152. <span>{this.state.contacts}</span>
  1153. </FormItem>
  1154. <FormItem
  1155. className="half-item"
  1156. {...formItemLayout}
  1157. label="联系人电话"
  1158. >
  1159. <span>{this.state.contactMobile}</span>
  1160. </FormItem>
  1161. <FormItem
  1162. className="half-item"
  1163. {...formItemLayout}
  1164. label="企业地址"
  1165. >
  1166. <span>
  1167. {getprovince(this.state.locationProvince)}/
  1168. {getprovince(this.state.locationCity)}/
  1169. {getprovince(this.state.locationArea)}
  1170. </span>
  1171. </FormItem>
  1172. <FormItem
  1173. className="half-item"
  1174. {...formItemLayout}
  1175. label=""
  1176. />
  1177. <FormItem className="half-item" {...formItemLayout}>
  1178. <span style={{ paddingLeft: "12em" }}>
  1179. {this.state.postalAddress}
  1180. </span>
  1181. </FormItem>
  1182. </div>
  1183. <div className="clearfix">
  1184. <h3 className="sub-title">订单负责人信息</h3>
  1185. <FormItem
  1186. className="half-item"
  1187. {...formItemLayout}
  1188. label="负责人"
  1189. >
  1190. <span>
  1191. {this.state.salesmanName +
  1192. "(" +
  1193. this.state.depName +
  1194. ")"}
  1195. </span>
  1196. </FormItem>
  1197. <FormItem
  1198. className="half-item"
  1199. {...formItemLayout}
  1200. label="负责人电话"
  1201. >
  1202. <span>{this.state.salesmanMobile}</span>
  1203. </FormItem>
  1204. <FormItem
  1205. className="half-item"
  1206. {...formItemLayout}
  1207. label="当前财务负责人"
  1208. >
  1209. <span>{this.state.nowFinance}</span>
  1210. </FormItem>
  1211. <FormItem
  1212. className="half-item"
  1213. {...formItemLayout}
  1214. label="当前财务负责人电话"
  1215. >
  1216. <span>{this.state.nowFinanceMobile}</span>
  1217. </FormItem>
  1218. {!this.state.isSoftware ? <div>
  1219. <FormItem
  1220. className="half-item"
  1221. {...formItemLayout}
  1222. style={{ opacity: ".5" }}
  1223. label="原负责人"
  1224. >
  1225. <span>{this.state.oldSalesmanName}</span>
  1226. </FormItem>
  1227. <FormItem
  1228. className="half-item"
  1229. {...formItemLayout}
  1230. style={{ opacity: ".5" }}
  1231. label="原负责人电话"
  1232. >
  1233. <span>{this.state.oldSalesmanMobile}</span>
  1234. </FormItem>
  1235. <FormItem
  1236. className="half-item"
  1237. {...formItemLayout}
  1238. style={{ opacity: ".5" }}
  1239. label="实际财务操作人"
  1240. >
  1241. <span>{this.state.financeName}</span>
  1242. </FormItem>
  1243. <FormItem
  1244. className="half-item"
  1245. {...formItemLayout}
  1246. style={{ opacity: ".5" }}
  1247. label="实际财务操作人电话"
  1248. >
  1249. <span>{this.state.financeMobile}</span>
  1250. </FormItem>
  1251. </div> : null}
  1252. <FormItem
  1253. className="half-item"
  1254. {...formItemLayout}
  1255. label="订单留言"
  1256. >
  1257. <span>{this.state.orderRemarks}</span>
  1258. </FormItem>
  1259. <FormItem
  1260. className="half-item"
  1261. {...formItemLayout}
  1262. label=""
  1263. >
  1264. <Button onClick={this.getOrderLog}>查看订单日志</Button>
  1265. </FormItem>
  1266. <OrderRiZi
  1267. dataSourcerizhi={this.state.dataSourceY}
  1268. closeOrderLog={() => {
  1269. this.setState({
  1270. avisible: false
  1271. })
  1272. }}
  1273. visible={this.state.avisible}
  1274. loading={this.state.loading}
  1275. />
  1276. </div>
  1277. {!this.state.isSoftware ? <div className="clearfix">
  1278. <h3 className="sub-title">申报系统账户信息</h3>
  1279. <FormItem
  1280. className="half-item"
  1281. {...formItemLayout}
  1282. label="用户名"
  1283. >
  1284. <span>{this.state.declareUser}</span>
  1285. </FormItem>
  1286. <FormItem
  1287. className="half-item"
  1288. {...formItemLayout}
  1289. label="密码"
  1290. >
  1291. <span>{this.state.declarePwd}</span>
  1292. </FormItem>
  1293. </div> : null}
  1294. {this.state.isSoftware ?
  1295. <div className="clearfix">
  1296. <h3 className="sub-title">项目申报进度</h3>
  1297. <DeclarationProgress
  1298. timeRecordparse={this.state.timeRecordparse}
  1299. startDate={this.state.startDate}
  1300. taskDate={this.state.taskDate}
  1301. list={[
  1302. { id: 4, name: '完成时间', value: this.state.endDate },
  1303. { id: 6, name: '受理时间', value: this.state.acceptDate },
  1304. { id: 8, name: '公示时间', value: this.state.publicityDate },
  1305. { id: 10, name: '发证时间', value: this.state.licenceDate },
  1306. { id: 15, name: '立项金额', value: this.state.setUpAmount }
  1307. ]} />
  1308. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1309. {/*cSort: 3 科技项目 6: 会员*/}
  1310. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  1311. className="half-item"
  1312. {...formItemLayout}
  1313. label="申报批次"
  1314. >
  1315. <span>{this.state.declarationBatch}</span>
  1316. </FormItem>}
  1317. <FormItem
  1318. className="half-item"
  1319. {...formItemLayout}
  1320. label="软著派单数量"
  1321. >
  1322. <span>{this.state.commodityQuantity}</span>
  1323. </FormItem>
  1324. <div className="patent-table patent-table-center">
  1325. <Spin spinning={this.state.loading}>
  1326. <Table
  1327. columns={this.state.ContactsLists}
  1328. dataSource={this.state.contactList}
  1329. pagination={false}
  1330. bordered
  1331. size="small"
  1332. />
  1333. </Spin>
  1334. </div>
  1335. </div> :
  1336. <div className="clearfix">
  1337. <h3 className="sub-title">项目申报进度</h3>
  1338. <DeclarationProgress
  1339. timeRecordparse={this.state.timeRecordparse}
  1340. startDate={this.state.startDate}
  1341. taskDate={this.state.taskDate}
  1342. list={[
  1343. { id: 4, name: '完成时间', value: this.state.endDate },
  1344. { id: 6, name: '受理时间', value: this.state.acceptDate },
  1345. { id: 8, name: '公示时间', value: this.state.publicityDate },
  1346. { id: 10, name: '发证时间', value: this.state.licenceDate },
  1347. { id: 15, name: '立项金额', value: this.state.setUpAmount }
  1348. ]} />
  1349. {
  1350. this.state.bpType === 1 || this.state.bpType === 6 ?
  1351. <div>
  1352. <FormItem
  1353. labelCol={{ span: 3 }}
  1354. wrapperCol={{ span: 16 }}
  1355. label="是否高新企业"
  1356. >
  1357. <span>
  1358. {
  1359. this.state.highTechStatus === 1 ? '是' :
  1360. this.state.highTechStatus === 0 ? '否' : ''
  1361. }
  1362. </span>
  1363. </FormItem>
  1364. <FormItem />
  1365. <PatentSchedule
  1366. readOnly
  1367. bpType={this.state.bpType}
  1368. taskId={this.state.id}
  1369. acceptCount={this.state.acceptCount}
  1370. certificatesCount={this.state.certificatesCount}
  1371. rejectCount={this.state.rejectCount}
  1372. commodityQuantity={this.state.commodityQuantity}
  1373. refresh={() => { this.xiangqing(this.state.id) }}
  1374. />
  1375. </div> :
  1376. <div>
  1377. {/*高新显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1378. {this.state.bpType === 5 ? <FormItem
  1379. className="half-item"
  1380. {...formItemLayout}
  1381. label="是否抽查">
  1382. {
  1383. this.state.spotCheckStatus === 0 ? '否' :
  1384. this.state.spotCheckStatus === 1 ? '是,未通过' :
  1385. this.state.spotCheckStatus === 2 ? '是,通过' : ''
  1386. }
  1387. </FormItem> : null}
  1388. <FormItem />
  1389. {this.state.bpType === 5 ? <FormItem
  1390. className="half-item"
  1391. {...formItemLayout}
  1392. label="是否立项"
  1393. >
  1394. {
  1395. this.state.setUpStatus === 1 ? '是' :
  1396. this.state.setUpStatus === 0 ? '否' : ''
  1397. }
  1398. </FormItem> : null}
  1399. {this.state.bpType === 5 ? <FormItem
  1400. className="half-item"
  1401. {...formItemLayout}
  1402. label={this.state.setUpStatus === 1 ? "立项时间" : ''}
  1403. >
  1404. {this.state.setUpStatus === 1 ? this.state.setUpTime : null}
  1405. </FormItem> : null}
  1406. {/*高新和科技项目显示 bpType: 0 正常 1专利 2软著 3审计 4双软 5高新 6商标*/}
  1407. {/*cSort: 3 科技项目 6: 会员*/}
  1408. {(this.state.bpType === 5 || this.state.cSort === 3) && <FormItem
  1409. className="half-item"
  1410. {...formItemLayout}
  1411. label="申报批次"
  1412. >
  1413. <span>{this.state.declarationBatch}</span>
  1414. </FormItem>}
  1415. {/*只有科技项目才有是否到款*/}
  1416. {/*cSort: 3 科技项目 6: 会员*/}
  1417. {this.state.cSort === 3 && <FormItem
  1418. className="half-item"
  1419. {...formItemLayout}
  1420. label="是否到款"
  1421. >
  1422. <span>
  1423. {this.state.arrivalMoney ? "已到企业" : "未到企业"}
  1424. </span>
  1425. </FormItem>}
  1426. </div>
  1427. }
  1428. </div>}
  1429. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1430. <FormItem
  1431. labelCol={{ span: 3 }}
  1432. wrapperCol={{ span: 18 }}
  1433. label="附件"
  1434. >
  1435. {this.state.visible && this.state.attachmentUrl && this.state.activeKey === "1" ? <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1436. <ImgList fileList={this.state.attachmentUrl} domId={'taskQuery1'} />
  1437. </div> : null}
  1438. </FormItem>
  1439. </div> : null}
  1440. {this.state.bpType !== 1 && this.state.bpType !== 6 ? <div className="clearfix">
  1441. <FormItem
  1442. labelCol={{ span: 3 }}
  1443. wrapperCol={{ span: 16 }}
  1444. label="项目说明"
  1445. >
  1446. <span>{this.state.taskComment}</span>
  1447. </FormItem>
  1448. </div> : null}
  1449. <div>
  1450. <h3 className="sub-title">项目业务</h3>
  1451. {this.state.processStatus === 0 ? (
  1452. <Button
  1453. type="primary"
  1454. onClick={this.addDetailed}
  1455. style={{
  1456. float: "right",
  1457. marginRight: "50px",
  1458. marginBottom: "15px",
  1459. }}
  1460. >
  1461. 添加项目明细
  1462. </Button>
  1463. ) : null}
  1464. </div>
  1465. <div className="patent-table">
  1466. <Spin spinning={this.state.loading}>
  1467. <Table
  1468. columns={this.state.columnsX}
  1469. dataSource={this.state.dataSourceX}
  1470. pagination={this.state.paginations}
  1471. onRowClick={this.tableRowClickX}
  1472. style={{
  1473. cursor: 'pointer',
  1474. }}
  1475. bordered
  1476. size="small"
  1477. />
  1478. </Spin>
  1479. </div>
  1480. </div>
  1481. </Spin>
  1482. </Form> : null}
  1483. </TabPane>
  1484. {!this.props.isZxs || (this.state.isHuiyuan && this.props.isZxs) ? (
  1485. <TabPane tab="订单详情" key="2">
  1486. {this.state.activeKey === "2" ? <Spin spinning={this.state.loading}>
  1487. <OrderDetail
  1488. orderUid={this.state.orderUid}
  1489. orderData={this.state.orderData}
  1490. getOrderLog={this.getOrderLog}
  1491. dataSourceX={this.state.dataSourceX}
  1492. contactList={this.state.jiedian}
  1493. orderNo={this.state.orderNo}
  1494. totalCui={this.state.totalCui}
  1495. contactListNew={this.state.jiedianNew}
  1496. pictureUrl={this.state.contractPictureUrl}
  1497. />
  1498. </Spin> : null}
  1499. <OrderRiZi
  1500. dataSourcerizhi={this.state.dataSourceY}
  1501. closeOrderLog={() => {
  1502. this.setState({
  1503. avisible: false
  1504. })
  1505. }}
  1506. visible={this.state.avisible}
  1507. loading={this.state.loading}
  1508. />
  1509. </TabPane>
  1510. ) : null}
  1511. </Tabs>
  1512. </Modal> : null
  1513. );
  1514. }
  1515. }
  1516. export default ProjectDetails;