contractYxy.js 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546
  1. import React from "react";
  2. import { Button, Input, Spin, Table, message, Form, Modal, Tabs, Tooltip, } from "antd";
  3. import $ from "jquery/src/ajax";
  4. import {
  5. getNewOrderStatus,
  6. getProcessStatusNew,
  7. splitUrl,
  8. getjiedian,
  9. getboutique,
  10. getCuikuan,
  11. getProjectStatus,
  12. getContractChangeStatus,
  13. ShowModal,
  14. getType
  15. } from "@/tools.js";
  16. import "./customer.less";
  17. import { SearchInput } from "./changeComponent/searchInput.js";
  18. import { ChangeDetail } from "./changeComponent/changeDetailYxy.js";
  19. import AddOrders from "./addorders.js";
  20. import OrderDetail from "./changeComponent/orderDetail";
  21. import ChangeApply from "./changeComponent/changeApply";
  22. import { ChooseList } from "./chooseList.jsx";
  23. import ShowModalDiv from "@/showModal.jsx";
  24. import OrderRiZi from "@/orderRiZi.jsx";
  25. import { getProjectName } from "../../../tools";
  26. import ProjectDetailsReadOnly from "../../../common/projectDetailsReadOnly";
  27. import NewEditProject from "../../../common/projectOperation/newEditProject";
  28. import OrderItemStatus from "../../../common/orderItemStatus";
  29. const contractChange = Form.create()(
  30. React.createClass({
  31. loadData(pageNo) {
  32. this.setState({
  33. loading: true
  34. });
  35. $.ajax({
  36. method: "get",
  37. dataType: "json",
  38. crossDomain: false,
  39. url: globalConfig.context + "/api/admin/orderChange/orderChangeList",
  40. data: {
  41. pageNo: pageNo || 1,
  42. pageSize: this.state.pagination.pageSize,
  43. userName: this.state.searchData.userNameSearch,
  44. processState: this.props.processState,
  45. timeType: this.state.searchData.timeTypeSearch,
  46. startTime: this.state.searchData.releaseDate[0],
  47. endTime: this.state.searchData.releaseDate[1],
  48. salesmanName: this.state.searchData.salesmanNameSearch,
  49. complete: this.state.searchData.completeSearch || 1,
  50. deps: this.state.searchData.deps,
  51. orderNo: this.state.searchData.orderNoSearch,
  52. contractNo: this.state.searchData.contractNoSearch,
  53. type: this.state.searchData.changeSearch
  54. },
  55. success: function (data) {
  56. ShowModal(this);
  57. let theArr = [];
  58. if (data.error.length || data.data.list == "") {
  59. if (data.error && data.error.length) {
  60. message.warning(data.error[0].message);
  61. }
  62. } else {
  63. for (let i = 0; i < data.data.list.length; i++) {
  64. let thisdata = data.data.list[i];
  65. theArr.push({
  66. key: i,
  67. orderNo: thisdata.orderNo,
  68. createTimes: thisdata.createTimes,
  69. nickname: thisdata.nickname,
  70. orderType: thisdata.orderType,
  71. establishTimes: thisdata.establishTimes,
  72. orderStatus: thisdata.orderStatus,
  73. totalAmount: thisdata.totalAmount,
  74. settlementAmount: thisdata.settlementAmount,
  75. arrears: thisdata.arrears,
  76. salesmanName: thisdata.salesmanName,
  77. depName: thisdata.depName,
  78. processState: thisdata.processState,
  79. type: thisdata.type,
  80. status: thisdata.status,
  81. id: thisdata.id,
  82. contractNo: thisdata.contractNo,
  83. processStateText: getProcessStatusNew(
  84. thisdata.examineName,
  85. thisdata.processState,
  86. thisdata.status
  87. )
  88. });
  89. }
  90. this.state.pagination.total = data.data.totalCount;
  91. this.state.pagination.current = data.data.pageNo;
  92. }
  93. if (data.data && data.data.list && !data.data.list.length) {
  94. this.state.pagination.total = 0;
  95. }
  96. this.setState({
  97. dataSource: theArr,
  98. pageNo: pageNo,
  99. pagination: this.state.pagination
  100. });
  101. }.bind(this)
  102. }).always(
  103. function () {
  104. this.setState({
  105. loading: false
  106. });
  107. }.bind(this)
  108. );
  109. },
  110. getInitialState() {
  111. return {
  112. page: 1,
  113. searchData: {
  114. releaseDate: []
  115. },
  116. declarationBatch: 1,
  117. dataInfor: {},
  118. primaryOrderData: {}, //原订单数据
  119. orderData: {}, //现订单数据
  120. pictureUrl: [],
  121. voucherUrl: [],
  122. attachment: [],
  123. buttonStatusA: true,
  124. attachmentUrl: [],
  125. proceedsData: {},
  126. proTotal: 0,
  127. invTotal: 0,
  128. contractData: {},
  129. // 回收退票数据
  130. refundInvoice: [],
  131. RefundInvoice: [],
  132. paginations: false,
  133. activeKey: "a",
  134. confirmLoading: false,
  135. aloading: false,
  136. pagination: {
  137. defaultCurrent: 1,
  138. defaultPageSize: 10,
  139. showQuickJumper: true,
  140. pageSize: 10,
  141. onChange: function (page) {
  142. this.loadData(page);
  143. }.bind(this),
  144. showTotal: function (total) {
  145. return "共" + total + "条数据";
  146. }
  147. },
  148. columns: [
  149. {
  150. title: "合同编号",
  151. dataIndex: "contractNo",
  152. key: "contractNo"
  153. },
  154. {
  155. title: "订单编号",
  156. dataIndex: "orderNo",
  157. key: "orderNo"
  158. },
  159. {
  160. title: "客户名称",
  161. dataIndex: "nickname",
  162. key: "nickname",
  163. width: 150,
  164. render: (text) => {
  165. return (
  166. <Tooltip title={text}>
  167. <div style={{
  168. maxWidth: '150px',
  169. overflow: 'hidden',
  170. textOverflow: "ellipsis",
  171. whiteSpace: 'nowrap',
  172. }}>{text}</div>
  173. </Tooltip>
  174. )
  175. },
  176. },
  177. {
  178. title: "订单部门",
  179. dataIndex: "depName",
  180. key: "depName"
  181. },
  182. {
  183. title: "订单类型",
  184. dataIndex: "orderType",
  185. key: "orderType",
  186. render: text => {
  187. return text ? "科技项目" : "认证项目";
  188. }
  189. },
  190. {
  191. title: "下单时间",
  192. dataIndex: "establishTimes",
  193. key: "establishTimes"
  194. },
  195. {
  196. title: "订单状态",
  197. dataIndex: "orderStatus",
  198. key: "orderStatus",
  199. render: text => {
  200. return getNewOrderStatus(text);
  201. }
  202. },
  203. {
  204. title: "合同额(万元)",
  205. dataIndex: "totalAmount",
  206. key: "totalAmount"
  207. },
  208. {
  209. title: "已付额(万元)",
  210. dataIndex: "settlementAmount",
  211. key: "settlementAmount"
  212. },
  213. {
  214. title: "欠款(万元)",
  215. dataIndex: "arrears",
  216. key: "arrears"
  217. },
  218. {
  219. title: "订单负责人",
  220. dataIndex: "salesmanName",
  221. key: "salesmanName"
  222. },
  223. {
  224. title: "变更类型",
  225. dataIndex: "type",
  226. key: "type",
  227. render: text => {
  228. return getType(text);
  229. }
  230. },
  231. {
  232. title: "审核状态",
  233. dataIndex: "processStateText",
  234. key: "processStateText"
  235. },
  236. {
  237. title: "提交时间",
  238. dataIndex: "createTimes",
  239. key: "createTimes"
  240. }
  241. ],
  242. dataSource: [],
  243. // 传递给子组件的
  244. dataProps: [],
  245. columnsX: [
  246. {
  247. title: "业务项目名称",
  248. dataIndex: "commodityName",
  249. key: "commodityName",
  250. render: (text, record) => {
  251. return (
  252. <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span></span>
  253. )
  254. }
  255. },
  256. {
  257. title: "项目类别",
  258. dataIndex: "cname",
  259. key: "cname"
  260. },
  261. {
  262. title: "项目数量",
  263. dataIndex: "commodityQuantity",
  264. key: "commodityQuantity"
  265. },
  266. {
  267. title: "金额(万元)",
  268. dataIndex: "commodityPrice",
  269. key: "commodityPrice"
  270. },
  271. {
  272. title: "负责人",
  273. dataIndex: "contacts",
  274. key: "contacts"
  275. },
  276. {
  277. title: "负责人电话",
  278. dataIndex: "contactsMobile",
  279. key: "contactsMobile"
  280. },
  281. {
  282. title: "项目状态",
  283. dataIndex: "projectStatus",
  284. key: "projectStatus",
  285. render: text => {
  286. return getProjectName(text);
  287. }
  288. },
  289. {
  290. title: "主要项目",
  291. dataIndex: "main",
  292. key: "main",
  293. render: text => {
  294. return text ? "是" : "否";
  295. }
  296. },
  297. {
  298. title: "总年限",
  299. dataIndex: "yearSum",
  300. key: "yearSum",
  301. render: (text, record) => {
  302. return (
  303. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  304. );
  305. }
  306. },
  307. {
  308. title: "年限",
  309. dataIndex: "serviceLife",
  310. key: "serviceLife",
  311. render: (text, record) => {
  312. return (
  313. <div>{!!text && JSON.parse(text).toString()}</div>
  314. );
  315. }
  316. },
  317. {
  318. title: "本次派单",
  319. dataIndex: "serviceYear",
  320. key: "serviceYear",
  321. render: (text, record) => {
  322. return (
  323. <div>{!text ? "" : text}</div>
  324. );
  325. }
  326. },
  327. {
  328. title: "项目说明",
  329. dataIndex: "taskComment",
  330. key: "taskComment",
  331. render: text => {
  332. return (
  333. <Tooltip title={text}>
  334. <div
  335. style={{
  336. width: 100,
  337. overflow: "hidden",
  338. whiteSpace: "nowrap",
  339. textOverflow: "ellipsis",
  340. }}
  341. >{text}</div>
  342. </Tooltip>
  343. )
  344. }
  345. }
  346. ],
  347. // 子组件改变的表格title数组
  348. changeList: undefined,
  349. columnsrizhi: [
  350. {
  351. title: "流程",
  352. dataIndex: "processName",
  353. key: "processName"
  354. },
  355. {
  356. title: "操作人",
  357. dataIndex: "adminName",
  358. key: "adminName"
  359. },
  360. {
  361. title: "时间",
  362. dataIndex: "createDate",
  363. key: "createDate"
  364. }
  365. ],
  366. dataSourceX: [],
  367. ContactsLists: [
  368. {
  369. title: "催款科目",
  370. dataIndex: "dunSubject",
  371. key: "dunSubject",
  372. render: text => {
  373. return getjiedian(text);
  374. }
  375. },
  376. {
  377. title: "金额(万元)",
  378. dataIndex: "money",
  379. key: "money"
  380. },
  381. {
  382. title: "催款状态",
  383. dataIndex: "dunStatus",
  384. key: "dunStatus",
  385. render: text => {
  386. return getCuikuan(text);
  387. }
  388. }
  389. ]
  390. };
  391. },
  392. //页面加载函数
  393. componentWillMount() {
  394. this.loadData();
  395. },
  396. //整行点击
  397. tableRowClick(record) {
  398. this.setState(
  399. {
  400. visible: true,
  401. type: record.type,
  402. status: record.status,
  403. buttonStatus: true,
  404. orderStatus: record.orderStatus,
  405. id: record.id,
  406. processStateText: record.processStateText,
  407. orderNo: record.orderNo
  408. },
  409. () => {
  410. this.xiangqing(record.orderNo);
  411. // this.ChangeDetail(this.state.id);
  412. this.createTabs()
  413. }
  414. );
  415. },
  416. //点击打卡项目详情
  417. tableRowClickX(record) {
  418. this.setState({
  419. jid: record.id, //项目ID
  420. kid: record.commodityId, //商品ID
  421. commodityName: record.commodityName, //金额
  422. commodityPrice: record.commodityPrice, //金额
  423. commodityQuantity: record.commodityQuantity, //数量
  424. taskComment: record.taskComment, //备注
  425. main: record.main.toString(), //是否为主要
  426. addnextVisible: true,
  427. dataInfor: record,
  428. addState: 0
  429. });
  430. },
  431. //项目详情关闭
  432. nextCancel() {
  433. this.setState({
  434. addnextVisible: false
  435. });
  436. },
  437. // 合同变更详情
  438. ChangeDetail(id) {
  439. let url = window.location.href.substring(7);
  440. $.ajax({
  441. method: "get",
  442. dataType: "json",
  443. crossDomain: false,
  444. url:
  445. globalConfig.context +
  446. "/api/admin/orderChange/orderChangeDetailsById",
  447. data: {
  448. id: id
  449. },
  450. success: function (data) {
  451. if (data.data) {
  452. let thisdata = data.data;
  453. Object.assign(thisdata, {
  454. id: this.state.id,
  455. userName: this.state.userName,
  456. processStateText: this.state.processStateText,
  457. contractNo: this.state.contractNo,
  458. startRemarks: thisdata.zxsRemarks
  459. });
  460. this.setState({
  461. contractData: thisdata,
  462. voucherUrl: thisdata.voucherUrl
  463. ? splitUrl(
  464. thisdata.voucherUrl,
  465. ",",
  466. globalConfig.avatarHost + "/upload",
  467. url
  468. )
  469. : [],
  470. attachment: thisdata.attachmentUrl
  471. ? splitUrl(
  472. thisdata.attachmentUrl,
  473. ",",
  474. globalConfig.avatarHost + "/upload",
  475. url
  476. )
  477. : [],
  478. contractPictureUrl: thisdata.contractPictureUrl
  479. ? splitUrl(
  480. thisdata.contractPictureUrl,
  481. ",",
  482. globalConfig.avatarHost + "/upload",
  483. url
  484. )
  485. : []
  486. });
  487. }
  488. }.bind(this)
  489. });
  490. $.ajax({
  491. method: "get",
  492. dataType: "json",
  493. crossDomain: false,
  494. url:
  495. globalConfig.context +
  496. "/api/admin/orderChange/listOrderInvoiceAndBill",
  497. data: {
  498. orderNo: this.state.orderNo
  499. },
  500. success: function (data) {
  501. if (!data.data) return;
  502. let proTotal = 0;
  503. let invTotal = 0;
  504. data.data.bill.forEach(item => {
  505. proTotal += item.transactionAmount;
  506. });
  507. data.data.invoice.forEach(item => {
  508. invTotal += item.amount;
  509. });
  510. this.setState({
  511. proceedsData: data.data,
  512. proTotal: (Math.round(proTotal * 1000000) / 1000000).toFixed(6),
  513. invTotal: (Math.round(invTotal * 1000000) / 1000000).toFixed(6),
  514. });
  515. }.bind(this)
  516. });
  517. $.ajax({
  518. method: "get",
  519. dataType: "json",
  520. crossDomain: false,
  521. url:
  522. globalConfig.context +
  523. "/api/admin/orderChange/listOrderRefundInvoice",
  524. data: {
  525. orderNo: this.state.orderNo
  526. },
  527. success: data => {
  528. if (!data) return;
  529. data.data.forEach(item => {
  530. item.load = true;
  531. });
  532. this.setState({
  533. refundInvoice: data.data
  534. });
  535. }
  536. });
  537. },
  538. //订单详情
  539. xiangqing(orderNos) {
  540. $.ajax({
  541. method: "get",
  542. dataType: "json",
  543. crossDomain: false,
  544. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  545. data: {
  546. orderNo: orderNos
  547. },
  548. success: function (data) {
  549. if (data.error.length || data.data.list == "") {
  550. if (data.error && data.error.length) {
  551. message.warning(data.error[0].message);
  552. }
  553. } else {
  554. let thisdata = data.data;
  555. this.setState(
  556. {
  557. orderUid: thisdata.uid,
  558. userName: thisdata.userName,
  559. primaryOrderNo: thisdata.primaryOrder,
  560. additionalOrder: thisdata.additionalOrder,
  561. contractNo: thisdata.contractNo,
  562. // arrears: thisdata.arrears,
  563. orderData: thisdata,
  564. isAddition: thisdata.additionalOrder ? true : false,
  565. deleteSign: thisdata.deleteSign,
  566. },
  567. () => {
  568. if (this.state.orderData.deleteSign !== 3) {
  569. this.xiangmu(this.state.orderNo);
  570. this.jiedian(this.state.orderNo);
  571. this.jiedianNew(this.state.orderNo);
  572. }
  573. }
  574. );
  575. }
  576. }.bind(this)
  577. });
  578. },
  579. // 原订单数据
  580. primaryOrder(primaryOrder) {
  581. $.ajax({
  582. method: "get",
  583. dataType: "json",
  584. crossDomain: false,
  585. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  586. data: {
  587. orderNo: primaryOrder
  588. },
  589. success: function (data) {
  590. if (data.error.length || data.data.list == "") {
  591. if (data.error && data.error.length) {
  592. message.warning(data.error[0].message);
  593. }
  594. } else {
  595. let thisdata = data.data;
  596. this.setState({
  597. primaryOrderData: thisdata
  598. });
  599. }
  600. }.bind(this)
  601. });
  602. },
  603. // 附加订单数据
  604. additionalOrder(additionalOrder) {
  605. $.ajax({
  606. method: "get",
  607. dataType: "json",
  608. crossDomain: false,
  609. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  610. data: {
  611. orderNo: additionalOrder
  612. },
  613. success: function (data) {
  614. if (data.error.length || data.data.list == "") {
  615. if (data.error && data.error.length) {
  616. message.warning(data.error[0].message);
  617. }
  618. } else {
  619. let thisdata = data.data;
  620. this.setState({
  621. additionalOrderData: thisdata
  622. });
  623. }
  624. }.bind(this)
  625. });
  626. },
  627. //项目列表
  628. xiangmu(orderNos) {
  629. $.ajax({
  630. method: "get",
  631. dataType: "json",
  632. crossDomain: false,
  633. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  634. data: {
  635. orderNo: orderNos
  636. },
  637. success: function (data) {
  638. let theArr = [];
  639. if (data.error.length || data.data.list == "") {
  640. if (data.error && data.error.length) {
  641. message.warning(data.error[0].message);
  642. }
  643. } else {
  644. for (let i = 0; i < data.data.length; i++) {
  645. let thisdata = data.data[i];
  646. thisdata.key = i;
  647. thisdata.sort = thisdata.cSort;
  648. theArr.push(thisdata);
  649. }
  650. }
  651. this.setState({
  652. dataSourceX: theArr
  653. });
  654. }.bind(this)
  655. });
  656. },
  657. search(obj) {
  658. this.setState({
  659. searchData: obj
  660. }, () => {
  661. this.loadData(1);
  662. })
  663. },
  664. rizhi(orderNo) {
  665. $.ajax({
  666. method: "get",
  667. dataType: "json",
  668. crossDomain: false,
  669. url: "/api/admin/newOrder/selectOrderLog",
  670. data: {
  671. orderNo: orderNo
  672. },
  673. success: function (data) {
  674. let theArr = [];
  675. let thisData = data.data;
  676. if (!thisData.length) {
  677. if (data.error && data.error.length) {
  678. message.warning(data.error[0].message);
  679. }
  680. thisData = {};
  681. } else {
  682. for (let i = 0; i < data.data.length; i++) {
  683. let thisdata = data.data[i];
  684. theArr.push({
  685. processName: thisdata.processName,
  686. adminName: thisdata.adminName,
  687. createDate: thisdata.createDate,
  688. remarks: thisdata.remarks
  689. });
  690. }
  691. }
  692. this.setState({
  693. dataSourcerizhi: theArr
  694. });
  695. }.bind(this)
  696. });
  697. },
  698. getOrderLog(orderNo) {
  699. this.setState({
  700. rizhivisible: true
  701. });
  702. this.rizhi(orderNo);
  703. },
  704. closeOrderLog() {
  705. this.setState({
  706. rizhivisible: false
  707. });
  708. },
  709. //节点列表
  710. jiedian(orderNos) {
  711. $.ajax({
  712. method: "get",
  713. dataType: "json",
  714. crossDomain: false,
  715. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  716. data: {
  717. orderNo: orderNos
  718. },
  719. success: function (data) {
  720. let theArr = [];
  721. let thisData = [];
  722. if (data.error.length || data.data.list == "") {
  723. if (data.error && data.error.length) {
  724. message.warning(data.error[0].message);
  725. }
  726. } else {
  727. for (let i = 0; i < data.data.length; i++) {
  728. thisData = data.data[i];
  729. theArr.push({
  730. key: i,
  731. dunSubject: thisData.dunSubject
  732. ? thisData.dunSubject.toString()
  733. : "", //催款科目
  734. id: thisData.id, //节点Id
  735. money: thisData.money, //催款金额
  736. dunStatus: thisData.dunStatus //催款状态
  737. });
  738. }
  739. this.setState({
  740. contactList: theArr
  741. });
  742. }
  743. }.bind(this)
  744. });
  745. },
  746. jiedianNew(orderNos) {
  747. $.ajax({
  748. method: "get",
  749. dataType: "json",
  750. crossDomain: false,
  751. url:
  752. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  753. data: {
  754. orderNo: orderNos
  755. },
  756. success: function (data) {
  757. if (data.error && data.error.length) {
  758. message.warning(data.error[0].message);
  759. } else {
  760. let theArr = [];
  761. let thisData = [];
  762. let arr = data.data || [];
  763. let totalCui = 0;
  764. for (let i = 0; i < arr.length; i++) {
  765. thisData = arr[i];
  766. totalCui += +thisData.money;
  767. theArr.push({
  768. key: i,
  769. dunSubject: thisData.dunSubject
  770. ? thisData.dunSubject.toString()
  771. : "", //催款科目
  772. id: thisData.id, //节点Id
  773. money: thisData.money, //催款金额
  774. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  775. commodityName: thisData.commodityName,
  776. projectType: thisData.projectType,
  777. dunTypeName: thisData.dunTypeName,
  778. status: thisData.status,
  779. waitDay: thisData.waitDay,
  780. effectiveCount: thisData.effectiveCount,
  781. startDate: thisData.startDate,
  782. dunType: thisData.dunType,
  783. appropriationRatio: thisData.appropriationRatio,
  784. customizeName: thisData.customizeName,
  785. customizeTimes: thisData.customizeTimes,
  786. tid: thisData.tid,
  787. });
  788. }
  789. if (!totalCui) {
  790. totalCui = 0;
  791. }
  792. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  793. this.setState({
  794. contactListNew: theArr,
  795. totalCui
  796. });
  797. }
  798. }.bind(this)
  799. }).always(
  800. function () {
  801. this.setState({
  802. loading: false
  803. });
  804. }.bind(this)
  805. );
  806. },
  807. //审核通过
  808. examOk() {
  809. $.ajax({
  810. method: "post",
  811. dataType: "json",
  812. crossDomain: false,
  813. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  814. data: {
  815. orderNo: this.state.orderNo,
  816. orderStatus: 2
  817. },
  818. success: function (data) {
  819. if (data.error.length || data.data.list == "") {
  820. if (data.error && data.error.length) {
  821. message.warning(data.error[0].message);
  822. }
  823. } else {
  824. message.success("该订单已通过审核~");
  825. this.setState({
  826. visible: false
  827. });
  828. this.reset();
  829. }
  830. }.bind(this)
  831. }).always(
  832. function () {
  833. this.setState({
  834. loading: false
  835. });
  836. }.bind(this)
  837. );
  838. },
  839. //通过发给外包
  840. outsourcing() {
  841. $.ajax({
  842. method: "post",
  843. dataType: "json",
  844. crossDomain: false,
  845. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  846. data: {
  847. orderNo: this.state.orderNo,
  848. orderStatus: 2,
  849. outsource: 1
  850. },
  851. success: function (data) {
  852. if (data.error.length || data.data.list == "") {
  853. if (data.error && data.error.length) {
  854. message.warning(data.error[0].message);
  855. }
  856. } else {
  857. message.success("该订单已通过审核~");
  858. this.setState({
  859. visible: false
  860. });
  861. this.reset();
  862. }
  863. }.bind(this)
  864. }).always(
  865. function () {
  866. this.setState({
  867. loading: false
  868. });
  869. }.bind(this)
  870. );
  871. },
  872. //审核不通过
  873. examOks() {
  874. this.setState({
  875. aloading: true
  876. });
  877. $.ajax({
  878. method: "post",
  879. dataType: "json",
  880. crossDomain: false,
  881. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  882. data: {
  883. orderNo: this.state.orderNo,
  884. orderStatus: 3,
  885. reason: this.state.reason
  886. },
  887. success: function (data) {
  888. if (data.error.length || data.data.list == "") {
  889. if (data.error && data.error.length) {
  890. message.warning(data.error[0].message);
  891. this.setState({
  892. aloading: true
  893. });
  894. }
  895. } else {
  896. message.success("该订单已被拒绝~");
  897. this.setState({
  898. visible: false,
  899. aloading: false,
  900. noVisible: false,
  901. reason: ""
  902. });
  903. this.reset();
  904. }
  905. }.bind(this)
  906. }).always(
  907. function () {
  908. this.setState({
  909. loading: false
  910. });
  911. }.bind(this)
  912. );
  913. },
  914. //点击拒绝
  915. examNo() {
  916. this.setState({
  917. noVisible: true
  918. });
  919. },
  920. loadDataChange(key) {
  921. $.ajax({
  922. method: "get",
  923. dataType: "json",
  924. async: false,
  925. crossDomain: false,
  926. url: globalConfig.context + "/api/admin/orderChange/orderChangeLogList",
  927. data: {
  928. changeId: key
  929. },
  930. success: function (data) {
  931. if (data.error.length || data.data.list == "") {
  932. if (data.error && data.error.length) {
  933. message.warning(data.error[0].message);
  934. }
  935. } else {
  936. this.setState({
  937. dataProps: data.data
  938. });
  939. }
  940. }.bind(this)
  941. });
  942. },
  943. callback(key) {
  944. this.setState(
  945. {
  946. activeKey: key
  947. },
  948. () => {
  949. if (key != "a" && key != "c" && key.length < 10) {
  950. this.ChangeDetail(key);
  951. this.loadDataChange(key);
  952. } else if (key != "a" && key != "c" && key.length > 10) {
  953. this.primaryOrder(key);
  954. this.ChangeDetail(key);
  955. this.xiangmu(key);
  956. this.jiedian(key);
  957. this.jiedianNew(key);
  958. this.loadDataChange(key);
  959. }
  960. }
  961. );
  962. if (key === "a") {
  963. if (this.state.orderData.deleteSign !== 3) {
  964. this.xiangmu(this.state.orderNo);
  965. this.jiedian(this.state.orderNo);
  966. this.jiedianNew(this.state.orderNo);
  967. }
  968. }
  969. // if (key === "3") {
  970. // this.primaryOrder(this.state.primaryOrderNo);
  971. // this.xiangmu(this.state.primaryOrderNo);
  972. // this.jiedian(this.state.primaryOrderNo);
  973. // this.jiedianNew(this.state.primaryOrderNo);
  974. // }
  975. if (key === "c") {
  976. this.additionalOrder(this.state.additionalOrder);
  977. this.xiangmu(this.state.additionalOrder);
  978. this.jiedian(this.state.additionalOrder);
  979. this.jiedianNew(this.state.additionalOrder);
  980. this.setState({
  981. buttonStatusA: false
  982. });
  983. } else {
  984. this.setState({
  985. buttonStatusA: true
  986. });
  987. }
  988. },
  989. closeDesc(e, s) {
  990. this.state.activeKey = "a";
  991. this.state.userDetaile = false;
  992. this.state.signBillVisible = false;
  993. this.state.visible = e;
  994. if (s) {
  995. this.loadData(this.state.pageNo);
  996. }
  997. },
  998. // 获取原订单编号
  999. getPrimaryOrder(value) {
  1000. this.setState({
  1001. primaryOrder: value
  1002. });
  1003. },
  1004. getAdditionalOrder(value) {
  1005. this.setState({
  1006. additionalOrder: value
  1007. });
  1008. },
  1009. getUrl(url) {
  1010. let theorgCodeUrl = [];
  1011. if (url.length) {
  1012. let picArr = [];
  1013. url.map(function (item) {
  1014. if (
  1015. item.response &&
  1016. item.response.data &&
  1017. item.response.data.length
  1018. ) {
  1019. picArr.push(item.response.data);
  1020. }
  1021. });
  1022. theorgCodeUrl = picArr.join(",");
  1023. }
  1024. return theorgCodeUrl;
  1025. },
  1026. sureOut() {
  1027. if (!this.state.companyName) {
  1028. message.warning("公司名称不能为空");
  1029. return;
  1030. }
  1031. if (!this.state.unitPrice) {
  1032. message.warning("单价不能为空");
  1033. return;
  1034. }
  1035. if (!this.state.unitNumber) {
  1036. message.warning("数量不能为空");
  1037. return;
  1038. }
  1039. if (!this.state.amount) {
  1040. message.warning("总金额不能为空");
  1041. return;
  1042. }
  1043. if (!this.state.outsourceRemarks) {
  1044. message.warning("备注不能为空");
  1045. return;
  1046. }
  1047. if (this.state.pictureUrl.length === 0) {
  1048. message.warning("合同扫描件不能为空");
  1049. return;
  1050. }
  1051. $.ajax({
  1052. method: "POST",
  1053. dataType: "json",
  1054. crossDomain: false,
  1055. url: globalConfig.context + "/api/admin/outsourceOrg/auditOutsource",
  1056. data: {
  1057. id: this.state.id,
  1058. orderNo: this.state.orderNo,
  1059. companyName: this.state.companyName,
  1060. amount: this.state.amount,
  1061. outsourceRemarks: this.state.outsourceRemarks,
  1062. unitNumber: this.state.unitNumber,
  1063. unitPrice: this.state.unitPrice,
  1064. attachmentUrl: this.getUrl(this.state.attachmentUrl).length
  1065. ? this.getUrl(this.state.attachmentUrl)
  1066. : "",
  1067. orderStatus: 2,
  1068. pictureUrl: this.getUrl(this.state.pictureUrl).length
  1069. ? this.getUrl(this.state.pictureUrl)
  1070. : ""
  1071. }
  1072. }).done(
  1073. function (data) {
  1074. this.setState({
  1075. loading: false
  1076. });
  1077. if (!data.error.length) {
  1078. message.success("发起成功!");
  1079. this.outReset();
  1080. this.visitCancel();
  1081. } else {
  1082. message.warning(data.error[0].message);
  1083. }
  1084. }.bind(this)
  1085. );
  1086. },
  1087. //关闭输入理由框
  1088. noCancel() {
  1089. this.setState({
  1090. noVisible: false,
  1091. aloading: false,
  1092. reason: ""
  1093. });
  1094. },
  1095. //重置
  1096. reset() {
  1097. this.setState({
  1098. signBillVisible: false
  1099. });
  1100. this.state.orderNo = "";
  1101. this.state.customerName = "";
  1102. this.state.releaseDate[0] = undefined;
  1103. this.state.releaseDate[1] = undefined;
  1104. this.state.approval = undefined;
  1105. this.state.completeSearch = 0;
  1106. this.loadData(1);
  1107. },
  1108. outReset() {
  1109. this.setState({
  1110. companyName: "",
  1111. amount: "",
  1112. unitPrice: "",
  1113. unitNumber: "",
  1114. outsourceRemarks: "",
  1115. attachmentUrl: [],
  1116. pictureUrl: []
  1117. });
  1118. },
  1119. getOrgCodeUrl(e) {
  1120. this.setState({ pictureUrl: e });
  1121. },
  1122. //关闭详情
  1123. visitCancel() {
  1124. this.setState(
  1125. {
  1126. activeKey: "a"
  1127. },
  1128. () => {
  1129. this.setState({
  1130. visible: false,
  1131. contractData: {}
  1132. });
  1133. }
  1134. );
  1135. this.loadData(this.state.pageNo);
  1136. },
  1137. visitOk() {
  1138. this.setState({
  1139. visible: false
  1140. });
  1141. },
  1142. changeList(arr) {
  1143. const newArr = [];
  1144. this.state.columns.forEach(item => {
  1145. arr.forEach(val => {
  1146. if (val === item.title) {
  1147. newArr.push(item);
  1148. }
  1149. });
  1150. });
  1151. this.setState({
  1152. changeList: newArr
  1153. });
  1154. },
  1155. createTabs() {
  1156. this.setState({
  1157. loading: true
  1158. });
  1159. $.ajax({
  1160. url: globalConfig.context + "/api/admin/orderChange/getOrderChange",
  1161. method: "get",
  1162. data: {
  1163. orderNo: this.state.orderNo
  1164. },
  1165. success: (data) => {
  1166. if (data.error && data.error.length) {
  1167. message.warning(data.error[0].message)
  1168. } else {
  1169. this.setState({
  1170. tabList: data.data,
  1171. loading: false
  1172. })
  1173. }
  1174. }
  1175. });
  1176. },
  1177. render() {
  1178. const tabList = this.state.tabList || []
  1179. const formItemLayout = {
  1180. labelCol: { span: 8 },
  1181. wrapperCol: { span: 14 }
  1182. };
  1183. const FormItem = Form.Item;
  1184. const { TabPane } = Tabs;
  1185. return (
  1186. <div className="user-content" style={{ position: "relative" }}>
  1187. <ShowModalDiv ShowModal={this.state.showModal} />
  1188. <div className="content-title" style={{ marginBottom: 10 }}>
  1189. <span style={{ fontWeight: 900, fontSize: 16 }}>
  1190. 合同变更审核订单
  1191. </span>
  1192. </div>
  1193. <div className="user-search">
  1194. <Tabs defaultActiveKey="1" className="test">
  1195. <TabPane tab="搜索" key="1">
  1196. <div style={{ marginLeft: 10 }}>
  1197. <SearchInput search={this.search} isYxy={true} />
  1198. </div>
  1199. </TabPane>
  1200. <TabPane tab="更改表格显示数据" key="2">
  1201. <div style={{ marginLeft: 10 }}>
  1202. <ChooseList
  1203. columns={this.state.columns}
  1204. changeFn={this.changeList}
  1205. changeList={this.state.changeList}
  1206. top={55}
  1207. margin={11}
  1208. />
  1209. </div>
  1210. </TabPane>
  1211. </Tabs>
  1212. <div className="patent-table">
  1213. <Spin spinning={this.state.loading}>
  1214. <Table
  1215. size="small"
  1216. bordered
  1217. columns={
  1218. this.state.changeList
  1219. ? this.state.changeList
  1220. : this.state.columns
  1221. }
  1222. style={{
  1223. cursor: 'pointer',
  1224. }}
  1225. dataSource={this.state.dataSource}
  1226. pagination={this.state.pagination}
  1227. onRowClick={this.tableRowClick}
  1228. />
  1229. </Spin>
  1230. </div>
  1231. {this.state.visible &&
  1232. <Modal
  1233. className="customeDetails"
  1234. footer=""
  1235. maskClosable={false}
  1236. width="1200px"
  1237. visible={this.state.visible}
  1238. onOk={this.visitOk}
  1239. onCancel={this.visitCancel}
  1240. >
  1241. <Spin spinning={this.state.loading}>
  1242. <Tabs
  1243. activeKey={this.state.activeKey}
  1244. onChange={this.callback}
  1245. type="card"
  1246. tabBarExtraContent={
  1247. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  1248. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1249. </div>
  1250. }
  1251. >
  1252. <TabPane tab="订单详情" key="a">
  1253. {this.state.activeKey === 'a' ? <div>
  1254. {this.state.orderData.deleteSign === 3 ? (
  1255. <AddOrders
  1256. orderUid={this.state.orderUid}
  1257. processStatus={0}
  1258. data={this.state.orderData.orderNo}
  1259. mark={this.state.buttonStatus}
  1260. getPrimaryOrder={this.getPrimaryOrder}
  1261. totalCui={this.state.totalCui}
  1262. closeDesc={this.closeDesc}
  1263. getAdditionalOrder={this.getAdditionalOrder}
  1264. deleteSign={this.state.orderData.deleteSign}
  1265. />
  1266. ) : (
  1267. <Form
  1268. layout="horizontal"
  1269. onSubmit={this.handleSubmit}
  1270. id="demand-form"
  1271. style={{ paddingBottom: "40px" }}
  1272. >
  1273. <Spin spinning={this.state.loading}>
  1274. <OrderDetail
  1275. domId='dindanxiangqing'
  1276. orderUid={this.state.orderUid}
  1277. orderData={this.state.orderData}
  1278. getOrderLog={this.getOrderLog}
  1279. totalCui={parseFloat(this.state.totalCui)}
  1280. dataSourceX={this.state.dataSourceX}
  1281. contactList={this.state.contactList}
  1282. contactListNew={this.state.contactListNew}
  1283. orderNo={this.state.orderNo}
  1284. />
  1285. </Spin>
  1286. </Form>
  1287. )}
  1288. </div> : <div />}
  1289. </TabPane>
  1290. {tabList.map((item, index, arr) => {
  1291. return (
  1292. <TabPane tab={"合同变更记录" + (tabList.length - index)} key={item.id}>
  1293. {
  1294. this.state.activeKey === String(item.id) ?
  1295. (
  1296. this.state.contractData.processState === 0 &&
  1297. this.state.contractData.status != 5 ? (
  1298. <ChangeApply
  1299. orderUid={this.state.orderUid}
  1300. id={Math.random()}
  1301. approval={this.state.orderData.approval} // 是否特批
  1302. orderData={this.state.contractData}
  1303. voucherUrl={this.state.voucherUrl}
  1304. onCancel={this.visitCancel}
  1305. />
  1306. ) : (
  1307. <ChangeDetail
  1308. domId={'hetongbiangenjilu' + (index + 1)}
  1309. orderUid={this.state.orderUid}
  1310. id={item.id}
  1311. money={
  1312. index == arr.length - 1
  1313. ? this.state.orderData.totalAmount + ""
  1314. : undefined
  1315. }
  1316. visitCancel={this.visitCancel}
  1317. data={this.state.contractData}
  1318. pictureUrl={this.state.voucherUrl}
  1319. contractPictureUrl={this.state.contractPictureUrl}
  1320. attachment={this.state.attachment}
  1321. processState={this.props.processState}
  1322. dataSource={this.state.dataProps}
  1323. proceedsData={this.state.proceedsData}
  1324. proceedsTotal={this.state.proTotal}
  1325. invoiceTotal={this.state.invTotal}
  1326. contactList={this.state.refundInvoice}
  1327. />
  1328. )
  1329. ) : <div />
  1330. }
  1331. </TabPane>
  1332. );
  1333. })}
  1334. {tabList.map((item, index) => {
  1335. if (item.usedOrder) {
  1336. return (
  1337. <TabPane
  1338. tab={"原订单" + (tabList.length - index)}
  1339. key={item.usedOrder}
  1340. >
  1341. {
  1342. this.state.activeKey === String(item.usedOrder) ?
  1343. <Form
  1344. layout="horizontal"
  1345. onSubmit={this.handleSubmit}
  1346. id="demand-form"
  1347. style={{ paddingBottom: "40px" }}
  1348. >
  1349. <Spin spinning={this.state.loading}>
  1350. <OrderDetail
  1351. domId={'yuandingdan' + (index + 1)}
  1352. orderUid={this.state.orderUid}
  1353. orderData={this.state.primaryOrderData}
  1354. getOrderLog={this.getOrderLog}
  1355. dataSourceX={this.state.dataSourceX}
  1356. contactList={this.state.contactList}
  1357. orderNo={this.state.primaryOrderNo}
  1358. totalCui={this.state.totalCui}
  1359. contactListNew={this.state.contactListNew}
  1360. />
  1361. </Spin>
  1362. </Form> : <div />
  1363. }
  1364. </TabPane>
  1365. );
  1366. } else {
  1367. return "";
  1368. }
  1369. })}
  1370. {/* {this.state.status === 4 ? (
  1371. <TabPane tab="原订单" key="3">
  1372. <Form
  1373. layout="horizontal"
  1374. onSubmit={this.handleSubmit}
  1375. id="demand-form"
  1376. style={{ paddingBottom: "40px" }}
  1377. >
  1378. <Spin spinning={this.state.loading}>
  1379. <OrderDetail
  1380. orderData={this.state.primaryOrderData}
  1381. getOrderLog={this.getOrderLog}
  1382. dataSourceX={this.state.dataSourceX}
  1383. contactList={this.state.contactList}
  1384. orderNo={this.state.primaryOrderNo}
  1385. totalCui={this.state.totalCui}
  1386. contactListNew={this.state.contactListNew}
  1387. />
  1388. </Spin>
  1389. </Form>
  1390. </TabPane>
  1391. ) : (
  1392. ""
  1393. )} */}
  1394. {this.state.status === 4 && this.state.isAddition ? (
  1395. this.state.type === 4 || this.state.type === 5 ? (
  1396. <TabPane tab="附加订单" key="c">
  1397. {
  1398. this.state.activeKey === "c" ?
  1399. <AddOrders
  1400. domId='fujiadingdan'
  1401. orderUid={this.state.orderUid}
  1402. processStatus={0}
  1403. data={this.state.orderData.additionalOrder}
  1404. mark={this.state.buttonStatusA}
  1405. getPrimaryOrder={this.getPrimaryOrder}
  1406. closeDesc={this.closeDesc}
  1407. getAdditionalOrder={this.getAdditionalOrder}
  1408. activeKey={this.state.activeKey}
  1409. /> : <div />
  1410. }
  1411. </TabPane>
  1412. ) : (
  1413. ""
  1414. )
  1415. ) : (
  1416. ""
  1417. )}
  1418. </Tabs>
  1419. </Spin>
  1420. </Modal>
  1421. }
  1422. <Modal
  1423. maskClosable={false}
  1424. visible={this.state.noVisible}
  1425. onOk={this.handleOk}
  1426. onCancel={this.noCancel}
  1427. width="400px"
  1428. title={"拒绝理由"}
  1429. footer=""
  1430. className="admin-desc-content"
  1431. confirmLoading={this.state.confirmLoading}
  1432. >
  1433. <Form layout="horizontal" id="demand-form">
  1434. <Spin spinning={this.state.loading}>
  1435. <div className="clearfix">
  1436. <FormItem
  1437. labelCol={{ span: 4 }}
  1438. wrapperCol={{ span: 16 }}
  1439. label="拒绝理由"
  1440. >
  1441. <Input
  1442. type="textarea"
  1443. placeholder="请输入拒绝理由"
  1444. rows={4}
  1445. value={this.state.reason}
  1446. onChange={e => {
  1447. this.setState({ reason: e.target.value });
  1448. }}
  1449. />
  1450. </FormItem>
  1451. </div>
  1452. <div className="clearfix">
  1453. <Button
  1454. className="cancel"
  1455. type="primary"
  1456. onClick={this.examOks}
  1457. style={{ marginLeft: "50px" }}
  1458. htmlType="submit"
  1459. loading={this.state.aloading}
  1460. >
  1461. 确定
  1462. </Button>
  1463. <Button
  1464. className="cancel"
  1465. type="ghost"
  1466. onClick={this.noCancel}
  1467. style={{ marginLeft: "50px" }}
  1468. >
  1469. 取消
  1470. </Button>
  1471. </div>
  1472. </Spin>
  1473. </Form>
  1474. </Modal>
  1475. {/* <Modal
  1476. visible={this.state.rizhivisible}
  1477. className="admin-desc-content"
  1478. width="800px"
  1479. maskClosable={false}
  1480. title="订单日志"
  1481. footer={null}
  1482. onCancel={this.closeOrderLog}
  1483. >
  1484. <div className="patent-table">
  1485. <Spin spinning={this.state.loading}>
  1486. <Table
  1487. bordered
  1488. columns={this.state.columnsrizhi}
  1489. dataSource={this.state.dataSourcerizhi}
  1490. pagination={false}
  1491. />
  1492. </Spin>
  1493. </div>
  1494. </Modal> */}
  1495. <OrderRiZi
  1496. dataSourcerizhi={this.state.dataSourcerizhi}
  1497. closeOrderLog={this.closeOrderLog}
  1498. visible={this.state.rizhivisible}
  1499. loading={this.state.loading}
  1500. />
  1501. </div>
  1502. {/* {this.state.addnextVisible && <ProjectDetailsReadOnly
  1503. infor={this.state.dataInfor}
  1504. visible={this.state.addnextVisible}
  1505. onCancel={this.nextCancel}
  1506. />} */}
  1507. {
  1508. // 项目业务详情
  1509. this.state.addnextVisible &&
  1510. <NewEditProject
  1511. readOnly={true}
  1512. visible={this.state.addnextVisible}
  1513. dataInfor={this.state.dataInfor}
  1514. onCancel={this.nextCancel}
  1515. />
  1516. }
  1517. </div>
  1518. );
  1519. }
  1520. })
  1521. );
  1522. export default contractChange;