contractYxy.js 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565
  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. });
  1141. }
  1142. );
  1143. this.loadData(this.state.pageNo);
  1144. },
  1145. visitOk() {
  1146. this.setState({
  1147. visible: false
  1148. });
  1149. },
  1150. changeList(arr) {
  1151. const newArr = [];
  1152. this.state.columns.forEach(item => {
  1153. arr.forEach(val => {
  1154. if (val === item.title) {
  1155. newArr.push(item);
  1156. }
  1157. });
  1158. });
  1159. this.setState({
  1160. changeList: newArr
  1161. });
  1162. },
  1163. createTabs() {
  1164. $.ajax({
  1165. url: globalConfig.context + "/api/admin/orderChange/getOrderChange",
  1166. method: "get",
  1167. data: {
  1168. orderNo: this.state.orderNo
  1169. },
  1170. success: (data) => {
  1171. if (data.error && data.error.length) {
  1172. message.warning(data.error[0].message)
  1173. } else {
  1174. this.setState({
  1175. tabList: data.data
  1176. })
  1177. }
  1178. }
  1179. });
  1180. },
  1181. render() {
  1182. const tabList = this.state.tabList || []
  1183. const formItemLayout = {
  1184. labelCol: { span: 8 },
  1185. wrapperCol: { span: 14 }
  1186. };
  1187. const FormItem = Form.Item;
  1188. const { TabPane } = Tabs;
  1189. return (
  1190. <div className="user-content" style={{ position: "relative" }}>
  1191. <ShowModalDiv ShowModal={this.state.showModal} />
  1192. <div className="content-title" style={{ marginBottom: 10 }}>
  1193. <span style={{ fontWeight: 900, fontSize: 16 }}>
  1194. 合同变更审核订单
  1195. </span>
  1196. </div>
  1197. <div className="user-search">
  1198. <Tabs defaultActiveKey="1" className="test">
  1199. <TabPane tab="搜索" key="1">
  1200. <div>
  1201. <Cascaders
  1202. ref={node => this.Cascaders = node}
  1203. placeholder="订单部门"
  1204. id="id"
  1205. name="name"
  1206. children="list"
  1207. height={28}
  1208. onSel={(e) => {
  1209. const { searchData } = this.state
  1210. searchData["deps"] = JSON.stringify(e);
  1211. this.setState({
  1212. searchData: searchData
  1213. })
  1214. }}
  1215. />
  1216. <SearchInput search={this.search} isYxy={true} />
  1217. </div>
  1218. </TabPane>
  1219. <TabPane tab="更改表格显示数据" key="2">
  1220. <div style={{ marginLeft: 10 }}>
  1221. <ChooseList
  1222. columns={this.state.columns}
  1223. changeFn={this.changeList}
  1224. changeList={this.state.changeList}
  1225. top={55}
  1226. margin={11}
  1227. />
  1228. </div>
  1229. </TabPane>
  1230. </Tabs>
  1231. <div className="patent-table">
  1232. <Spin spinning={this.state.loading}>
  1233. <Table
  1234. size="small"
  1235. bordered
  1236. columns={
  1237. this.state.changeList
  1238. ? this.state.changeList
  1239. : this.state.columns
  1240. }
  1241. style={{
  1242. cursor: 'pointer',
  1243. }}
  1244. dataSource={this.state.dataSource}
  1245. pagination={this.state.pagination}
  1246. onRowClick={this.tableRowClick}
  1247. />
  1248. </Spin>
  1249. </div>
  1250. {this.state.visible &&
  1251. <Modal
  1252. className="customeDetails"
  1253. footer=""
  1254. maskClosable={false}
  1255. width="1200px"
  1256. visible={this.state.visible}
  1257. onOk={this.visitOk}
  1258. onCancel={this.visitCancel}
  1259. >
  1260. <Spin spinning={this.state.loading}>
  1261. <Tabs
  1262. activeKey={this.state.activeKey}
  1263. onChange={this.callback}
  1264. type="card"
  1265. tabBarExtraContent={
  1266. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  1267. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1268. </div>
  1269. }
  1270. >
  1271. <TabPane tab="订单详情" key="a">
  1272. {this.state.activeKey === 'a' ? <div>
  1273. {this.state.orderData.deleteSign === 3 ? (
  1274. <AddOrders
  1275. orderUid={this.state.orderUid}
  1276. processStatus={0}
  1277. data={this.state.orderData.orderNo}
  1278. mark={this.state.buttonStatus}
  1279. getPrimaryOrder={this.getPrimaryOrder}
  1280. totalCui={this.state.totalCui}
  1281. closeDesc={this.closeDesc}
  1282. getAdditionalOrder={this.getAdditionalOrder}
  1283. deleteSign={this.state.orderData.deleteSign}
  1284. />
  1285. ) : (
  1286. <Form
  1287. layout="horizontal"
  1288. onSubmit={this.handleSubmit}
  1289. id="demand-form"
  1290. style={{ paddingBottom: "40px" }}
  1291. >
  1292. <Spin spinning={this.state.loading}>
  1293. <OrderDetail
  1294. domId='dindanxiangqing'
  1295. orderUid={this.state.orderUid}
  1296. orderData={this.state.orderData}
  1297. getOrderLog={this.getOrderLog}
  1298. totalCui={parseFloat(this.state.totalCui)}
  1299. dataSourceX={this.state.dataSourceX}
  1300. contactList={this.state.contactList}
  1301. contactListNew={this.state.contactListNew}
  1302. orderNo={this.state.orderNo}
  1303. />
  1304. </Spin>
  1305. </Form>
  1306. )}
  1307. </div> : <div />}
  1308. </TabPane>
  1309. {tabList.map((item, index, arr) => {
  1310. return (
  1311. <TabPane tab={"合同变更记录" + (index + 1)} key={item.id}>
  1312. {
  1313. this.state.activeKey === String(item.id) ?
  1314. (
  1315. this.state.contractData.processState === 0 &&
  1316. this.state.contractData.status != 5 ? (
  1317. <ChangeApply
  1318. orderUid={this.state.orderUid}
  1319. id={Math.random()}
  1320. approval={this.state.orderData.approval} // 是否特批
  1321. orderData={this.state.contractData}
  1322. voucherUrl={this.state.voucherUrl}
  1323. onCancel={this.visitCancel}
  1324. />
  1325. ) : (
  1326. <ChangeDetail
  1327. domId={'hetongbiangenjilu' + (index + 1)}
  1328. orderUid={this.state.orderUid}
  1329. id={item.id}
  1330. money={
  1331. index == arr.length - 1
  1332. ? this.state.orderData.totalAmount + ""
  1333. : undefined
  1334. }
  1335. visitCancel={this.visitCancel}
  1336. data={this.state.contractData}
  1337. pictureUrl={this.state.voucherUrl}
  1338. contractPictureUrl={this.state.contractPictureUrl}
  1339. attachment={this.state.attachment}
  1340. processState={this.props.processState}
  1341. dataSource={this.state.dataProps}
  1342. proceedsData={this.state.proceedsData}
  1343. proceedsTotal={this.state.proTotal}
  1344. invoiceTotal={this.state.invTotal}
  1345. contactList={this.state.refundInvoice}
  1346. />
  1347. )
  1348. ) : <div />
  1349. }
  1350. </TabPane>
  1351. );
  1352. })}
  1353. {tabList.map((item, index) => {
  1354. if (item.usedOrder) {
  1355. return (
  1356. <TabPane
  1357. tab={"原订单" + (index + 1)}
  1358. key={item.usedOrder}
  1359. >
  1360. {
  1361. this.state.activeKey === String(item.usedOrder) ?
  1362. <Form
  1363. layout="horizontal"
  1364. onSubmit={this.handleSubmit}
  1365. id="demand-form"
  1366. style={{ paddingBottom: "40px" }}
  1367. >
  1368. <Spin spinning={this.state.loading}>
  1369. <OrderDetail
  1370. domId={'yuandingdan' + (index + 1)}
  1371. orderUid={this.state.orderUid}
  1372. orderData={this.state.primaryOrderData}
  1373. getOrderLog={this.getOrderLog}
  1374. dataSourceX={this.state.dataSourceX}
  1375. contactList={this.state.contactList}
  1376. orderNo={this.state.primaryOrderNo}
  1377. totalCui={this.state.totalCui}
  1378. contactListNew={this.state.contactListNew}
  1379. />
  1380. </Spin>
  1381. </Form> : <div />
  1382. }
  1383. </TabPane>
  1384. );
  1385. } else {
  1386. return "";
  1387. }
  1388. })}
  1389. {/* {this.state.status === 4 ? (
  1390. <TabPane tab="原订单" key="3">
  1391. <Form
  1392. layout="horizontal"
  1393. onSubmit={this.handleSubmit}
  1394. id="demand-form"
  1395. style={{ paddingBottom: "40px" }}
  1396. >
  1397. <Spin spinning={this.state.loading}>
  1398. <OrderDetail
  1399. orderData={this.state.primaryOrderData}
  1400. getOrderLog={this.getOrderLog}
  1401. dataSourceX={this.state.dataSourceX}
  1402. contactList={this.state.contactList}
  1403. orderNo={this.state.primaryOrderNo}
  1404. totalCui={this.state.totalCui}
  1405. contactListNew={this.state.contactListNew}
  1406. />
  1407. </Spin>
  1408. </Form>
  1409. </TabPane>
  1410. ) : (
  1411. ""
  1412. )} */}
  1413. {this.state.status === 4 && this.state.isAddition ? (
  1414. this.state.type === 4 || this.state.type === 5 ? (
  1415. <TabPane tab="附加订单" key="c">
  1416. {
  1417. this.state.activeKey === "c" ?
  1418. <AddOrders
  1419. domId='fujiadingdan'
  1420. orderUid={this.state.orderUid}
  1421. processStatus={0}
  1422. data={this.state.orderData.additionalOrder}
  1423. mark={this.state.buttonStatusA}
  1424. getPrimaryOrder={this.getPrimaryOrder}
  1425. closeDesc={this.closeDesc}
  1426. getAdditionalOrder={this.getAdditionalOrder}
  1427. activeKey={this.state.activeKey}
  1428. /> : <div />
  1429. }
  1430. </TabPane>
  1431. ) : (
  1432. ""
  1433. )
  1434. ) : (
  1435. ""
  1436. )}
  1437. </Tabs>
  1438. </Spin>
  1439. </Modal>
  1440. }
  1441. <Modal
  1442. maskClosable={false}
  1443. visible={this.state.noVisible}
  1444. onOk={this.handleOk}
  1445. onCancel={this.noCancel}
  1446. width="400px"
  1447. title={"拒绝理由"}
  1448. footer=""
  1449. className="admin-desc-content"
  1450. confirmLoading={this.state.confirmLoading}
  1451. >
  1452. <Form layout="horizontal" id="demand-form">
  1453. <Spin spinning={this.state.loading}>
  1454. <div className="clearfix">
  1455. <FormItem
  1456. labelCol={{ span: 4 }}
  1457. wrapperCol={{ span: 16 }}
  1458. label="拒绝理由"
  1459. >
  1460. <Input
  1461. type="textarea"
  1462. placeholder="请输入拒绝理由"
  1463. rows={4}
  1464. value={this.state.reason}
  1465. onChange={e => {
  1466. this.setState({ reason: e.target.value });
  1467. }}
  1468. />
  1469. </FormItem>
  1470. </div>
  1471. <div className="clearfix">
  1472. <Button
  1473. className="cancel"
  1474. type="primary"
  1475. onClick={this.examOks}
  1476. style={{ marginLeft: "50px" }}
  1477. htmlType="submit"
  1478. loading={this.state.aloading}
  1479. >
  1480. 确定
  1481. </Button>
  1482. <Button
  1483. className="cancel"
  1484. type="ghost"
  1485. onClick={this.noCancel}
  1486. style={{ marginLeft: "50px" }}
  1487. >
  1488. 取消
  1489. </Button>
  1490. </div>
  1491. </Spin>
  1492. </Form>
  1493. </Modal>
  1494. {/* <Modal
  1495. visible={this.state.rizhivisible}
  1496. className="admin-desc-content"
  1497. width="800px"
  1498. maskClosable={false}
  1499. title="订单日志"
  1500. footer={null}
  1501. onCancel={this.closeOrderLog}
  1502. >
  1503. <div className="patent-table">
  1504. <Spin spinning={this.state.loading}>
  1505. <Table
  1506. bordered
  1507. columns={this.state.columnsrizhi}
  1508. dataSource={this.state.dataSourcerizhi}
  1509. pagination={false}
  1510. />
  1511. </Spin>
  1512. </div>
  1513. </Modal> */}
  1514. <OrderRiZi
  1515. dataSourcerizhi={this.state.dataSourcerizhi}
  1516. closeOrderLog={this.closeOrderLog}
  1517. visible={this.state.rizhivisible}
  1518. loading={this.state.loading}
  1519. />
  1520. </div>
  1521. {/* {this.state.addnextVisible && <ProjectDetailsReadOnly
  1522. infor={this.state.dataInfor}
  1523. visible={this.state.addnextVisible}
  1524. onCancel={this.nextCancel}
  1525. />} */}
  1526. {
  1527. // 项目业务详情
  1528. this.state.addnextVisible &&
  1529. <NewEditProject
  1530. readOnly={true}
  1531. visible={this.state.addnextVisible}
  1532. dataInfor={this.state.dataInfor}
  1533. onCancel={this.nextCancel}
  1534. />
  1535. }
  1536. </div>
  1537. );
  1538. }
  1539. })
  1540. );
  1541. export default contractChange;