contractJsjl.js 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517
  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/changeDetailJsjl.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. 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. proceedsData: {},
  122. proTotal: 0,
  123. invTotal: 0,
  124. contractData: {},
  125. // 回收退票数据
  126. refundInvoice: [],
  127. RefundInvoice: [],
  128. additionalOrderData: {},
  129. paginations: false,
  130. activeKey: "a",
  131. confirmLoading: false,
  132. aloading: false,
  133. pagination: {
  134. defaultCurrent: 1,
  135. defaultPageSize: 10,
  136. showQuickJumper: true,
  137. pageSize: 10,
  138. onChange: function (page) {
  139. this.loadData(page);
  140. }.bind(this),
  141. showTotal: function (total) {
  142. return "共" + total + "条数据";
  143. }
  144. },
  145. columns: [
  146. {
  147. title: "合同编号",
  148. dataIndex: "contractNo",
  149. key: "contractNo"
  150. },
  151. {
  152. title: "订单编号",
  153. dataIndex: "orderNo",
  154. key: "orderNo"
  155. },
  156. {
  157. title: "客户名称",
  158. dataIndex: "nickname",
  159. key: "nickname",
  160. width: 150,
  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. columnsrizhi: [
  355. {
  356. title: "流程",
  357. dataIndex: "processName",
  358. key: "processName"
  359. },
  360. {
  361. title: "操作人",
  362. dataIndex: "adminName",
  363. key: "adminName"
  364. },
  365. {
  366. title: "时间",
  367. dataIndex: "createDate",
  368. key: "createDate"
  369. }
  370. ],
  371. dataSourceX: [],
  372. ContactsLists: [
  373. {
  374. title: "催款科目",
  375. dataIndex: "dunSubject",
  376. key: "dunSubject",
  377. render: text => {
  378. return getjiedian(text);
  379. }
  380. },
  381. {
  382. title: "金额(万元)",
  383. dataIndex: "money",
  384. key: "money"
  385. },
  386. {
  387. title: "催款状态",
  388. dataIndex: "dunStatus",
  389. key: "dunStatus",
  390. render: text => {
  391. return getCuikuan(text);
  392. }
  393. }
  394. ]
  395. };
  396. },
  397. //页面加载函数
  398. componentWillMount() {
  399. this.loadData();
  400. },
  401. //整行点击
  402. tableRowClick(record) {
  403. this.setState(
  404. {
  405. visible: true,
  406. type: record.type,
  407. status: record.status,
  408. buttonStatus: true,
  409. orderStatus: record.orderStatus,
  410. processStateText: record.processStateText,
  411. id: record.id,
  412. orderNo: record.orderNo
  413. },
  414. () => {
  415. this.xiangqing(record.orderNo);
  416. this.xiangmu(record.orderNo);
  417. this.jiedian(record.orderNo);
  418. this.jiedianNew(record.orderNo);
  419. this.createTabs();
  420. }
  421. );
  422. // console.log("row",this.state.activeKey);
  423. },
  424. //点击打卡项目详情
  425. tableRowClickX(record) {
  426. this.setState({
  427. jid: record.id, //项目ID
  428. kid: record.commodityId, //商品ID
  429. commodityName: record.commodityName, //金额
  430. commodityPrice: record.commodityPrice, //金额
  431. commodityQuantity: record.commodityQuantity, //数量
  432. taskComment: record.taskComment, //备注
  433. main: record.main.toString(), //是否为主要
  434. addnextVisible: true,
  435. dataInfor: record,
  436. addState: 0
  437. });
  438. },
  439. //项目详情关闭
  440. nextCancel() {
  441. this.setState({
  442. addnextVisible: false
  443. });
  444. },
  445. // 合同变更详情
  446. ChangeDetail(id) {
  447. let url = window.location.href.substring(7);
  448. $.ajax({
  449. method: "get",
  450. dataType: "json",
  451. crossDomain: false,
  452. url:
  453. globalConfig.context +
  454. "/api/admin/orderChange/orderChangeDetailsById",
  455. data: {
  456. id: id
  457. },
  458. success: function (data) {
  459. if (data.data) {
  460. let thisdata = data.data;
  461. Object.assign(thisdata, {
  462. processStateText: this.state.processStateText,
  463. userName: this.state.userName,
  464. contractNo: this.state.contractNo
  465. });
  466. this.setState({
  467. contractData: thisdata,
  468. voucherUrl: thisdata.voucherUrl
  469. ? splitUrl(
  470. thisdata.voucherUrl,
  471. ",",
  472. globalConfig.avatarHost + "/upload",
  473. url
  474. )
  475. : [],
  476. attachment: thisdata.attachmentUrl
  477. ? splitUrl(
  478. thisdata.attachmentUrl,
  479. ",",
  480. globalConfig.avatarHost + "/upload",
  481. url
  482. )
  483. : [],
  484. contractPictureUrl: thisdata.contractPictureUrl
  485. ? splitUrl(
  486. thisdata.contractPictureUrl,
  487. ",",
  488. globalConfig.avatarHost + "/upload",
  489. url
  490. )
  491. : []
  492. });
  493. }
  494. }.bind(this)
  495. });
  496. $.ajax({
  497. method: "get",
  498. dataType: "json",
  499. crossDomain: false,
  500. url:
  501. globalConfig.context +
  502. "/api/admin/orderChange/listOrderInvoiceAndBill",
  503. data: {
  504. orderNo: this.state.orderNo
  505. },
  506. success: function (data) {
  507. if (!data.data) return;
  508. let proTotal = 0;
  509. let invTotal = 0;
  510. data.data.bill.forEach(item => {
  511. proTotal += item.transactionAmount;
  512. });
  513. data.data.invoice.forEach(item => {
  514. invTotal += item.amount;
  515. });
  516. this.setState({
  517. proceedsData: data.data,
  518. proTotal: (Math.round(proTotal * 1000000) / 1000000).toFixed(6),
  519. invTotal: (Math.round(invTotal * 1000000) / 1000000).toFixed(6),
  520. });
  521. }.bind(this)
  522. });
  523. $.ajax({
  524. method: "get",
  525. dataType: "json",
  526. crossDomain: false,
  527. url:
  528. globalConfig.context +
  529. "/api/admin/orderChange/listOrderRefundInvoice",
  530. data: {
  531. orderNo: this.state.orderNo
  532. },
  533. success: data => {
  534. if (!data) return;
  535. data.data.forEach(item => {
  536. item.load = true;
  537. });
  538. this.setState({
  539. refundInvoice: data.data
  540. });
  541. }
  542. });
  543. },
  544. //订单详情
  545. xiangqing(orderNos) {
  546. $.ajax({
  547. method: "get",
  548. dataType: "json",
  549. crossDomain: false,
  550. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  551. data: {
  552. orderNo: orderNos
  553. },
  554. success: function (data) {
  555. if (data.error.length || data.data.list == "") {
  556. if (data.error && data.error.length) {
  557. message.warning(data.error[0].message);
  558. }
  559. } else {
  560. let thisdata = data.data;
  561. this.setState({
  562. userName: thisdata.userName,
  563. primaryOrderNo: thisdata.primaryOrder,
  564. additionalOrder: thisdata.additionalOrder,
  565. contractNo: thisdata.contractNo,
  566. // arrears: thisdata.arrears,
  567. orderData: thisdata,
  568. isAddition: thisdata.additionalOrder ? true : false,
  569. deleteSign: thisdata.deleteSign,
  570. });
  571. }
  572. }.bind(this)
  573. });
  574. },
  575. // 原订单数据
  576. primaryOrder(primaryOrder) {
  577. $.ajax({
  578. method: "get",
  579. dataType: "json",
  580. crossDomain: false,
  581. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  582. data: {
  583. orderNo: primaryOrder
  584. },
  585. success: function (data) {
  586. if (data.error.length || data.data.list == "") {
  587. if (data.error && data.error.length) {
  588. message.warning(data.error[0].message);
  589. }
  590. } else {
  591. let thisdata = data.data;
  592. this.setState({
  593. primaryOrderData: thisdata
  594. });
  595. }
  596. }.bind(this)
  597. });
  598. },
  599. // 附加订单数据
  600. additionalOrder(additionalOrder) {
  601. $.ajax({
  602. method: "get",
  603. dataType: "json",
  604. crossDomain: false,
  605. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  606. data: {
  607. orderNo: additionalOrder
  608. },
  609. success: function (data) {
  610. if (data.error.length || data.data.list == "") {
  611. if (data.error && data.error.length) {
  612. message.warning(data.error[0].message);
  613. }
  614. } else {
  615. let thisdata = data.data;
  616. this.setState({
  617. additionalOrderData: thisdata
  618. });
  619. }
  620. }.bind(this)
  621. });
  622. },
  623. //项目列表
  624. xiangmu(orderNos) {
  625. $.ajax({
  626. method: "get",
  627. dataType: "json",
  628. crossDomain: false,
  629. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  630. data: {
  631. orderNo: orderNos
  632. },
  633. success: function (data) {
  634. let theArr = [];
  635. if (data.error.length || data.data.list == "") {
  636. if (data.error && data.error.length) {
  637. message.warning(data.error[0].message);
  638. }
  639. } else {
  640. for (let i = 0; i < data.data.length; i++) {
  641. let thisdata = data.data[i];
  642. thisdata.key = i;
  643. thisdata.sort = thisdata.cSort;
  644. theArr.push(thisdata);
  645. }
  646. }
  647. this.setState({
  648. dataSourceX: theArr
  649. });
  650. }.bind(this)
  651. });
  652. },
  653. search(obj) {
  654. this.setState({
  655. searchData: obj
  656. }, () => {
  657. this.loadData(1);
  658. })
  659. },
  660. rizhi(orderNo) {
  661. $.ajax({
  662. method: "get",
  663. dataType: "json",
  664. crossDomain: false,
  665. url: "/api/admin/newOrder/selectOrderLog",
  666. data: {
  667. orderNo: orderNo
  668. },
  669. success: function (data) {
  670. let theArr = [];
  671. let thisData = data.data;
  672. if (!thisData.length) {
  673. if (data.error && data.error.length) {
  674. message.warning(data.error[0].message);
  675. }
  676. thisData = {};
  677. } else {
  678. for (let i = 0; i < data.data.length; i++) {
  679. let thisdata = data.data[i];
  680. theArr.push({
  681. processName: thisdata.processName,
  682. adminName: thisdata.adminName,
  683. createDate: thisdata.createDate,
  684. remarks: thisdata.remarks
  685. });
  686. }
  687. }
  688. this.setState({
  689. dataSourcerizhi: theArr
  690. });
  691. }.bind(this)
  692. });
  693. },
  694. getOrderLog(orderNo) {
  695. this.setState({
  696. rizhivisible: true
  697. });
  698. this.rizhi(orderNo);
  699. },
  700. closeOrderLog() {
  701. this.setState({
  702. rizhivisible: false
  703. });
  704. },
  705. //节点列表
  706. jiedian(orderNos) {
  707. $.ajax({
  708. method: "get",
  709. dataType: "json",
  710. crossDomain: false,
  711. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  712. data: {
  713. orderNo: orderNos
  714. },
  715. success: function (data) {
  716. let theArr = [];
  717. let thisData = [];
  718. if (data.error.length || data.data.list == "") {
  719. if (data.error && data.error.length) {
  720. message.warning(data.error[0].message);
  721. }
  722. } else {
  723. for (let i = 0; i < data.data.length; i++) {
  724. thisData = data.data[i];
  725. theArr.push({
  726. key: i,
  727. dunSubject: thisData.dunSubject
  728. ? thisData.dunSubject.toString()
  729. : "", //催款科目
  730. id: thisData.id, //节点Id
  731. money: thisData.money, //催款金额
  732. dunStatus: thisData.dunStatus //催款状态
  733. });
  734. }
  735. this.setState({
  736. contactList: theArr
  737. });
  738. }
  739. }.bind(this)
  740. });
  741. },
  742. jiedianNew(orderNos) {
  743. $.ajax({
  744. method: "get",
  745. dataType: "json",
  746. crossDomain: false,
  747. url:
  748. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  749. data: {
  750. orderNo: orderNos
  751. },
  752. success: function (data) {
  753. if (data.error && data.error.length) {
  754. message.warning(data.error[0].message);
  755. } else {
  756. let theArr = [];
  757. let thisData = [];
  758. let arr = data.data || [];
  759. let totalCui = 0;
  760. for (let i = 0; i < arr.length; i++) {
  761. thisData = arr[i];
  762. totalCui += +thisData.money;
  763. theArr.push({
  764. key: i,
  765. dunSubject: thisData.dunSubject
  766. ? thisData.dunSubject.toString()
  767. : "", //催款科目
  768. id: thisData.id, //节点Id
  769. money: thisData.money, //催款金额
  770. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  771. commodityName: thisData.commodityName,
  772. projectType: thisData.projectType,
  773. dunTypeName: thisData.dunTypeName,
  774. status: thisData.status,
  775. waitDay: thisData.waitDay,
  776. effectiveCount: thisData.effectiveCount,
  777. startDate: thisData.startDate,
  778. dunType: thisData.dunType,
  779. appropriationRatio: thisData.appropriationRatio,
  780. customizeName: thisData.customizeName,
  781. customizeTimes: thisData.customizeTimes,
  782. tid: thisData.tid,
  783. });
  784. }
  785. if (!totalCui) {
  786. totalCui = 0;
  787. }
  788. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  789. this.setState({
  790. contactListNew: theArr,
  791. totalCui
  792. });
  793. }
  794. }.bind(this)
  795. }).always(
  796. function () {
  797. this.setState({
  798. loading: false
  799. });
  800. }.bind(this)
  801. );
  802. },
  803. //审核通过
  804. examOk() {
  805. $.ajax({
  806. method: "post",
  807. dataType: "json",
  808. crossDomain: false,
  809. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  810. data: {
  811. orderNo: this.state.orderNo,
  812. orderStatus: 2
  813. },
  814. success: function (data) {
  815. if (data.error.length || data.data.list == "") {
  816. if (data.error && data.error.length) {
  817. message.warning(data.error[0].message);
  818. }
  819. } else {
  820. message.success("该订单已通过审核~");
  821. this.setState({
  822. visible: false
  823. });
  824. this.reset();
  825. }
  826. }.bind(this)
  827. }).always(
  828. function () {
  829. this.setState({
  830. loading: false
  831. });
  832. }.bind(this)
  833. );
  834. },
  835. //通过发给外包
  836. outsourcing() {
  837. $.ajax({
  838. method: "post",
  839. dataType: "json",
  840. crossDomain: false,
  841. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  842. data: {
  843. orderNo: this.state.orderNo,
  844. orderStatus: 2,
  845. outsource: 1
  846. },
  847. success: function (data) {
  848. if (data.error.length || data.data.list == "") {
  849. if (data.error && data.error.length) {
  850. message.warning(data.error[0].message);
  851. }
  852. } else {
  853. message.success("该订单已通过审核~");
  854. this.setState({
  855. visible: false
  856. });
  857. this.reset();
  858. }
  859. }.bind(this)
  860. }).always(
  861. function () {
  862. this.setState({
  863. loading: false
  864. });
  865. }.bind(this)
  866. );
  867. },
  868. //审核不通过
  869. examOks() {
  870. this.setState({
  871. aloading: true
  872. });
  873. $.ajax({
  874. method: "post",
  875. dataType: "json",
  876. crossDomain: false,
  877. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  878. data: {
  879. orderNo: this.state.orderNo,
  880. orderStatus: 3,
  881. reason: this.state.reason
  882. },
  883. success: function (data) {
  884. if (data.error.length || data.data.list == "") {
  885. if (data.error && data.error.length) {
  886. message.warning(data.error[0].message);
  887. this.setState({
  888. aloading: true
  889. });
  890. }
  891. } else {
  892. message.success("该订单已被拒绝~");
  893. this.setState({
  894. visible: false,
  895. aloading: false,
  896. noVisible: false,
  897. reason: ""
  898. });
  899. this.reset();
  900. }
  901. }.bind(this)
  902. }).always(
  903. function () {
  904. this.setState({
  905. loading: false
  906. });
  907. }.bind(this)
  908. );
  909. },
  910. //点击拒绝
  911. examNo() {
  912. this.setState({
  913. noVisible: true
  914. });
  915. },
  916. loadDataChange(key) {
  917. $.ajax({
  918. method: "get",
  919. dataType: "json",
  920. async: false,
  921. crossDomain: false,
  922. url: globalConfig.context + "/api/admin/orderChange/orderChangeLogList",
  923. data: {
  924. changeId: key
  925. },
  926. success: function (data) {
  927. if (data.error.length || data.data.list == "") {
  928. if (data.error && data.error.length) {
  929. message.warning(data.error[0].message);
  930. }
  931. } else {
  932. // console.log("拿到历史", data.data);
  933. this.setState({
  934. dataProps: data.data
  935. });
  936. }
  937. }.bind(this)
  938. });
  939. },
  940. callback(key) {
  941. this.setState(
  942. {
  943. activeKey: key
  944. },
  945. () => {
  946. if (key != "a" && key != "c" && key.length < 10) {
  947. this.ChangeDetail(key);
  948. this.loadDataChange(key);
  949. } else if (key != "a" && key != "c" && key.length > 10) {
  950. this.primaryOrder(key);
  951. this.xiangmu(key);
  952. this.jiedian(key);
  953. this.jiedianNew(key);
  954. this.loadDataChange(key);
  955. }
  956. }
  957. );
  958. // console.log("change",this.state.activeKey);
  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.id);
  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.loadData(1);
  1105. },
  1106. outReset() {
  1107. this.setState({
  1108. companyName: "",
  1109. amount: "",
  1110. unitPrice: "",
  1111. unitNumber: "",
  1112. outsourceRemarks: "",
  1113. attachmentUrl: [],
  1114. pictureUrl: []
  1115. });
  1116. },
  1117. getOrgCodeUrl(e) {
  1118. this.setState({ pictureUrl: e });
  1119. },
  1120. //关闭详情
  1121. visitCancel() {
  1122. this.setState(
  1123. {
  1124. visible: false,
  1125. activeKey: "a"
  1126. },
  1127. () => {
  1128. this.setState({
  1129. activeKey: "a"
  1130. });
  1131. }
  1132. );
  1133. this.loadData(this.state.page);
  1134. // console.log("table",this.state.activeKey);
  1135. },
  1136. visitOk() {
  1137. this.setState({
  1138. visible: false
  1139. });
  1140. },
  1141. createTabs() {
  1142. $.ajax({
  1143. url: globalConfig.context + "/api/admin/orderChange/getOrderChange",
  1144. method: "get",
  1145. data: {
  1146. orderNo: this.state.orderNo
  1147. },
  1148. success: data => {
  1149. if (data.error && data.error.length) {
  1150. message.warning(data.error[0].message);
  1151. } else {
  1152. this.setState({
  1153. tabList: data.data
  1154. });
  1155. }
  1156. }
  1157. });
  1158. },
  1159. changeList(arr) {
  1160. const newArr = [];
  1161. this.state.columns.forEach(item => {
  1162. arr.forEach(val => {
  1163. if (val === item.title) {
  1164. newArr.push(item);
  1165. }
  1166. });
  1167. });
  1168. this.setState({
  1169. changeList: newArr
  1170. });
  1171. },
  1172. render() {
  1173. const tabList = this.state.tabList || [];
  1174. const formItemLayout = {
  1175. labelCol: { span: 8 },
  1176. wrapperCol: { span: 14 }
  1177. };
  1178. const FormItem = Form.Item;
  1179. const { TabPane } = Tabs;
  1180. return (
  1181. <div className="user-content">
  1182. <ShowModalDiv ShowModal={this.state.showModal} onClose={() => { this.setState({ showModal: false }) }} />
  1183. <div className="content-title" style={{ marginBottom: 10 }}>
  1184. <span style={{ fontWeight: 900, fontSize: 16 }}>
  1185. 合同变更审核订单
  1186. </span>
  1187. </div>
  1188. <div className="user-search">
  1189. <Tabs
  1190. defaultActiveKey="1"
  1191. onChange={this.callback}
  1192. className="test">
  1193. <TabPane tab="搜索" key="1">
  1194. <div style={{ marginLeft: 10 }}>
  1195. <SearchInput search={this.search} />
  1196. </div>
  1197. </TabPane>
  1198. <TabPane tab="更改表格显示数据" key="2">
  1199. <div style={{ marginLeft: 10 }}>
  1200. <ChooseList
  1201. columns={this.state.columns}
  1202. changeFn={this.changeList}
  1203. changeList={this.state.changeList}
  1204. top={55}
  1205. margin={11}
  1206. />
  1207. </div>
  1208. </TabPane>
  1209. </Tabs>
  1210. <div className="patent-table">
  1211. <Spin spinning={this.state.loading}>
  1212. <Table
  1213. size="small"
  1214. bordered
  1215. columns={
  1216. this.state.changeList
  1217. ? this.state.changeList
  1218. : this.state.columns
  1219. }
  1220. dataSource={this.state.dataSource}
  1221. pagination={this.state.pagination}
  1222. onRowClick={this.tableRowClick}
  1223. />
  1224. </Spin>
  1225. </div>
  1226. {
  1227. this.state.visible &&
  1228. <Modal
  1229. className="customeDetails"
  1230. footer=""
  1231. maskClosable={false}
  1232. width="1200px"
  1233. visible={this.state.visible}
  1234. onOk={this.visitOk}
  1235. onCancel={this.visitCancel}
  1236. >
  1237. <Tabs
  1238. activeKey={this.state.activeKey}
  1239. onChange={this.callback}
  1240. type="card"
  1241. tabBarExtraContent={
  1242. <div style={{ fontWeight: 'bold', paddingRight: '15px' }}>
  1243. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1244. </div>
  1245. }
  1246. >
  1247. <TabPane tab="订单详情" key="a">
  1248. <Form
  1249. layout="horizontal"
  1250. onSubmit={this.handleSubmit}
  1251. id="demand-form"
  1252. style={{ paddingBottom: "40px" }}
  1253. >
  1254. <Spin spinning={this.state.loading}>
  1255. {
  1256. this.state.activeKey == "a" &&
  1257. <OrderDetail
  1258. domId='dindanxiangqing'
  1259. orderData={this.state.orderData}
  1260. getOrderLog={this.getOrderLog}
  1261. dataSourceX={this.state.dataSourceX}
  1262. contactList={this.state.contactList}
  1263. orderNo={this.state.orderNo}
  1264. totalCui={this.state.totalCui}
  1265. contactListNew={this.state.contactListNew}
  1266. />
  1267. }
  1268. </Spin>
  1269. </Form>
  1270. </TabPane>
  1271. {/* <TabPane tab="合同变更记录" key="2">
  1272. <ChangeDetail
  1273. data={this.state.contractData}
  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. {
  1290. this.state.activeKey == item.id &&
  1291. <ChangeDetail
  1292. id={item.id}
  1293. domId={'hetongbiangenjilu' + (index + 1)}
  1294. money={index == arr.length - 1 ? this.state.orderData.totalAmount + "" : undefined}
  1295. data={this.state.contractData}
  1296. pictureUrl={this.state.voucherUrl}
  1297. contractPictureUrl={this.state.contractPictureUrl}
  1298. attachment={this.state.attachment}
  1299. processState={this.props.processState}
  1300. // loadData={this.callback}
  1301. reset={this.state.visible}
  1302. dataSource={this.state.dataProps}
  1303. proceedsData={this.state.proceedsData}
  1304. proceedsTotal={this.state.proTotal}
  1305. invoiceTotal={this.state.invTotal}
  1306. contactList={this.state.refundInvoice}
  1307. onCancel={this.visitCancel}
  1308. />
  1309. }
  1310. </TabPane>
  1311. );
  1312. })}
  1313. {/* {this.state.status === 4 ? (
  1314. <TabPane tab="原订单" key="3">
  1315. <Form
  1316. layout="horizontal"
  1317. onSubmit={this.handleSubmit}
  1318. id="demand-form"
  1319. style={{ paddingBottom: "40px" }}
  1320. >
  1321. <Spin spinning={this.state.loading}>
  1322. <OrderDetail
  1323. orderData={this.state.primaryOrderData}
  1324. getOrderLog={this.getOrderLog}
  1325. dataSourceX={this.state.dataSourceX}
  1326. contactList={this.state.contactList}
  1327. orderNo={this.state.primaryOrderNo}
  1328. totalCui={this.state.totalCui}
  1329. contactListNew={this.state.contactListNew}
  1330. />
  1331. </Spin>
  1332. </Form>
  1333. </TabPane>
  1334. ) : (
  1335. ""
  1336. )} */}
  1337. {tabList.map((item, index) => {
  1338. if (item.usedOrder) {
  1339. return (
  1340. <TabPane
  1341. tab={"原订单" + (tabList.length - index)}
  1342. key={item.usedOrder}
  1343. >
  1344. {
  1345. this.state.activeKey == item.usedOrder &&
  1346. <Form
  1347. layout="horizontal"
  1348. onSubmit={this.handleSubmit}
  1349. id="demand-form"
  1350. style={{ paddingBottom: "40px" }}
  1351. >
  1352. <Spin spinning={this.state.loading}>
  1353. <OrderDetail
  1354. domId={'yuandingdan' + (index + 1)}
  1355. orderData={this.state.primaryOrderData}
  1356. getOrderLog={this.getOrderLog}
  1357. dataSourceX={this.state.dataSourceX}
  1358. contactList={this.state.contactList}
  1359. orderNo={this.state.primaryOrderNo}
  1360. totalCui={this.state.totalCui}
  1361. contactListNew={this.state.contactListNew}
  1362. />
  1363. </Spin>
  1364. </Form>
  1365. }
  1366. </TabPane>
  1367. );
  1368. } else {
  1369. return "";
  1370. }
  1371. })}
  1372. {this.state.status === 4 && this.state.isAddition ? (
  1373. this.state.type === 4 || this.state.type === 5 ? (
  1374. <TabPane tab="附加订单" key="c">
  1375. <OrderDetail
  1376. orderData={this.state.additionalOrderData}
  1377. getOrderLog={this.getOrderLog}
  1378. dataSourceX={this.state.dataSourceX}
  1379. contactList={this.state.contactList}
  1380. orderNo={this.state.additionalOrder}
  1381. totalCui={this.state.totalCui}
  1382. contactListNew={this.state.contactListNew}
  1383. />
  1384. </TabPane>
  1385. ) : (
  1386. ""
  1387. )
  1388. ) : (
  1389. ""
  1390. )}
  1391. </Tabs>
  1392. </Modal>
  1393. }
  1394. <Modal
  1395. maskClosable={false}
  1396. visible={this.state.noVisible}
  1397. onOk={this.handleOk}
  1398. onCancel={this.noCancel}
  1399. width="400px"
  1400. title={"拒绝理由"}
  1401. footer=""
  1402. className="admin-desc-content"
  1403. confirmLoading={this.state.confirmLoading}
  1404. >
  1405. <Form layout="horizontal" id="demand-form">
  1406. <Spin spinning={this.state.loading}>
  1407. <div className="clearfix">
  1408. <FormItem
  1409. labelCol={{ span: 4 }}
  1410. wrapperCol={{ span: 16 }}
  1411. label="拒绝理由"
  1412. >
  1413. <Input
  1414. type="textarea"
  1415. placeholder="请输入拒绝理由"
  1416. rows={4}
  1417. value={this.state.reason}
  1418. onChange={e => {
  1419. this.setState({ reason: e.target.value });
  1420. }}
  1421. />
  1422. </FormItem>
  1423. </div>
  1424. <div className="clearfix">
  1425. <Button
  1426. className="cancel"
  1427. type="primary"
  1428. onClick={this.examOks}
  1429. style={{ marginLeft: "50px" }}
  1430. htmlType="submit"
  1431. loading={this.state.aloading}
  1432. >
  1433. 确定
  1434. </Button>
  1435. <Button
  1436. className="cancel"
  1437. type="ghost"
  1438. onClick={this.noCancel}
  1439. style={{ marginLeft: "50px" }}
  1440. >
  1441. 取消
  1442. </Button>
  1443. </div>
  1444. </Spin>
  1445. </Form>
  1446. </Modal>
  1447. {/* <Modal
  1448. visible={this.state.rizhivisible}
  1449. className="admin-desc-content"
  1450. width="800px"
  1451. maskClosable={false}
  1452. title="订单日志"
  1453. footer={null}
  1454. onCancel={this.closeOrderLog}
  1455. >
  1456. <div className="patent-table">
  1457. <Spin spinning={this.state.loading}>
  1458. <Table
  1459. bordered
  1460. columns={this.state.columnsrizhi}
  1461. dataSource={this.state.dataSourcerizhi}
  1462. pagination={false}
  1463. />
  1464. </Spin>
  1465. </div>
  1466. </Modal> */}
  1467. <OrderRiZi
  1468. dataSourcerizhi={this.state.dataSourcerizhi}
  1469. closeOrderLog={this.closeOrderLog}
  1470. visible={this.state.rizhivisible}
  1471. loading={this.state.loading}
  1472. />
  1473. </div>
  1474. {/* {this.state.addnextVisible && <ProjectDetailsReadOnly
  1475. infor={this.state.dataInfor}
  1476. visible={this.state.addnextVisible}
  1477. onCancel={this.nextCancel}
  1478. />} */}
  1479. {
  1480. // 项目业务详情
  1481. this.state.addnextVisible &&
  1482. <NewEditProject
  1483. readOnly={true}
  1484. visible={this.state.addnextVisible}
  1485. dataInfor={this.state.dataInfor}
  1486. onCancel={this.nextCancel}
  1487. />
  1488. }
  1489. </div>
  1490. );
  1491. }
  1492. })
  1493. );
  1494. export default contractChange;