contractYxgly.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/changeDetailYxgly.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} shiroList="yxgly"/>
  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' ?
  1257. <OrderDetail
  1258. orderData={this.state.orderData}
  1259. orderUid={this.state.orderUid}
  1260. getOrderLog={this.getOrderLog}
  1261. totalCui={this.state.totalCui}
  1262. dataSourceX={this.state.dataSourceX}
  1263. contactList={this.state.contactList}
  1264. contactListNew={this.state.contactListNew}
  1265. orderNo={this.state.orderNo}
  1266. /> : <div />}
  1267. </Spin>
  1268. </Form>
  1269. </TabPane>
  1270. {/* <TabPane tab="合同变更记录" key="2">
  1271. <ChangeDetail
  1272. data={this.state.contractData}
  1273. pictureUrl={this.state.voucherUrl}
  1274. processState={this.props.processState}
  1275. dataSource={this.state.dataProps}
  1276. proceedsData={this.state.proceedsData}
  1277. proceedsTotal={this.state.proTotal}
  1278. invoiceTotal={this.state.invTotal}
  1279. contactList={this.state.refundInvoice}
  1280. onCancel={this.visitCancel}
  1281. />
  1282. </TabPane> */}
  1283. {tabList.map((item, index, arr) => {
  1284. return (
  1285. <TabPane tab={"合同变更记录" + (tabList.length - index)} key={item.id}>
  1286. {
  1287. this.state.activeKey === String(item.id) ?
  1288. <ChangeDetail
  1289. id={item.id}
  1290. orderNo={this.state.orderNo}
  1291. orderUid={this.state.orderUid}
  1292. money={index == arr.length - 1 ? this.state.orderData.totalAmount + "" : undefined}
  1293. data={this.state.contractData}
  1294. pictureUrl={this.state.voucherUrl}
  1295. contractPictureUrl={this.state.contractPictureUrl}
  1296. attachment={this.state.attachment}
  1297. processState={this.props.processState}
  1298. dataSource={this.state.dataProps}
  1299. proceedsData={this.state.proceedsData}
  1300. proceedsTotal={this.state.proTotal}
  1301. invoiceTotal={this.state.invTotal}
  1302. contactList={this.state.refundInvoice}
  1303. onCancel={this.visitCancel}
  1304. /> : <div />
  1305. }
  1306. </TabPane>
  1307. );
  1308. })}
  1309. {/* {this.state.status === 4 ? (
  1310. <TabPane tab="原订单" key="3">
  1311. <Form
  1312. layout="horizontal"
  1313. onSubmit={this.handleSubmit}
  1314. id="demand-form"
  1315. style={{ paddingBottom: "40px" }}
  1316. >
  1317. <Spin spinning={this.state.loading}>
  1318. <OrderDetail
  1319. orderData={this.state.primaryOrderData}
  1320. getOrderLog={this.getOrderLog}
  1321. dataSourceX={this.state.dataSourceX}
  1322. contactList={this.state.contactList}
  1323. totalCui={this.state.totalCui}
  1324. contactListNew={this.state.contactListNew}
  1325. orderNo={this.state.primaryOrderNo}
  1326. />
  1327. </Spin>
  1328. </Form>
  1329. </TabPane>
  1330. ) : (
  1331. ""
  1332. )} */}
  1333. {tabList.map((item, index) => {
  1334. if (item.usedOrder) {
  1335. return (
  1336. <TabPane
  1337. tab={"原订单" + (tabList.length - index)}
  1338. key={item.usedOrder}
  1339. >
  1340. {
  1341. this.state.activeKey == item.usedOrder &&
  1342. <Form
  1343. layout="horizontal"
  1344. onSubmit={this.handleSubmit}
  1345. id="demand-form"
  1346. style={{ paddingBottom: "40px" }}
  1347. >
  1348. <Spin spinning={this.state.loading}>
  1349. {
  1350. this.state.activeKey === String(item.usedOrder) ?
  1351. <OrderDetail
  1352. orderData={this.state.primaryOrderData}
  1353. getOrderLog={this.getOrderLog}
  1354. dataSourceX={this.state.dataSourceX}
  1355. contactList={this.state.contactList}
  1356. orderNo={this.state.primaryOrderNo}
  1357. totalCui={this.state.totalCui}
  1358. contactListNew={this.state.contactListNew}
  1359. /> : <div />
  1360. }
  1361. </Spin>
  1362. </Form>
  1363. }
  1364. </TabPane>
  1365. );
  1366. } else {
  1367. return "";
  1368. }
  1369. })}
  1370. {this.state.status === 4 && this.state.isAddition ? (
  1371. this.state.type === 4 || this.state.type === 5 ? (
  1372. <TabPane tab="附加订单" key="c">
  1373. {
  1374. this.state.activeKey === "c" ?
  1375. <OrderDetail
  1376. orderData={this.state.additionalOrderData}
  1377. getOrderLog={this.getOrderLog}
  1378. dataSourceX={this.state.dataSourceX}
  1379. totalCui={this.state.totalCui}
  1380. contactListNew={this.state.contactListNew}
  1381. contactList={this.state.contactList}
  1382. orderNo={this.state.additionalOrder}
  1383. /> : <div />
  1384. }
  1385. </TabPane>
  1386. ) : (
  1387. ""
  1388. )
  1389. ) : (
  1390. ""
  1391. )}
  1392. </Tabs>
  1393. </Modal> : <div />}
  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;