contractYxy.js 48 KB

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