contractYxy.js 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539
  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 OrderItemStatus from "../../../common/orderItemStatus";
  28. import Cascaders from "../../../common/cascaders";
  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.processState,
  85. thisdata.status
  86. )
  87. });
  88. }
  89. this.state.pagination.total = data.data.totalCount;
  90. this.state.pagination.current = data.data.pageNo;
  91. }
  92. if (data.data && data.data.list && !data.data.list.length) {
  93. this.state.pagination.total = 0;
  94. }
  95. this.setState({
  96. dataSource: theArr,
  97. pageNo: pageNo,
  98. pagination: this.state.pagination
  99. });
  100. }.bind(this)
  101. }).always(
  102. function () {
  103. this.setState({
  104. loading: false
  105. });
  106. }.bind(this)
  107. );
  108. },
  109. getInitialState() {
  110. return {
  111. page: 1,
  112. searchData: {
  113. releaseDate: []
  114. },
  115. declarationBatch: 1,
  116. dataInfor: {},
  117. primaryOrderData: {}, //原订单数据
  118. orderData: {}, //现订单数据
  119. pictureUrl: [],
  120. voucherUrl: [],
  121. attachment: [],
  122. buttonStatusA: true,
  123. attachmentUrl: [],
  124. proceedsData: {},
  125. proTotal: 0,
  126. invTotal: 0,
  127. contractData: {},
  128. // 回收退票数据
  129. refundInvoice: [],
  130. RefundInvoice: [],
  131. paginations: false,
  132. activeKey: "a",
  133. confirmLoading: false,
  134. aloading: false,
  135. pagination: {
  136. defaultCurrent: 1,
  137. defaultPageSize: 10,
  138. showQuickJumper: true,
  139. pageSize: 10,
  140. onChange: function (page) {
  141. this.loadData(page);
  142. }.bind(this),
  143. showTotal: function (total) {
  144. return "共" + total + "条数据";
  145. }
  146. },
  147. columns: [
  148. {
  149. title: "合同编号",
  150. dataIndex: "contractNo",
  151. key: "contractNo"
  152. },
  153. {
  154. title: "订单编号",
  155. dataIndex: "orderNo",
  156. key: "orderNo"
  157. },
  158. {
  159. title: "客户名称",
  160. dataIndex: "nickname",
  161. key: "nickname",
  162. width: 150,
  163. render: (text) => {
  164. return (
  165. <Tooltip title={text}>
  166. <div style={{
  167. maxWidth: '150px',
  168. overflow: 'hidden',
  169. textOverflow: "ellipsis",
  170. whiteSpace: 'nowrap',
  171. }}>{text}</div>
  172. </Tooltip>
  173. )
  174. },
  175. },
  176. {
  177. title: "订单部门",
  178. dataIndex: "depName",
  179. key: "depName"
  180. },
  181. {
  182. title: "订单类型",
  183. dataIndex: "orderType",
  184. key: "orderType",
  185. render: text => {
  186. return text ? "科技项目" : "认证项目";
  187. }
  188. },
  189. {
  190. title: "下单时间",
  191. dataIndex: "establishTimes",
  192. key: "establishTimes"
  193. },
  194. {
  195. title: "订单状态",
  196. dataIndex: "orderStatus",
  197. key: "orderStatus",
  198. render: text => {
  199. return getNewOrderStatus(text);
  200. }
  201. },
  202. {
  203. title: "合同额(万元)",
  204. dataIndex: "totalAmount",
  205. key: "totalAmount"
  206. },
  207. {
  208. title: "已付额(万元)",
  209. dataIndex: "settlementAmount",
  210. key: "settlementAmount"
  211. },
  212. {
  213. title: "欠款(万元)",
  214. dataIndex: "arrears",
  215. key: "arrears"
  216. },
  217. {
  218. title: "订单负责人",
  219. dataIndex: "salesmanName",
  220. key: "salesmanName"
  221. },
  222. {
  223. title: "变更类型",
  224. dataIndex: "type",
  225. key: "type",
  226. render: text => {
  227. return getType(text);
  228. }
  229. },
  230. {
  231. title: "审核状态",
  232. dataIndex: "processStateText",
  233. key: "processStateText"
  234. },
  235. {
  236. title: "提交时间",
  237. dataIndex: "createTimes",
  238. key: "createTimes"
  239. }
  240. ],
  241. dataSource: [],
  242. // 传递给子组件的
  243. dataProps: [],
  244. columnsX: [
  245. {
  246. title: "业务项目名称",
  247. dataIndex: "commodityName",
  248. key: "commodityName",
  249. render: (text, record) => {
  250. return (
  251. <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span></span>
  252. )
  253. }
  254. },
  255. {
  256. title: "项目类别",
  257. dataIndex: "cname",
  258. key: "cname"
  259. },
  260. {
  261. title: "项目数量",
  262. dataIndex: "commodityQuantity",
  263. key: "commodityQuantity"
  264. },
  265. {
  266. title: "金额(万元)",
  267. dataIndex: "commodityPrice",
  268. key: "commodityPrice"
  269. },
  270. {
  271. title: "负责人",
  272. dataIndex: "contacts",
  273. key: "contacts"
  274. },
  275. {
  276. title: "负责人电话",
  277. dataIndex: "contactsMobile",
  278. key: "contactsMobile"
  279. },
  280. {
  281. title: "项目状态",
  282. dataIndex: "projectStatus",
  283. key: "projectStatus",
  284. render: text => {
  285. return getProjectName(text);
  286. }
  287. },
  288. {
  289. title: "主要项目",
  290. dataIndex: "main",
  291. key: "main",
  292. render: text => {
  293. return text ? "是" : "否";
  294. }
  295. },
  296. {
  297. title: "总年限",
  298. dataIndex: "yearSum",
  299. key: "yearSum",
  300. render: (text, record) => {
  301. return (
  302. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  303. );
  304. }
  305. },
  306. {
  307. title: "年限",
  308. dataIndex: "serviceLife",
  309. key: "serviceLife",
  310. render: (text, record) => {
  311. return (
  312. <div>{!!text && JSON.parse(text).toString()}</div>
  313. );
  314. }
  315. },
  316. {
  317. title: "本次派单",
  318. dataIndex: "serviceYear",
  319. key: "serviceYear",
  320. render: (text, record) => {
  321. return (
  322. <div>{!text ? "" : text}</div>
  323. );
  324. }
  325. },
  326. {
  327. title: "项目说明",
  328. dataIndex: "taskComment",
  329. key: "taskComment",
  330. render: text => {
  331. return (
  332. <Tooltip title={text}>
  333. <div
  334. style={{
  335. width: 100,
  336. overflow: "hidden",
  337. whiteSpace: "nowrap",
  338. textOverflow: "ellipsis",
  339. }}
  340. >{text}</div>
  341. </Tooltip>
  342. )
  343. }
  344. }
  345. ],
  346. // 子组件改变的表格title数组
  347. changeList: undefined,
  348. columnsrizhi: [
  349. {
  350. title: "流程",
  351. dataIndex: "processName",
  352. key: "processName"
  353. },
  354. {
  355. title: "操作人",
  356. dataIndex: "adminName",
  357. key: "adminName"
  358. },
  359. {
  360. title: "时间",
  361. dataIndex: "createDate",
  362. key: "createDate"
  363. }
  364. ],
  365. dataSourceX: [],
  366. ContactsLists: [
  367. {
  368. title: "催款科目",
  369. dataIndex: "dunSubject",
  370. key: "dunSubject",
  371. render: text => {
  372. return getjiedian(text);
  373. }
  374. },
  375. {
  376. title: "金额(万元)",
  377. dataIndex: "money",
  378. key: "money"
  379. },
  380. {
  381. title: "催款状态",
  382. dataIndex: "dunStatus",
  383. key: "dunStatus",
  384. render: text => {
  385. return getCuikuan(text);
  386. }
  387. }
  388. ]
  389. };
  390. },
  391. //页面加载函数
  392. componentWillMount() {
  393. this.loadData();
  394. },
  395. //整行点击
  396. tableRowClick(record) {
  397. this.setState(
  398. {
  399. visible: true,
  400. type: record.type,
  401. status: record.status,
  402. buttonStatus: true,
  403. orderStatus: record.orderStatus,
  404. id: record.id,
  405. processStateText: record.processStateText,
  406. orderNo: record.orderNo
  407. },
  408. () => {
  409. this.xiangqing(record.orderNo);
  410. // this.ChangeDetail(this.state.id);
  411. this.createTabs()
  412. }
  413. );
  414. },
  415. //点击打卡项目详情
  416. tableRowClickX(record) {
  417. this.setState({
  418. jid: record.id, //项目ID
  419. kid: record.commodityId, //商品ID
  420. commodityName: record.commodityName, //金额
  421. commodityPrice: record.commodityPrice, //金额
  422. commodityQuantity: record.commodityQuantity, //数量
  423. taskComment: record.taskComment, //备注
  424. main: record.main.toString(), //是否为主要
  425. addnextVisible: true,
  426. dataInfor: record,
  427. addState: 0
  428. });
  429. },
  430. //项目详情关闭
  431. nextCancel() {
  432. this.setState({
  433. addnextVisible: false
  434. });
  435. },
  436. // 合同变更详情
  437. ChangeDetail(id) {
  438. let url = window.location.href.substring(7);
  439. $.ajax({
  440. method: "get",
  441. dataType: "json",
  442. crossDomain: false,
  443. url:
  444. globalConfig.context +
  445. "/api/admin/orderChange/orderChangeDetailsById",
  446. data: {
  447. id: id
  448. },
  449. success: function (data) {
  450. if (data.data) {
  451. let thisdata = data.data;
  452. Object.assign(thisdata, {
  453. id: this.state.id,
  454. userName: this.state.userName,
  455. processStateText: this.state.processStateText,
  456. contractNo: this.state.contractNo,
  457. startRemarks: thisdata.zxsRemarks
  458. });
  459. this.setState({
  460. contractData: thisdata,
  461. voucherUrl: thisdata.voucherUrl
  462. ? splitUrl(
  463. thisdata.voucherUrl,
  464. ",",
  465. globalConfig.avatarHost + "/upload",
  466. url
  467. )
  468. : [],
  469. attachment: thisdata.attachmentUrl
  470. ? splitUrl(
  471. thisdata.attachmentUrl,
  472. ",",
  473. globalConfig.avatarHost + "/upload",
  474. url
  475. )
  476. : [],
  477. });
  478. }
  479. }.bind(this)
  480. });
  481. $.ajax({
  482. method: "get",
  483. dataType: "json",
  484. crossDomain: false,
  485. url:
  486. globalConfig.context +
  487. "/api/admin/orderChange/listOrderInvoiceAndBill",
  488. data: {
  489. orderNo: this.state.orderNo
  490. },
  491. success: function (data) {
  492. if (!data.data) return;
  493. let proTotal = 0;
  494. let invTotal = 0;
  495. data.data.bill.forEach(item => {
  496. proTotal += item.transactionAmount;
  497. });
  498. data.data.invoice.forEach(item => {
  499. invTotal += item.amount;
  500. });
  501. this.setState({
  502. proceedsData: data.data,
  503. proTotal: (Math.round(proTotal * 1000000) / 1000000).toFixed(6),
  504. invTotal: (Math.round(invTotal * 1000000) / 1000000).toFixed(6),
  505. });
  506. }.bind(this)
  507. });
  508. $.ajax({
  509. method: "get",
  510. dataType: "json",
  511. crossDomain: false,
  512. url:
  513. globalConfig.context +
  514. "/api/admin/orderChange/listOrderRefundInvoice",
  515. data: {
  516. orderNo: this.state.orderNo
  517. },
  518. success: data => {
  519. if (!data) return;
  520. data.data.forEach(item => {
  521. item.load = true;
  522. });
  523. this.setState({
  524. refundInvoice: data.data
  525. });
  526. }
  527. });
  528. },
  529. //订单详情
  530. xiangqing(orderNos) {
  531. $.ajax({
  532. method: "get",
  533. dataType: "json",
  534. crossDomain: false,
  535. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  536. data: {
  537. orderNo: orderNos
  538. },
  539. success: function (data) {
  540. if (data.error.length || data.data.list == "") {
  541. if (data.error && data.error.length) {
  542. message.warning(data.error[0].message);
  543. }
  544. } else {
  545. let thisdata = data.data;
  546. this.setState(
  547. {
  548. orderUid: thisdata.uid,
  549. userName: thisdata.userName,
  550. primaryOrderNo: thisdata.primaryOrder,
  551. additionalOrder: thisdata.additionalOrder,
  552. contractNo: thisdata.contractNo,
  553. // arrears: thisdata.arrears,
  554. orderData: thisdata,
  555. isAddition: thisdata.additionalOrder ? true : false,
  556. deleteSign: thisdata.deleteSign,
  557. },
  558. () => {
  559. if (this.state.orderData.deleteSign !== 3) {
  560. this.xiangmu(this.state.orderNo);
  561. this.jiedian(this.state.orderNo);
  562. this.jiedianNew(this.state.orderNo);
  563. }
  564. }
  565. );
  566. }
  567. }.bind(this)
  568. });
  569. },
  570. // 原订单数据
  571. primaryOrder(primaryOrder) {
  572. $.ajax({
  573. method: "get",
  574. dataType: "json",
  575. crossDomain: false,
  576. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  577. data: {
  578. orderNo: primaryOrder
  579. },
  580. success: function (data) {
  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. let thisdata = data.data;
  587. this.setState({
  588. primaryOrderData: thisdata
  589. });
  590. }
  591. }.bind(this)
  592. });
  593. },
  594. // 附加订单数据
  595. additionalOrder(additionalOrder) {
  596. $.ajax({
  597. method: "get",
  598. dataType: "json",
  599. crossDomain: false,
  600. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  601. data: {
  602. orderNo: additionalOrder
  603. },
  604. success: function (data) {
  605. if (data.error.length || data.data.list == "") {
  606. if (data.error && data.error.length) {
  607. message.warning(data.error[0].message);
  608. }
  609. } else {
  610. let thisdata = data.data;
  611. this.setState({
  612. additionalOrderData: thisdata
  613. });
  614. }
  615. }.bind(this)
  616. });
  617. },
  618. //项目列表
  619. xiangmu(orderNos) {
  620. $.ajax({
  621. method: "get",
  622. dataType: "json",
  623. crossDomain: false,
  624. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  625. data: {
  626. orderNo: orderNos
  627. },
  628. success: function (data) {
  629. let theArr = [];
  630. if (data.error.length || data.data.list == "") {
  631. if (data.error && data.error.length) {
  632. message.warning(data.error[0].message);
  633. }
  634. } else {
  635. for (let i = 0; i < data.data.length; i++) {
  636. let thisdata = data.data[i];
  637. thisdata.key = i;
  638. thisdata.sort = thisdata.cSort;
  639. theArr.push(thisdata);
  640. }
  641. }
  642. this.setState({
  643. dataSourceX: theArr
  644. });
  645. }.bind(this)
  646. });
  647. },
  648. search(obj) {
  649. if (obj.reset) {
  650. this.state.searchData.deps = [];
  651. this.Cascaders.empty();
  652. this.loadData(1);
  653. } else {
  654. this.setState(
  655. {
  656. searchData: Object.assign(this.state.searchData, obj)
  657. },
  658. () => {
  659. this.loadData(1);
  660. }
  661. );
  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. });
  1132. }
  1133. );
  1134. this.loadData(this.state.pageNo);
  1135. },
  1136. visitOk() {
  1137. this.setState({
  1138. visible: false
  1139. });
  1140. },
  1141. changeList(arr) {
  1142. const newArr = [];
  1143. this.state.columns.forEach(item => {
  1144. arr.forEach(val => {
  1145. if (val === item.title) {
  1146. newArr.push(item);
  1147. }
  1148. });
  1149. });
  1150. this.setState({
  1151. changeList: newArr
  1152. });
  1153. },
  1154. createTabs() {
  1155. $.ajax({
  1156. url: globalConfig.context + "/api/admin/orderChange/getOrderChange",
  1157. method: "get",
  1158. data: {
  1159. orderNo: this.state.orderNo
  1160. },
  1161. success: (data) => {
  1162. if (data.error && data.error.length) {
  1163. message.warning(data.error[0].message)
  1164. } else {
  1165. this.setState({
  1166. tabList: data.data
  1167. })
  1168. }
  1169. }
  1170. });
  1171. },
  1172. render() {
  1173. const tabList = this.state.tabList || []
  1174. const formItemLayout = {
  1175. labelCol: { span: 8 },
  1176. wrapperCol: { span: 14 }
  1177. };
  1178. const FormItem = Form.Item;
  1179. const { TabPane } = Tabs;
  1180. return (
  1181. <div className="user-content" style={{ position: "relative" }}>
  1182. <ShowModalDiv ShowModal={this.state.showModal} />
  1183. <div className="content-title" style={{ marginBottom: 10 }}>
  1184. <span style={{ fontWeight: 900, fontSize: 16 }}>
  1185. 合同变更审核订单
  1186. </span>
  1187. </div>
  1188. <div className="user-search">
  1189. <Tabs defaultActiveKey="1" className="test">
  1190. <TabPane tab="搜索" key="1">
  1191. <div>
  1192. <Cascaders
  1193. ref={node => this.Cascaders = node}
  1194. placeholder="订单部门"
  1195. id="id"
  1196. name="name"
  1197. children="list"
  1198. height={28}
  1199. onSel={(e) => {
  1200. const { searchData } = this.state
  1201. searchData["deps"] = JSON.stringify(e);
  1202. this.setState({
  1203. searchData: searchData
  1204. })
  1205. }}
  1206. />
  1207. <SearchInput search={this.search} isYxy={true} />
  1208. </div>
  1209. </TabPane>
  1210. <TabPane tab="更改表格显示数据" key="2">
  1211. <div style={{ marginLeft: 10 }}>
  1212. <ChooseList
  1213. columns={this.state.columns}
  1214. changeFn={this.changeList}
  1215. changeList={this.state.changeList}
  1216. top={55}
  1217. margin={11}
  1218. />
  1219. </div>
  1220. </TabPane>
  1221. </Tabs>
  1222. <div className="patent-table">
  1223. <Spin spinning={this.state.loading}>
  1224. <Table
  1225. size="small"
  1226. bordered
  1227. columns={
  1228. this.state.changeList
  1229. ? this.state.changeList
  1230. : this.state.columns
  1231. }
  1232. style={{
  1233. cursor: 'pointer',
  1234. }}
  1235. dataSource={this.state.dataSource}
  1236. pagination={this.state.pagination}
  1237. onRowClick={this.tableRowClick}
  1238. />
  1239. </Spin>
  1240. </div>
  1241. {this.state.visible ? <Modal
  1242. className="customeDetails"
  1243. footer=""
  1244. maskClosable={false}
  1245. width="1200px"
  1246. visible={this.state.visible}
  1247. onOk={this.visitOk}
  1248. onCancel={this.visitCancel}
  1249. >
  1250. <Tabs
  1251. activeKey={this.state.activeKey}
  1252. onChange={this.callback}
  1253. type="card"
  1254. tabBarExtraContent={
  1255. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  1256. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1257. </div>
  1258. }
  1259. >
  1260. <TabPane tab="订单详情" key="a">
  1261. {this.state.activeKey === 'a' ? <div>
  1262. {this.state.orderData.deleteSign === 3 ? (
  1263. <AddOrders
  1264. orderUid={this.state.orderUid}
  1265. processStatus={0}
  1266. data={this.state.orderData.orderNo}
  1267. mark={this.state.buttonStatus}
  1268. getPrimaryOrder={this.getPrimaryOrder}
  1269. totalCui={this.state.totalCui}
  1270. closeDesc={this.closeDesc}
  1271. getAdditionalOrder={this.getAdditionalOrder}
  1272. deleteSign={this.state.orderData.deleteSign}
  1273. />
  1274. ) : (
  1275. <Form
  1276. layout="horizontal"
  1277. onSubmit={this.handleSubmit}
  1278. id="demand-form"
  1279. style={{ paddingBottom: "40px" }}
  1280. >
  1281. <Spin spinning={this.state.loading}>
  1282. <OrderDetail
  1283. domId='dindanxiangqing'
  1284. orderUid={this.state.orderUid}
  1285. orderData={this.state.orderData}
  1286. getOrderLog={this.getOrderLog}
  1287. totalCui={parseFloat(this.state.totalCui)}
  1288. dataSourceX={this.state.dataSourceX}
  1289. contactList={this.state.contactList}
  1290. contactListNew={this.state.contactListNew}
  1291. orderNo={this.state.orderNo}
  1292. />
  1293. </Spin>
  1294. </Form>
  1295. )}
  1296. </div> : <div />}
  1297. </TabPane>
  1298. {tabList.map((item, index, arr) => {
  1299. return (
  1300. <TabPane tab={"合同变更记录" + (index + 1)} key={item.id}>
  1301. {
  1302. this.state.activeKey === String(item.id) ?
  1303. (
  1304. this.state.contractData.processState === 0 &&
  1305. this.state.contractData.status != 5 ? (
  1306. <ChangeApply
  1307. orderUid={this.state.orderUid}
  1308. id={Math.random()}
  1309. orderData={this.state.contractData}
  1310. voucherUrl={this.state.voucherUrl}
  1311. onCancel={this.visitCancel}
  1312. />
  1313. ) : (
  1314. <ChangeDetail
  1315. domId={'hetongbiangenjilu' + (index + 1)}
  1316. orderUid={this.state.orderUid}
  1317. id={item.id}
  1318. money={
  1319. index == arr.length - 1
  1320. ? this.state.orderData.totalAmount + ""
  1321. : undefined
  1322. }
  1323. visitCancel={this.visitCancel}
  1324. data={this.state.contractData}
  1325. pictureUrl={this.state.voucherUrl}
  1326. attachment={this.state.attachment}
  1327. processState={this.props.processState}
  1328. dataSource={this.state.dataProps}
  1329. proceedsData={this.state.proceedsData}
  1330. proceedsTotal={this.state.proTotal}
  1331. invoiceTotal={this.state.invTotal}
  1332. contactList={this.state.refundInvoice}
  1333. />
  1334. )
  1335. ) : <div />
  1336. }
  1337. </TabPane>
  1338. );
  1339. })}
  1340. {tabList.map((item, index) => {
  1341. if (item.usedOrder) {
  1342. return (
  1343. <TabPane
  1344. tab={"原订单" + (index + 1)}
  1345. key={item.usedOrder}
  1346. >
  1347. {
  1348. this.state.activeKey === String(item.usedOrder) ?
  1349. <Form
  1350. layout="horizontal"
  1351. onSubmit={this.handleSubmit}
  1352. id="demand-form"
  1353. style={{ paddingBottom: "40px" }}
  1354. >
  1355. <Spin spinning={this.state.loading}>
  1356. <OrderDetail
  1357. domId={'yuandingdan' + (index + 1)}
  1358. orderUid={this.state.orderUid}
  1359. orderData={this.state.primaryOrderData}
  1360. getOrderLog={this.getOrderLog}
  1361. dataSourceX={this.state.dataSourceX}
  1362. contactList={this.state.contactList}
  1363. orderNo={this.state.primaryOrderNo}
  1364. totalCui={this.state.totalCui}
  1365. contactListNew={this.state.contactListNew}
  1366. />
  1367. </Spin>
  1368. </Form> : <div />
  1369. }
  1370. </TabPane>
  1371. );
  1372. } else {
  1373. return "";
  1374. }
  1375. })}
  1376. {/* {this.state.status === 4 ? (
  1377. <TabPane tab="原订单" key="3">
  1378. <Form
  1379. layout="horizontal"
  1380. onSubmit={this.handleSubmit}
  1381. id="demand-form"
  1382. style={{ paddingBottom: "40px" }}
  1383. >
  1384. <Spin spinning={this.state.loading}>
  1385. <OrderDetail
  1386. orderData={this.state.primaryOrderData}
  1387. getOrderLog={this.getOrderLog}
  1388. dataSourceX={this.state.dataSourceX}
  1389. contactList={this.state.contactList}
  1390. orderNo={this.state.primaryOrderNo}
  1391. totalCui={this.state.totalCui}
  1392. contactListNew={this.state.contactListNew}
  1393. />
  1394. </Spin>
  1395. </Form>
  1396. </TabPane>
  1397. ) : (
  1398. ""
  1399. )} */}
  1400. {this.state.status === 4 && this.state.isAddition ? (
  1401. this.state.type === 4 || this.state.type === 5 ? (
  1402. <TabPane tab="附加订单" key="c">
  1403. {
  1404. this.state.activeKey === "c" ?
  1405. <AddOrders
  1406. domId='fujiadingdan'
  1407. orderUid={this.state.orderUid}
  1408. processStatus={0}
  1409. data={this.state.orderData.additionalOrder}
  1410. mark={this.state.buttonStatusA}
  1411. getPrimaryOrder={this.getPrimaryOrder}
  1412. closeDesc={this.closeDesc}
  1413. getAdditionalOrder={this.getAdditionalOrder}
  1414. activeKey={this.state.activeKey}
  1415. /> : <div />
  1416. }
  1417. </TabPane>
  1418. ) : (
  1419. ""
  1420. )
  1421. ) : (
  1422. ""
  1423. )}
  1424. </Tabs>
  1425. </Modal> : <div />}
  1426. <Modal
  1427. maskClosable={false}
  1428. visible={this.state.noVisible}
  1429. onOk={this.handleOk}
  1430. onCancel={this.noCancel}
  1431. width="400px"
  1432. title={"拒绝理由"}
  1433. footer=""
  1434. className="admin-desc-content"
  1435. confirmLoading={this.state.confirmLoading}
  1436. >
  1437. <Form layout="horizontal" id="demand-form">
  1438. <Spin spinning={this.state.loading}>
  1439. <div className="clearfix">
  1440. <FormItem
  1441. labelCol={{ span: 4 }}
  1442. wrapperCol={{ span: 16 }}
  1443. label="拒绝理由"
  1444. >
  1445. <Input
  1446. type="textarea"
  1447. placeholder="请输入拒绝理由"
  1448. rows={4}
  1449. value={this.state.reason}
  1450. onChange={e => {
  1451. this.setState({ reason: e.target.value });
  1452. }}
  1453. />
  1454. </FormItem>
  1455. </div>
  1456. <div className="clearfix">
  1457. <Button
  1458. className="cancel"
  1459. type="primary"
  1460. onClick={this.examOks}
  1461. style={{ marginLeft: "50px" }}
  1462. htmlType="submit"
  1463. loading={this.state.aloading}
  1464. >
  1465. 确定
  1466. </Button>
  1467. <Button
  1468. className="cancel"
  1469. type="ghost"
  1470. onClick={this.noCancel}
  1471. style={{ marginLeft: "50px" }}
  1472. >
  1473. 取消
  1474. </Button>
  1475. </div>
  1476. </Spin>
  1477. </Form>
  1478. </Modal>
  1479. {/* <Modal
  1480. visible={this.state.rizhivisible}
  1481. className="admin-desc-content"
  1482. width="800px"
  1483. maskClosable={false}
  1484. title="订单日志"
  1485. footer={null}
  1486. onCancel={this.closeOrderLog}
  1487. >
  1488. <div className="patent-table">
  1489. <Spin spinning={this.state.loading}>
  1490. <Table
  1491. bordered
  1492. columns={this.state.columnsrizhi}
  1493. dataSource={this.state.dataSourcerizhi}
  1494. pagination={false}
  1495. />
  1496. </Spin>
  1497. </div>
  1498. </Modal> */}
  1499. <OrderRiZi
  1500. dataSourcerizhi={this.state.dataSourcerizhi}
  1501. closeOrderLog={this.closeOrderLog}
  1502. visible={this.state.rizhivisible}
  1503. loading={this.state.loading}
  1504. />
  1505. </div>
  1506. {this.state.addnextVisible && <ProjectDetailsReadOnly
  1507. infor={this.state.dataInfor}
  1508. visible={this.state.addnextVisible}
  1509. onCancel={this.nextCancel}
  1510. />}
  1511. </div>
  1512. );
  1513. }
  1514. })
  1515. );
  1516. export default contractChange;