contractYxy.js 48 KB

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