contractYxy.js 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571
  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.state.searchData.deps = [];
  661. this.Cascaders.empty();
  662. this.loadData(1);
  663. } else {
  664. this.setState(
  665. {
  666. searchData: Object.assign(this.state.searchData, obj)
  667. },
  668. () => {
  669. this.loadData(1);
  670. }
  671. );
  672. }
  673. },
  674. rizhi(orderNo) {
  675. $.ajax({
  676. method: "get",
  677. dataType: "json",
  678. crossDomain: false,
  679. url: "/api/admin/newOrder/selectOrderLog",
  680. data: {
  681. orderNo: orderNo
  682. },
  683. success: function (data) {
  684. let theArr = [];
  685. let thisData = data.data;
  686. if (!thisData.length) {
  687. if (data.error && data.error.length) {
  688. message.warning(data.error[0].message);
  689. }
  690. thisData = {};
  691. } else {
  692. for (let i = 0; i < data.data.length; i++) {
  693. let thisdata = data.data[i];
  694. theArr.push({
  695. processName: thisdata.processName,
  696. adminName: thisdata.adminName,
  697. createDate: thisdata.createDate,
  698. remarks: thisdata.remarks
  699. });
  700. }
  701. }
  702. this.setState({
  703. dataSourcerizhi: theArr
  704. });
  705. }.bind(this)
  706. });
  707. },
  708. getOrderLog(orderNo) {
  709. this.setState({
  710. rizhivisible: true
  711. });
  712. this.rizhi(orderNo);
  713. },
  714. closeOrderLog() {
  715. this.setState({
  716. rizhivisible: false
  717. });
  718. },
  719. //节点列表
  720. jiedian(orderNos) {
  721. $.ajax({
  722. method: "get",
  723. dataType: "json",
  724. crossDomain: false,
  725. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  726. data: {
  727. orderNo: orderNos
  728. },
  729. success: function (data) {
  730. let theArr = [];
  731. let thisData = [];
  732. if (data.error.length || data.data.list == "") {
  733. if (data.error && data.error.length) {
  734. message.warning(data.error[0].message);
  735. }
  736. } else {
  737. for (let i = 0; i < data.data.length; i++) {
  738. thisData = data.data[i];
  739. theArr.push({
  740. key: i,
  741. dunSubject: thisData.dunSubject
  742. ? thisData.dunSubject.toString()
  743. : "", //催款科目
  744. id: thisData.id, //节点Id
  745. money: thisData.money, //催款金额
  746. dunStatus: thisData.dunStatus //催款状态
  747. });
  748. }
  749. this.setState({
  750. contactList: theArr
  751. });
  752. }
  753. }.bind(this)
  754. });
  755. },
  756. jiedianNew(orderNos) {
  757. $.ajax({
  758. method: "get",
  759. dataType: "json",
  760. crossDomain: false,
  761. url:
  762. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  763. data: {
  764. orderNo: orderNos
  765. },
  766. success: function (data) {
  767. if (data.error && data.error.length) {
  768. message.warning(data.error[0].message);
  769. } else {
  770. let theArr = [];
  771. let thisData = [];
  772. let arr = data.data || [];
  773. let totalCui = 0;
  774. for (let i = 0; i < arr.length; i++) {
  775. thisData = arr[i];
  776. totalCui += +thisData.money;
  777. theArr.push({
  778. key: i,
  779. dunSubject: thisData.dunSubject
  780. ? thisData.dunSubject.toString()
  781. : "", //催款科目
  782. id: thisData.id, //节点Id
  783. money: thisData.money, //催款金额
  784. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  785. commodityName: thisData.commodityName,
  786. projectType: thisData.projectType,
  787. dunTypeName: thisData.dunTypeName,
  788. status: thisData.status,
  789. waitDay: thisData.waitDay,
  790. effectiveCount: thisData.effectiveCount,
  791. startDate: thisData.startDate,
  792. dunType: thisData.dunType,
  793. appropriationRatio: thisData.appropriationRatio,
  794. customizeName: thisData.customizeName,
  795. customizeTimes: thisData.customizeTimes,
  796. tid: thisData.tid,
  797. });
  798. }
  799. if (!totalCui) {
  800. totalCui = 0;
  801. }
  802. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  803. this.setState({
  804. contactListNew: theArr,
  805. totalCui
  806. });
  807. }
  808. }.bind(this)
  809. }).always(
  810. function () {
  811. this.setState({
  812. loading: false
  813. });
  814. }.bind(this)
  815. );
  816. },
  817. //审核通过
  818. examOk() {
  819. $.ajax({
  820. method: "post",
  821. dataType: "json",
  822. crossDomain: false,
  823. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  824. data: {
  825. orderNo: this.state.orderNo,
  826. orderStatus: 2
  827. },
  828. success: function (data) {
  829. if (data.error.length || data.data.list == "") {
  830. if (data.error && data.error.length) {
  831. message.warning(data.error[0].message);
  832. }
  833. } else {
  834. message.success("该订单已通过审核~");
  835. this.setState({
  836. visible: false
  837. });
  838. this.reset();
  839. }
  840. }.bind(this)
  841. }).always(
  842. function () {
  843. this.setState({
  844. loading: false
  845. });
  846. }.bind(this)
  847. );
  848. },
  849. //通过发给外包
  850. outsourcing() {
  851. $.ajax({
  852. method: "post",
  853. dataType: "json",
  854. crossDomain: false,
  855. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  856. data: {
  857. orderNo: this.state.orderNo,
  858. orderStatus: 2,
  859. outsource: 1
  860. },
  861. success: function (data) {
  862. if (data.error.length || data.data.list == "") {
  863. if (data.error && data.error.length) {
  864. message.warning(data.error[0].message);
  865. }
  866. } else {
  867. message.success("该订单已通过审核~");
  868. this.setState({
  869. visible: false
  870. });
  871. this.reset();
  872. }
  873. }.bind(this)
  874. }).always(
  875. function () {
  876. this.setState({
  877. loading: false
  878. });
  879. }.bind(this)
  880. );
  881. },
  882. //审核不通过
  883. examOks() {
  884. this.setState({
  885. aloading: true
  886. });
  887. $.ajax({
  888. method: "post",
  889. dataType: "json",
  890. crossDomain: false,
  891. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  892. data: {
  893. orderNo: this.state.orderNo,
  894. orderStatus: 3,
  895. reason: this.state.reason
  896. },
  897. success: function (data) {
  898. if (data.error.length || data.data.list == "") {
  899. if (data.error && data.error.length) {
  900. message.warning(data.error[0].message);
  901. this.setState({
  902. aloading: true
  903. });
  904. }
  905. } else {
  906. message.success("该订单已被拒绝~");
  907. this.setState({
  908. visible: false,
  909. aloading: false,
  910. noVisible: false,
  911. reason: ""
  912. });
  913. this.reset();
  914. }
  915. }.bind(this)
  916. }).always(
  917. function () {
  918. this.setState({
  919. loading: false
  920. });
  921. }.bind(this)
  922. );
  923. },
  924. //点击拒绝
  925. examNo() {
  926. this.setState({
  927. noVisible: true
  928. });
  929. },
  930. loadDataChange(key) {
  931. $.ajax({
  932. method: "get",
  933. dataType: "json",
  934. async: false,
  935. crossDomain: false,
  936. url: globalConfig.context + "/api/admin/orderChange/orderChangeLogList",
  937. data: {
  938. changeId: key
  939. },
  940. success: function (data) {
  941. if (data.error.length || data.data.list == "") {
  942. if (data.error && data.error.length) {
  943. message.warning(data.error[0].message);
  944. }
  945. } else {
  946. this.setState({
  947. dataProps: data.data
  948. });
  949. }
  950. }.bind(this)
  951. });
  952. },
  953. callback(key) {
  954. this.setState(
  955. {
  956. activeKey: key
  957. },
  958. () => {
  959. if (key != "a" && key != "c" && key.length < 10) {
  960. this.ChangeDetail(key);
  961. this.loadDataChange(key);
  962. } else if (key != "a" && key != "c" && key.length > 10) {
  963. this.primaryOrder(key);
  964. this.ChangeDetail(key);
  965. this.xiangmu(key);
  966. this.jiedian(key);
  967. this.jiedianNew(key);
  968. this.loadDataChange(key);
  969. }
  970. }
  971. );
  972. if (key === "a") {
  973. if (this.state.orderData.deleteSign !== 3) {
  974. this.xiangmu(this.state.orderNo);
  975. this.jiedian(this.state.orderNo);
  976. this.jiedianNew(this.state.orderNo);
  977. }
  978. }
  979. // if (key === "3") {
  980. // this.primaryOrder(this.state.primaryOrderNo);
  981. // this.xiangmu(this.state.primaryOrderNo);
  982. // this.jiedian(this.state.primaryOrderNo);
  983. // this.jiedianNew(this.state.primaryOrderNo);
  984. // }
  985. if (key === "c") {
  986. this.additionalOrder(this.state.additionalOrder);
  987. this.xiangmu(this.state.additionalOrder);
  988. this.jiedian(this.state.additionalOrder);
  989. this.jiedianNew(this.state.additionalOrder);
  990. this.setState({
  991. buttonStatusA: false
  992. });
  993. } else {
  994. this.setState({
  995. buttonStatusA: true
  996. });
  997. }
  998. },
  999. closeDesc(e, s) {
  1000. this.state.activeKey = "a";
  1001. this.state.userDetaile = false;
  1002. this.state.signBillVisible = false;
  1003. this.state.visible = e;
  1004. if (s) {
  1005. this.loadData(this.state.pageNo);
  1006. }
  1007. },
  1008. // 获取原订单编号
  1009. getPrimaryOrder(value) {
  1010. this.setState({
  1011. primaryOrder: value
  1012. });
  1013. },
  1014. getAdditionalOrder(value) {
  1015. this.setState({
  1016. additionalOrder: value
  1017. });
  1018. },
  1019. getUrl(url) {
  1020. let theorgCodeUrl = [];
  1021. if (url.length) {
  1022. let picArr = [];
  1023. url.map(function (item) {
  1024. if (
  1025. item.response &&
  1026. item.response.data &&
  1027. item.response.data.length
  1028. ) {
  1029. picArr.push(item.response.data);
  1030. }
  1031. });
  1032. theorgCodeUrl = picArr.join(",");
  1033. }
  1034. return theorgCodeUrl;
  1035. },
  1036. sureOut() {
  1037. if (!this.state.companyName) {
  1038. message.warning("公司名称不能为空");
  1039. return;
  1040. }
  1041. if (!this.state.unitPrice) {
  1042. message.warning("单价不能为空");
  1043. return;
  1044. }
  1045. if (!this.state.unitNumber) {
  1046. message.warning("数量不能为空");
  1047. return;
  1048. }
  1049. if (!this.state.amount) {
  1050. message.warning("总金额不能为空");
  1051. return;
  1052. }
  1053. if (!this.state.outsourceRemarks) {
  1054. message.warning("备注不能为空");
  1055. return;
  1056. }
  1057. if (this.state.pictureUrl.length === 0) {
  1058. message.warning("合同扫描件不能为空");
  1059. return;
  1060. }
  1061. $.ajax({
  1062. method: "POST",
  1063. dataType: "json",
  1064. crossDomain: false,
  1065. url: globalConfig.context + "/api/admin/outsourceOrg/auditOutsource",
  1066. data: {
  1067. id: this.state.id,
  1068. orderNo: this.state.orderNo,
  1069. companyName: this.state.companyName,
  1070. amount: this.state.amount,
  1071. outsourceRemarks: this.state.outsourceRemarks,
  1072. unitNumber: this.state.unitNumber,
  1073. unitPrice: this.state.unitPrice,
  1074. attachmentUrl: this.getUrl(this.state.attachmentUrl).length
  1075. ? this.getUrl(this.state.attachmentUrl)
  1076. : "",
  1077. orderStatus: 2,
  1078. pictureUrl: this.getUrl(this.state.pictureUrl).length
  1079. ? this.getUrl(this.state.pictureUrl)
  1080. : ""
  1081. }
  1082. }).done(
  1083. function (data) {
  1084. this.setState({
  1085. loading: false
  1086. });
  1087. if (!data.error.length) {
  1088. message.success("发起成功!");
  1089. this.outReset();
  1090. this.visitCancel();
  1091. } else {
  1092. message.warning(data.error[0].message);
  1093. }
  1094. }.bind(this)
  1095. );
  1096. },
  1097. //关闭输入理由框
  1098. noCancel() {
  1099. this.setState({
  1100. noVisible: false,
  1101. aloading: false,
  1102. reason: ""
  1103. });
  1104. },
  1105. //重置
  1106. reset() {
  1107. this.setState({
  1108. signBillVisible: false
  1109. });
  1110. this.state.orderNo = "";
  1111. this.state.customerName = "";
  1112. this.state.releaseDate[0] = undefined;
  1113. this.state.releaseDate[1] = undefined;
  1114. this.state.approval = undefined;
  1115. this.state.completeSearch = 0;
  1116. this.loadData(1);
  1117. },
  1118. outReset() {
  1119. this.setState({
  1120. companyName: "",
  1121. amount: "",
  1122. unitPrice: "",
  1123. unitNumber: "",
  1124. outsourceRemarks: "",
  1125. attachmentUrl: [],
  1126. pictureUrl: []
  1127. });
  1128. },
  1129. getOrgCodeUrl(e) {
  1130. this.setState({ pictureUrl: e });
  1131. },
  1132. //关闭详情
  1133. visitCancel() {
  1134. this.setState(
  1135. {
  1136. activeKey: "a"
  1137. },
  1138. () => {
  1139. this.setState({
  1140. visible: false,
  1141. contractData: {}
  1142. });
  1143. }
  1144. );
  1145. this.loadData(this.state.pageNo);
  1146. },
  1147. visitOk() {
  1148. this.setState({
  1149. visible: false
  1150. });
  1151. },
  1152. changeList(arr) {
  1153. const newArr = [];
  1154. this.state.columns.forEach(item => {
  1155. arr.forEach(val => {
  1156. if (val === item.title) {
  1157. newArr.push(item);
  1158. }
  1159. });
  1160. });
  1161. this.setState({
  1162. changeList: newArr
  1163. });
  1164. },
  1165. createTabs() {
  1166. this.setState({
  1167. loading: true
  1168. });
  1169. $.ajax({
  1170. url: globalConfig.context + "/api/admin/orderChange/getOrderChange",
  1171. method: "get",
  1172. data: {
  1173. orderNo: this.state.orderNo
  1174. },
  1175. success: (data) => {
  1176. if (data.error && data.error.length) {
  1177. message.warning(data.error[0].message)
  1178. } else {
  1179. this.setState({
  1180. tabList: data.data,
  1181. loading: false
  1182. })
  1183. }
  1184. }
  1185. });
  1186. },
  1187. render() {
  1188. const tabList = this.state.tabList || []
  1189. const formItemLayout = {
  1190. labelCol: { span: 8 },
  1191. wrapperCol: { span: 14 }
  1192. };
  1193. const FormItem = Form.Item;
  1194. const { TabPane } = Tabs;
  1195. return (
  1196. <div className="user-content" style={{ position: "relative" }}>
  1197. <ShowModalDiv ShowModal={this.state.showModal} />
  1198. <div className="content-title" style={{ marginBottom: 10 }}>
  1199. <span style={{ fontWeight: 900, fontSize: 16 }}>
  1200. 合同变更审核订单
  1201. </span>
  1202. </div>
  1203. <div className="user-search">
  1204. <Tabs defaultActiveKey="1" className="test">
  1205. <TabPane tab="搜索" key="1">
  1206. <div>
  1207. <Cascaders
  1208. ref={node => this.Cascaders = node}
  1209. placeholder="订单部门"
  1210. id="id"
  1211. name="name"
  1212. children="list"
  1213. height={28}
  1214. onSel={(e) => {
  1215. const { searchData } = this.state
  1216. searchData["deps"] = JSON.stringify(e);
  1217. this.setState({
  1218. searchData: searchData
  1219. })
  1220. }}
  1221. />
  1222. <SearchInput search={this.search} isYxy={true} />
  1223. </div>
  1224. </TabPane>
  1225. <TabPane tab="更改表格显示数据" key="2">
  1226. <div style={{ marginLeft: 10 }}>
  1227. <ChooseList
  1228. columns={this.state.columns}
  1229. changeFn={this.changeList}
  1230. changeList={this.state.changeList}
  1231. top={55}
  1232. margin={11}
  1233. />
  1234. </div>
  1235. </TabPane>
  1236. </Tabs>
  1237. <div className="patent-table">
  1238. <Spin spinning={this.state.loading}>
  1239. <Table
  1240. size="small"
  1241. bordered
  1242. columns={
  1243. this.state.changeList
  1244. ? this.state.changeList
  1245. : this.state.columns
  1246. }
  1247. style={{
  1248. cursor: 'pointer',
  1249. }}
  1250. dataSource={this.state.dataSource}
  1251. pagination={this.state.pagination}
  1252. onRowClick={this.tableRowClick}
  1253. />
  1254. </Spin>
  1255. </div>
  1256. {this.state.visible &&
  1257. <Modal
  1258. className="customeDetails"
  1259. footer=""
  1260. maskClosable={false}
  1261. width="1200px"
  1262. visible={this.state.visible}
  1263. onOk={this.visitOk}
  1264. onCancel={this.visitCancel}
  1265. >
  1266. <Spin spinning={this.state.loading}>
  1267. <Tabs
  1268. activeKey={this.state.activeKey}
  1269. onChange={this.callback}
  1270. type="card"
  1271. tabBarExtraContent={
  1272. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  1273. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1274. </div>
  1275. }
  1276. >
  1277. <TabPane tab="订单详情" key="a">
  1278. {this.state.activeKey === 'a' ? <div>
  1279. {this.state.orderData.deleteSign === 3 ? (
  1280. <AddOrders
  1281. orderUid={this.state.orderUid}
  1282. processStatus={0}
  1283. data={this.state.orderData.orderNo}
  1284. mark={this.state.buttonStatus}
  1285. getPrimaryOrder={this.getPrimaryOrder}
  1286. totalCui={this.state.totalCui}
  1287. closeDesc={this.closeDesc}
  1288. getAdditionalOrder={this.getAdditionalOrder}
  1289. deleteSign={this.state.orderData.deleteSign}
  1290. />
  1291. ) : (
  1292. <Form
  1293. layout="horizontal"
  1294. onSubmit={this.handleSubmit}
  1295. id="demand-form"
  1296. style={{ paddingBottom: "40px" }}
  1297. >
  1298. <Spin spinning={this.state.loading}>
  1299. <OrderDetail
  1300. domId='dindanxiangqing'
  1301. orderUid={this.state.orderUid}
  1302. orderData={this.state.orderData}
  1303. getOrderLog={this.getOrderLog}
  1304. totalCui={parseFloat(this.state.totalCui)}
  1305. dataSourceX={this.state.dataSourceX}
  1306. contactList={this.state.contactList}
  1307. contactListNew={this.state.contactListNew}
  1308. orderNo={this.state.orderNo}
  1309. />
  1310. </Spin>
  1311. </Form>
  1312. )}
  1313. </div> : <div />}
  1314. </TabPane>
  1315. {tabList.map((item, index, arr) => {
  1316. return (
  1317. <TabPane tab={"合同变更记录" + (index + 1)} key={item.id}>
  1318. {
  1319. this.state.activeKey === String(item.id) ?
  1320. (
  1321. this.state.contractData.processState === 0 &&
  1322. this.state.contractData.status != 5 ? (
  1323. <ChangeApply
  1324. orderUid={this.state.orderUid}
  1325. id={Math.random()}
  1326. approval={this.state.orderData.approval} // 是否特批
  1327. orderData={this.state.contractData}
  1328. voucherUrl={this.state.voucherUrl}
  1329. onCancel={this.visitCancel}
  1330. />
  1331. ) : (
  1332. <ChangeDetail
  1333. domId={'hetongbiangenjilu' + (index + 1)}
  1334. orderUid={this.state.orderUid}
  1335. id={item.id}
  1336. money={
  1337. index == arr.length - 1
  1338. ? this.state.orderData.totalAmount + ""
  1339. : undefined
  1340. }
  1341. visitCancel={this.visitCancel}
  1342. data={this.state.contractData}
  1343. pictureUrl={this.state.voucherUrl}
  1344. contractPictureUrl={this.state.contractPictureUrl}
  1345. attachment={this.state.attachment}
  1346. processState={this.props.processState}
  1347. dataSource={this.state.dataProps}
  1348. proceedsData={this.state.proceedsData}
  1349. proceedsTotal={this.state.proTotal}
  1350. invoiceTotal={this.state.invTotal}
  1351. contactList={this.state.refundInvoice}
  1352. />
  1353. )
  1354. ) : <div />
  1355. }
  1356. </TabPane>
  1357. );
  1358. })}
  1359. {tabList.map((item, index) => {
  1360. if (item.usedOrder) {
  1361. return (
  1362. <TabPane
  1363. tab={"原订单" + (index + 1)}
  1364. key={item.usedOrder}
  1365. >
  1366. {
  1367. this.state.activeKey === String(item.usedOrder) ?
  1368. <Form
  1369. layout="horizontal"
  1370. onSubmit={this.handleSubmit}
  1371. id="demand-form"
  1372. style={{ paddingBottom: "40px" }}
  1373. >
  1374. <Spin spinning={this.state.loading}>
  1375. <OrderDetail
  1376. domId={'yuandingdan' + (index + 1)}
  1377. orderUid={this.state.orderUid}
  1378. orderData={this.state.primaryOrderData}
  1379. getOrderLog={this.getOrderLog}
  1380. dataSourceX={this.state.dataSourceX}
  1381. contactList={this.state.contactList}
  1382. orderNo={this.state.primaryOrderNo}
  1383. totalCui={this.state.totalCui}
  1384. contactListNew={this.state.contactListNew}
  1385. />
  1386. </Spin>
  1387. </Form> : <div />
  1388. }
  1389. </TabPane>
  1390. );
  1391. } else {
  1392. return "";
  1393. }
  1394. })}
  1395. {/* {this.state.status === 4 ? (
  1396. <TabPane tab="原订单" key="3">
  1397. <Form
  1398. layout="horizontal"
  1399. onSubmit={this.handleSubmit}
  1400. id="demand-form"
  1401. style={{ paddingBottom: "40px" }}
  1402. >
  1403. <Spin spinning={this.state.loading}>
  1404. <OrderDetail
  1405. orderData={this.state.primaryOrderData}
  1406. getOrderLog={this.getOrderLog}
  1407. dataSourceX={this.state.dataSourceX}
  1408. contactList={this.state.contactList}
  1409. orderNo={this.state.primaryOrderNo}
  1410. totalCui={this.state.totalCui}
  1411. contactListNew={this.state.contactListNew}
  1412. />
  1413. </Spin>
  1414. </Form>
  1415. </TabPane>
  1416. ) : (
  1417. ""
  1418. )} */}
  1419. {this.state.status === 4 && this.state.isAddition ? (
  1420. this.state.type === 4 || this.state.type === 5 ? (
  1421. <TabPane tab="附加订单" key="c">
  1422. {
  1423. this.state.activeKey === "c" ?
  1424. <AddOrders
  1425. domId='fujiadingdan'
  1426. orderUid={this.state.orderUid}
  1427. processStatus={0}
  1428. data={this.state.orderData.additionalOrder}
  1429. mark={this.state.buttonStatusA}
  1430. getPrimaryOrder={this.getPrimaryOrder}
  1431. closeDesc={this.closeDesc}
  1432. getAdditionalOrder={this.getAdditionalOrder}
  1433. activeKey={this.state.activeKey}
  1434. /> : <div />
  1435. }
  1436. </TabPane>
  1437. ) : (
  1438. ""
  1439. )
  1440. ) : (
  1441. ""
  1442. )}
  1443. </Tabs>
  1444. </Spin>
  1445. </Modal>
  1446. }
  1447. <Modal
  1448. maskClosable={false}
  1449. visible={this.state.noVisible}
  1450. onOk={this.handleOk}
  1451. onCancel={this.noCancel}
  1452. width="400px"
  1453. title={"拒绝理由"}
  1454. footer=""
  1455. className="admin-desc-content"
  1456. confirmLoading={this.state.confirmLoading}
  1457. >
  1458. <Form layout="horizontal" id="demand-form">
  1459. <Spin spinning={this.state.loading}>
  1460. <div className="clearfix">
  1461. <FormItem
  1462. labelCol={{ span: 4 }}
  1463. wrapperCol={{ span: 16 }}
  1464. label="拒绝理由"
  1465. >
  1466. <Input
  1467. type="textarea"
  1468. placeholder="请输入拒绝理由"
  1469. rows={4}
  1470. value={this.state.reason}
  1471. onChange={e => {
  1472. this.setState({ reason: e.target.value });
  1473. }}
  1474. />
  1475. </FormItem>
  1476. </div>
  1477. <div className="clearfix">
  1478. <Button
  1479. className="cancel"
  1480. type="primary"
  1481. onClick={this.examOks}
  1482. style={{ marginLeft: "50px" }}
  1483. htmlType="submit"
  1484. loading={this.state.aloading}
  1485. >
  1486. 确定
  1487. </Button>
  1488. <Button
  1489. className="cancel"
  1490. type="ghost"
  1491. onClick={this.noCancel}
  1492. style={{ marginLeft: "50px" }}
  1493. >
  1494. 取消
  1495. </Button>
  1496. </div>
  1497. </Spin>
  1498. </Form>
  1499. </Modal>
  1500. {/* <Modal
  1501. visible={this.state.rizhivisible}
  1502. className="admin-desc-content"
  1503. width="800px"
  1504. maskClosable={false}
  1505. title="订单日志"
  1506. footer={null}
  1507. onCancel={this.closeOrderLog}
  1508. >
  1509. <div className="patent-table">
  1510. <Spin spinning={this.state.loading}>
  1511. <Table
  1512. bordered
  1513. columns={this.state.columnsrizhi}
  1514. dataSource={this.state.dataSourcerizhi}
  1515. pagination={false}
  1516. />
  1517. </Spin>
  1518. </div>
  1519. </Modal> */}
  1520. <OrderRiZi
  1521. dataSourcerizhi={this.state.dataSourcerizhi}
  1522. closeOrderLog={this.closeOrderLog}
  1523. visible={this.state.rizhivisible}
  1524. loading={this.state.loading}
  1525. />
  1526. </div>
  1527. {/* {this.state.addnextVisible && <ProjectDetailsReadOnly
  1528. infor={this.state.dataInfor}
  1529. visible={this.state.addnextVisible}
  1530. onCancel={this.nextCancel}
  1531. />} */}
  1532. {
  1533. // 项目业务详情
  1534. this.state.addnextVisible &&
  1535. <NewEditProject
  1536. readOnly={true}
  1537. visible={this.state.addnextVisible}
  1538. dataInfor={this.state.dataInfor}
  1539. onCancel={this.nextCancel}
  1540. />
  1541. }
  1542. </div>
  1543. );
  1544. }
  1545. })
  1546. );
  1547. export default contractChange;