contractYxy.js 47 KB

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