contractCwzj.js 47 KB

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