contractYxjl.js 47 KB

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