contractCwzj.js 47 KB

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