contractCwzj.js 47 KB

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