contractJszj.js 46 KB

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