contractYxy.js 49 KB

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