contractYxy.js 48 KB

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