projectDetails.jsx 78 KB

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