contractYxy.js 49 KB

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