contractYxgly.js 46 KB

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