contractYxy.js 49 KB

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