chargeback.jsx 59 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747
  1. import React from 'react';
  2. import { Button, Input, Spin, Table, message, DatePicker, Tooltip, Form, Modal, Col, Tabs, Tag } from 'antd';
  3. import $ from 'jquery/src/ajax';
  4. import Picture from '@/manageCenter/publicComponent/picture';
  5. import ResolutionDetail from "@/resolutionDetail";
  6. import moment from 'moment';
  7. import {
  8. getLiquidationStatus,
  9. getApprovedState,
  10. getProcessStatus,
  11. splitUrl,
  12. getjiedian,
  13. getNewOrderStatus,
  14. getRefundStatus,
  15. getCuikuan,
  16. ShowModal
  17. } from "@/tools.js";
  18. import './customer.less';
  19. import ShowModalDiv from "@/showModal.jsx";
  20. import OrderRiZi from "@/orderRiZi.jsx";
  21. import ImgList from "../../../common/imgList";
  22. import { ChooseList } from "./chooseList";
  23. import OrderItemStatus from "../../../common/orderItemStatus";
  24. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  25. import OrderDetail from './changeComponent/orderDetail';
  26. const IntentionCustomer = Form.create()(
  27. React.createClass({
  28. loadData(pageNo) {
  29. this.setState({
  30. visitModul: false,
  31. loading: true,
  32. ispage: pageNo,
  33. modalVisible: false,
  34. });
  35. $.ajax({
  36. method: "get",
  37. dataType: "json",
  38. crossDomain: false,
  39. url: globalConfig.context + "/api/admin/newOrder/orderRefundList",
  40. data: {
  41. pageNo: pageNo || 1,
  42. pageSize: this.state.pagination.pageSize,
  43. name: this.state.customerName, //名称
  44. orderNo: this.state.orderNo, //订单编号
  45. starTime: this.state.releaseDate[0], //开始时间
  46. endTime: this.state.releaseDate[1], //结束时间
  47. },
  48. success: function (data) {
  49. ShowModal(this);
  50. let theArr = [];
  51. if (data.error.length || data.data.list == "") {
  52. if (data.error && data.error.length) {
  53. message.warning(data.error[0].message);
  54. }
  55. } else {
  56. for (let i = 0; i < data.data.list.length; i++) {
  57. let thisdata = data.data.list[i];
  58. theArr.push({
  59. key: i,
  60. id: thisdata.id, //用户ID
  61. orderNo: thisdata.orderNo, //订单编号
  62. userName: thisdata.userName, //客户名称
  63. orderStatus: thisdata.orderStatus, //订单状态
  64. refundStatus: thisdata.refundStatus, //退单状态
  65. reason: thisdata.reason, //退单原因
  66. createDate: thisdata.createDate, //退单时间
  67. liquidationStatus: thisdata.liquidationStatus, //结算状态
  68. });
  69. }
  70. this.state.pagination.total = data.data.totalCount;
  71. }
  72. if (data.data && data.data.list && !data.data.list.length) {
  73. this.state.pagination.total = 0;
  74. }
  75. this.setState({
  76. dataSource: theArr,
  77. pageNo: pageNo,
  78. pagination: this.state.pagination,
  79. selectedRowKeys: [],
  80. });
  81. }.bind(this),
  82. }).always(
  83. function () {
  84. this.setState({
  85. loading: false,
  86. });
  87. }.bind(this)
  88. );
  89. },
  90. getInitialState() {
  91. return {
  92. orderNos: '',
  93. rotateDeg: 0,
  94. page: 1,
  95. resVisible: false,
  96. releaseDate: [],
  97. selectedRowKeys: [],
  98. orgCodeUrl: [],
  99. customerArr: [],
  100. applicationUrl: [],
  101. contractUrl: [],
  102. pagination: {
  103. defaultCurrent: 1,
  104. defaultPageSize: 10,
  105. showQuickJumper: true,
  106. pageSize: 10,
  107. onChange: function (page) {
  108. this.loadData(page);
  109. }.bind(this),
  110. showTotal: function (total) {
  111. return "共" + total + "条数据";
  112. },
  113. },
  114. columns: [
  115. {
  116. title: "退单编号",
  117. dataIndex: "id",
  118. key: "id",
  119. },
  120. {
  121. title: "退单日期",
  122. dataIndex: "createDate",
  123. key: "createDate",
  124. },
  125. {
  126. title: "客户名称",
  127. dataIndex: "userName",
  128. key: "userName",
  129. render: (text) => {
  130. return (
  131. <Tooltip title={text}>
  132. <div style={{
  133. maxWidth: '150px',
  134. overflow: 'hidden',
  135. textOverflow: "ellipsis",
  136. whiteSpace: 'nowrap',
  137. }}>{text}</div>
  138. </Tooltip>
  139. );
  140. },
  141. },
  142. {
  143. title: "订单编号",
  144. dataIndex: "orderNo",
  145. key: "orderNo",
  146. },
  147. {
  148. title: "订单状态",
  149. dataIndex: "orderStatus",
  150. key: "orderStatus",
  151. render: (text) => {
  152. return getNewOrderStatus(text);
  153. },
  154. },
  155. {
  156. title: "结算状态",
  157. dataIndex: "liquidationStatus",
  158. key: "liquidationStatus",
  159. render: (text) => {
  160. return getLiquidationStatus(text);
  161. },
  162. },
  163. {
  164. title: "退单状态",
  165. dataIndex: "refundStatus",
  166. key: "refundStatus",
  167. render: (text) => {
  168. return getRefundStatus(text);
  169. },
  170. },
  171. {
  172. title: "退单原因",
  173. dataIndex: "reason",
  174. key: "reason",
  175. render: (text) => {
  176. return text && text.length > 18
  177. ? text.substr(0, 18) + "..."
  178. : text;
  179. },
  180. },
  181. {
  182. title: "操作",
  183. dataIndex: "abc",
  184. key: "abc",
  185. render: (text, record) => {
  186. return (
  187. <div>
  188. <Button
  189. onClick={(e) => {
  190. e.stopPropagation(), this.visit(record);
  191. }}
  192. type="primary"
  193. >
  194. {this.state.refundStatus == 2
  195. ? "修改退单申请"
  196. : "查看退款申请"}
  197. </Button>
  198. </div>
  199. );
  200. },
  201. },
  202. ],
  203. data: [],
  204. dataSource: [],
  205. columnsX: [
  206. {
  207. title: "业务项目名称",
  208. dataIndex: "commodityName",
  209. key: "commodityName",
  210. render: (text, record) => {
  211. return <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}</span>
  212. }
  213. },
  214. {
  215. title: "项目类别",
  216. dataIndex: "cname",
  217. key: "cname",
  218. },
  219. {
  220. title: "项目数量",
  221. dataIndex: "commodityQuantity",
  222. key: "commodityQuantity",
  223. render: (text, record) => {
  224. if (record.splitStatus == 1) {
  225. return (
  226. <span>
  227. {text}{" "}
  228. <Tag
  229. color="#108ee9"
  230. onClick={(e) => {
  231. e.stopPropagation();
  232. this.showRes(record);
  233. }}
  234. >
  235. 已拆
  236. </Tag>
  237. </span>
  238. );
  239. } else {
  240. return text;
  241. }
  242. },
  243. },
  244. {
  245. title: "金额(万元)",
  246. dataIndex: "commodityPrice",
  247. key: "commodityPrice",
  248. },
  249. {
  250. title: "负责人",
  251. dataIndex: "contacts",
  252. key: "contacts",
  253. },
  254. {
  255. title: "负责人电话",
  256. dataIndex: "contactsMobile",
  257. key: "contactsMobile",
  258. },
  259. {
  260. title: "主要项目",
  261. dataIndex: "main",
  262. key: "main",
  263. render: (text) => {
  264. return text ? "是" : "否";
  265. },
  266. },
  267. {
  268. title: "总年限",
  269. dataIndex: "yearSum",
  270. key: "yearSum",
  271. render: (text, record) => {
  272. return (
  273. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  274. );
  275. }
  276. },
  277. {
  278. title: "年限",
  279. dataIndex: "serviceLife",
  280. key: "serviceLife",
  281. render: (text, record) => {
  282. return (
  283. <div>{!!text && JSON.parse(text).toString()}</div>
  284. );
  285. }
  286. },
  287. {
  288. title: "本次派单",
  289. dataIndex: "serviceYear",
  290. key: "serviceYear",
  291. render: (text, record) => {
  292. return (
  293. <div>{!text ? "" : text}</div>
  294. );
  295. }
  296. },
  297. {
  298. title: "项目说明",
  299. dataIndex: "taskComment",
  300. key: "taskComment",
  301. render: (text) => {
  302. return (
  303. <Tooltip title={text}>
  304. <div
  305. style={{
  306. width: 100,
  307. overflow: "hidden",
  308. whiteSpace: "nowrap",
  309. textOverflow: "ellipsis",
  310. }}
  311. >{text}</div>
  312. </Tooltip>
  313. )
  314. },
  315. },
  316. ],
  317. columnsrizhi: [
  318. {
  319. title: "流程",
  320. dataIndex: "processName",
  321. key: "processName",
  322. },
  323. {
  324. title: "操作人",
  325. dataIndex: "adminName",
  326. key: "adminName",
  327. },
  328. {
  329. title: "时间",
  330. dataIndex: "createDate",
  331. key: "createDate",
  332. },
  333. ],
  334. dataSourceX: [],
  335. ContactsListsNew: [
  336. {
  337. title: "项目名称",
  338. dataIndex: "commodityName",
  339. key: "commodityName",
  340. render: (text, record) => {
  341. return <span>{text + "-" + record.tid}</span>;
  342. },
  343. },
  344. {
  345. title: "项目分类",
  346. dataIndex: "projectType",
  347. key: "projectType",
  348. render: (text) => {
  349. let arr = this.state.dataSourceX || [];
  350. let str = "";
  351. for (let i = 0; i < arr.length; i++) {
  352. if (this.state.dataSourceX[i].sort == text) {
  353. str = this.state.dataSourceX[i].cname;
  354. return <span>{str}</span>;
  355. }
  356. }
  357. },
  358. },
  359. {
  360. title: "催款科目",
  361. dataIndex: "dunTypeName",
  362. key: "dunTypeName",
  363. render: (text) => {
  364. if (record.customizeName) {
  365. return text + record.customizeName;
  366. }
  367. return <span>{text}</span>;
  368. },
  369. },
  370. {
  371. title: "时间(天)",
  372. dataIndex: "waitDay",
  373. key: "waitDay",
  374. render: (text, record) => {
  375. if (record.dunTypeName) {
  376. if (record.customizeTimes) {
  377. return record.customizeTimes;
  378. }
  379. return <span>{text}</span>;
  380. }
  381. },
  382. },
  383. {
  384. title: "金额(万元)",
  385. dataIndex: "money",
  386. key: "money",
  387. render: (text, record) => {
  388. if (record.dunTypeName) {
  389. if (record.appropriationRatio) {
  390. let percent = Number(record.appropriationRatio * 100).toFixed(2);
  391. percent += "%";
  392. return <span>{percent}(拨款比例)</span>;
  393. } else {
  394. return <span>{text}</span>;
  395. }
  396. }
  397. },
  398. },
  399. {
  400. title: "服务年限",
  401. dataIndex: "startDate",
  402. key: "startDate",
  403. render: (text, record) => {
  404. if (record.dunTypeName) {
  405. return <span>{text}</span>;
  406. }
  407. },
  408. },
  409. {
  410. title: "催款状态",
  411. dataIndex: "status",
  412. key: "status",
  413. render: (text) => {
  414. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  415. },
  416. },
  417. ],
  418. ContactsLists: [
  419. {
  420. title: "催款科目",
  421. dataIndex: "dunSubject",
  422. key: "dunSubject",
  423. render: (text) => {
  424. return getjiedian(text);
  425. },
  426. },
  427. {
  428. title: "金额(万元)",
  429. dataIndex: "money",
  430. key: "money",
  431. },
  432. {
  433. title: "催款状态",
  434. dataIndex: "dunStatus",
  435. key: "dunStatus",
  436. render: (text) => {
  437. return getCuikuan(text);
  438. },
  439. },
  440. ],
  441. };
  442. },
  443. //进入新增拜访记录
  444. visit(record) {
  445. this.setState({
  446. addnextVisible: true,
  447. });
  448. this.tuidanxiangqing(record.id);
  449. },
  450. //退单详情
  451. tuidanxiangqing(id) {
  452. this.setState({
  453. loading: true,
  454. });
  455. $.ajax({
  456. method: "get",
  457. dataType: "json",
  458. crossDomain: false,
  459. url: globalConfig.context + "/api/admin/newOrder/orderRefundDetail",
  460. data: {
  461. id: id,
  462. },
  463. }).done(
  464. function (data) {
  465. if (data.error.length || data.data.list == "") {
  466. if (data.error && data.error.length) {
  467. message.warning(data.error[0].message);
  468. }
  469. } else {
  470. let thisdata = data.data;
  471. this.setState({
  472. id: thisdata.id,
  473. createDate: thisdata.createDate, //退单时间
  474. orderNo: thisdata.orderNo, //订单编号
  475. orderStatus: thisdata.orderStatus, //订单状态
  476. refundStatus: thisdata.refundStatus, //退单状态
  477. applicationUrl: thisdata.applicationUrl
  478. ? splitUrl(
  479. thisdata.applicationUrl,
  480. ",",
  481. globalConfig.avatarHost + "/upload"
  482. )
  483. : [], //申请表附件
  484. contractUrl: thisdata.contractUrl
  485. ? splitUrl(
  486. thisdata.contractUrl,
  487. ",",
  488. globalConfig.avatarHost + "/upload"
  489. )
  490. : [], //合同附件
  491. reason: thisdata.reason, //退单原因
  492. liquidationStatus: thisdata.liquidationStatus, //结算状态
  493. });
  494. this.setState({
  495. loading: false,
  496. });
  497. }
  498. }.bind(this)
  499. );
  500. },
  501. // 拆分详细
  502. showRes(record) {
  503. this.setState({
  504. resVisible: true,
  505. resRecord: record,
  506. });
  507. },
  508. resCancel() {
  509. this.setState({
  510. resVisible: false,
  511. });
  512. },
  513. //点击确认退单
  514. tuidanOk() {
  515. let contractUrls = [];
  516. let applicationUrls = [];
  517. if (this.state.contractUrl.length) {
  518. let picArr = [];
  519. this.state.contractUrl.map(function (item) {
  520. if (
  521. item.response &&
  522. item.response.data &&
  523. item.response.data.length
  524. ) {
  525. picArr.push(item.response.data);
  526. }
  527. });
  528. contractUrls = picArr.join(",");
  529. }
  530. if (this.state.applicationUrl.length) {
  531. let picArr = [];
  532. this.state.applicationUrl.map(function (item) {
  533. if (
  534. item.response &&
  535. item.response.data &&
  536. item.response.data.length
  537. ) {
  538. picArr.push(item.response.data);
  539. }
  540. });
  541. applicationUrls = picArr.join(",");
  542. }
  543. $.ajax({
  544. method: "POST",
  545. dataType: "json",
  546. crossDomain: false,
  547. url: globalConfig.context + "/api/admin/newOrder/updateOrderRefund",
  548. data: {
  549. id: this.state.id, //订单编号
  550. contractUrl: contractUrls.length ? contractUrls : "", //终止合同
  551. applicationUrl: applicationUrls.length ? applicationUrls : "", //退单申请表
  552. reason: this.state.reason, //退单原因
  553. },
  554. }).done(
  555. function (data) {
  556. this.setState({
  557. loading: false,
  558. });
  559. if (!data.error.length) {
  560. message.success("退单成功!");
  561. this.nextCancel();
  562. this.handleCancel();
  563. } else {
  564. message.warning(data.error[0].message);
  565. }
  566. }.bind(this)
  567. );
  568. },
  569. //页面加载函数
  570. componentWillMount() {
  571. this.loadData();
  572. },
  573. //整行点击
  574. tableRowClick(record) {
  575. this.setState({
  576. visible: true,
  577. orderNos: record.orderNo
  578. });
  579. this.xiangqing(record.orderNo);
  580. this.xiangmu(record.orderNo);
  581. this.jiedian(record.orderNo);
  582. this.jiedianNew(record.orderNo);
  583. },
  584. rizhi() {
  585. // console.log(this.state.orderNo);
  586. this.setState({
  587. loading: true,
  588. });
  589. $.ajax({
  590. method: "get",
  591. dataType: "json",
  592. crossDomain: false,
  593. url: "/api/admin/newOrder/selectOrderLog",
  594. data: {
  595. orderNo: this.state.orderNo,
  596. },
  597. success: function (data) {
  598. let theArr = [];
  599. let thisData = data.data;
  600. if (!thisData.length) {
  601. if (data.error && data.error.length) {
  602. message.warning(data.error[0].message);
  603. }
  604. thisData = {};
  605. } else {
  606. for (let i = 0; i < data.data.length; i++) {
  607. let thisdata = data.data[i];
  608. theArr.push({
  609. processName: thisdata.processName,
  610. adminName: thisdata.adminName,
  611. createDate: thisdata.createDate,
  612. remarks: thisdata.remarks,
  613. });
  614. }
  615. }
  616. this.setState({
  617. dataSourcerizhi: theArr,
  618. });
  619. }.bind(this),
  620. }).always(
  621. function () {
  622. this.setState({
  623. loading: false,
  624. });
  625. }.bind(this)
  626. );
  627. },
  628. //查看订单日志
  629. getOrderLog() {
  630. this.setState({
  631. rizhivisible: true,
  632. });
  633. this.rizhi();
  634. },
  635. closeOrderLog() {
  636. this.setState({
  637. rizhivisible: false,
  638. });
  639. },
  640. //详情关闭
  641. nextCancel() {
  642. this.setState({
  643. addnextVisible: false,
  644. });
  645. this.resets();
  646. },
  647. //订单详情
  648. xiangqing(orderNos) {
  649. $.ajax({
  650. method: "get",
  651. dataType: "json",
  652. crossDomain: false,
  653. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  654. data: {
  655. orderNo: orderNos,
  656. },
  657. success: function (data) {
  658. if (data.error.length || data.data.list == "") {
  659. if (data.error && data.error.length) {
  660. message.warning(data.error[0].message);
  661. }
  662. } else {
  663. let thisdata = data.data;
  664. this.setState({
  665. orderUid: thisdata.uid,
  666. id: thisdata.id,
  667. kehuId: thisdata.buyerId,
  668. orderNo: thisdata.orderNo, //订单编号
  669. contractNo: thisdata.contractNo, //合同编号
  670. userName: thisdata.userName, //客户名称
  671. signDate: thisdata.signDate, //签单时间
  672. examineName: thisdata.examineName,
  673. processStatus: thisdata.processStatus, //流程状态
  674. liquidationStatus: thisdata.liquidationStatus, //结算状态
  675. contacts: thisdata.contacts, //企业联系人
  676. contactMobile: thisdata.contactMobile, //联系人电话
  677. legalPerson: thisdata.legalPerson, //法人
  678. legalPersonTel: thisdata.legalPersonTel, //法人电话
  679. firstAmount: thisdata.firstAmount, //签单金额
  680. totalAmount: thisdata.totalAmount, //首付金额
  681. settlementAmount: thisdata.settlementAmount, //已收款项
  682. orderRemarks: thisdata.orderRemarks, //订单留言
  683. orgCodeUrl: thisdata.contractPictureUrl
  684. ? splitUrl(
  685. thisdata.contractPictureUrl,
  686. ",",
  687. globalConfig.avatarHost + "/upload"
  688. )
  689. : [], //图片地址
  690. replenishUrl: thisdata.agreementUrl
  691. ? splitUrl(
  692. thisdata.agreementUrl,
  693. ",",
  694. globalConfig.avatarHost + "/upload"
  695. )
  696. : [],
  697. salesmanName: thisdata.salesmanName, //营销员名称
  698. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  699. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  700. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  701. financeName: thisdata.financeName, //财务名称
  702. financeMobile: thisdata.financeMobile, //财务电话
  703. nowFinance: thisdata.nowFinance, //财务名称
  704. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  705. approval: thisdata.approval.toString(), //特批状态
  706. //approval:thisdata.approval==0?thisdata.approval.toString():thisdata.approval,//特批状态
  707. deleteSign: thisdata.deleteSign,
  708. });
  709. }
  710. }.bind(this),
  711. }).always(
  712. function () {
  713. this.setState({
  714. loading: false,
  715. });
  716. }.bind(this)
  717. );
  718. },
  719. //项目列表
  720. xiangmu(orderNos) {
  721. $.ajax({
  722. method: "get",
  723. dataType: "json",
  724. crossDomain: false,
  725. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  726. data: {
  727. orderNo: orderNos,
  728. },
  729. success: function (data) {
  730. let theArr = [];
  731. if (data.error.length || data.data.list == "") {
  732. if (data.error && data.error.length) {
  733. message.warning(data.error[0].message);
  734. }
  735. } else {
  736. for (let i = 0; i < data.data.length; i++) {
  737. let thisdata = data.data[i];
  738. thisdata.key = i;
  739. thisdata.sort = thisdata.cSort;
  740. theArr.push(thisdata);
  741. }
  742. }
  743. this.setState({
  744. dataSourceX: theArr,
  745. paginations: false,
  746. });
  747. }.bind(this),
  748. }).always(
  749. function () {
  750. this.setState({
  751. loading: false,
  752. });
  753. }.bind(this)
  754. );
  755. },
  756. //节点列表
  757. jiedian(orderNos) {
  758. $.ajax({
  759. method: "get",
  760. dataType: "json",
  761. crossDomain: false,
  762. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  763. data: {
  764. orderNo: orderNos,
  765. },
  766. success: function (data) {
  767. let theArr = [];
  768. let thisData = [];
  769. if (data.error.length || data.data.list == "") {
  770. if (data.error && data.error.length) {
  771. message.warning(data.error[0].message);
  772. }
  773. } else {
  774. for (let i = 0; i < data.data.length; i++) {
  775. thisData = data.data[i];
  776. theArr.push({
  777. key: i,
  778. dunSubject: thisData.dunSubject
  779. ? thisData.dunSubject.toString()
  780. : "", //催款科目
  781. id: thisData.id, //节点Id
  782. money: thisData.money, //催款金额
  783. dunStatus: thisData.dunStatus, //催款状态
  784. orderNo: thisData.orderNo,
  785. });
  786. }
  787. this.setState({
  788. contactList: theArr,
  789. });
  790. }
  791. }.bind(this),
  792. }).always(
  793. function () {
  794. this.setState({
  795. loading: false,
  796. });
  797. }.bind(this)
  798. );
  799. },
  800. //查看催款节点
  801. jiedianNew(orderNos) {
  802. $.ajax({
  803. method: "get",
  804. dataType: "json",
  805. crossDomain: false,
  806. url:
  807. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  808. data: {
  809. orderNo: orderNos,
  810. },
  811. success: function (data) {
  812. if (data.error && data.error.length) {
  813. message.warning(data.error[0].message);
  814. } else {
  815. let theArr = [];
  816. let thisData = [];
  817. let arr = data.data || [];
  818. let totalCui = 0;
  819. for (let i = 0; i < arr.length; i++) {
  820. thisData = arr[i];
  821. totalCui += +thisData.money;
  822. theArr.push({
  823. key: i,
  824. dunSubject: thisData.dunSubject
  825. ? thisData.dunSubject.toString()
  826. : "", //催款科目
  827. id: thisData.id, //节点Id
  828. money: thisData.money, //催款金额
  829. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  830. commodityName: thisData.commodityName,
  831. projectType: thisData.projectType,
  832. dunTypeName: thisData.dunTypeName,
  833. status: thisData.status,
  834. waitDay: thisData.waitDay,
  835. effectiveCount: thisData.effectiveCount,
  836. startDate: thisData.startDate,
  837. dunType: thisData.dunType,
  838. appropriationRatio: thisData.appropriationRatio,
  839. customizeTimes: thisData.customizeTimes,
  840. customizeName: thisData.customizeName,
  841. tid: thisData.tid,
  842. });
  843. }
  844. if (!totalCui) {
  845. totalCui = 0;
  846. }
  847. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  848. this.setState({
  849. contactListNew: theArr,
  850. totalCui,
  851. });
  852. }
  853. }.bind(this),
  854. }).always(
  855. function () {
  856. this.setState({
  857. loading: false,
  858. });
  859. }.bind(this)
  860. );
  861. },
  862. downImg() {
  863. let num = 0;
  864. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  865. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  866. num = i;
  867. }
  868. }
  869. if (num == this.state.orgCodeUrl.length - 1) {
  870. return message.warning("已经是最后一张了哦");
  871. }
  872. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  873. this.setState({
  874. previewImage: this.state.previewImage,
  875. rotateDeg: 0,
  876. });
  877. },
  878. upImg() {
  879. let num = 0;
  880. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  881. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  882. num = i;
  883. }
  884. }
  885. if (num == 0) {
  886. return message.warning("已经是第一张了哦");
  887. }
  888. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  889. this.setState({
  890. previewImage: this.state.previewImage,
  891. rotateDeg: 0,
  892. });
  893. },
  894. rotate() {
  895. let rotateDeg = this.state.rotateDeg + 90;
  896. this.setState({
  897. rotateDeg,
  898. });
  899. },
  900. downImgs() {
  901. let num = 0;
  902. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  903. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  904. num = i;
  905. }
  906. }
  907. if (num == this.state.replenishUrl.length - 1) {
  908. return message.warning("已经是最后一张了哦");
  909. }
  910. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  911. this.setState({
  912. previewImage: this.state.previewImage,
  913. rotateDeg: 0,
  914. });
  915. },
  916. upImgs() {
  917. let num = 0;
  918. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  919. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  920. num = i;
  921. }
  922. }
  923. if (num == 0) {
  924. return message.warning("已经是第一张了哦");
  925. }
  926. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  927. this.setState({
  928. previewImage: this.state.previewImage,
  929. rotateDeg: 0,
  930. });
  931. },
  932. rotates() {
  933. let rotateDeg = this.state.rotateDeg + 90;
  934. this.setState({
  935. rotateDeg,
  936. });
  937. },
  938. resets() {
  939. this.state.orderNo = "";
  940. this.state.customerName = "";
  941. this.state.releaseDate[0] = undefined;
  942. this.state.releaseDate[1] = undefined;
  943. },
  944. reset() {
  945. this.state.orderNo = "";
  946. this.state.customerName = "";
  947. this.state.releaseDate[0] = undefined;
  948. this.state.releaseDate[1] = undefined;
  949. this.loadData();
  950. },
  951. //搜索
  952. search() {
  953. this.setState({
  954. //signBillVisible:false
  955. });
  956. this.loadData();
  957. },
  958. getOrgCodeUrl(e) {
  959. this.setState({ orgCodeUrl: e });
  960. },
  961. getReplenishUrl(e) {
  962. this.setState({ replenishUrl: e });
  963. },
  964. //关闭详情
  965. visitCancel() {
  966. this.setState({
  967. visible: false,
  968. });
  969. this.resets();
  970. },
  971. visitOk() {
  972. this.setState({
  973. visible: false,
  974. });
  975. this.resets();
  976. },
  977. changeList(arr) {
  978. const newArr = [];
  979. this.state.columns.forEach(item => {
  980. arr.forEach(val => {
  981. if (val === item.title) {
  982. newArr.push(item);
  983. }
  984. });
  985. });
  986. this.setState({
  987. changeList: newArr
  988. });
  989. },
  990. render() {
  991. const formItemLayout = {
  992. labelCol: { span: 8 },
  993. wrapperCol: { span: 14 },
  994. };
  995. const FormItem = Form.Item;
  996. const { RangePicker } = DatePicker;
  997. const cuiDataList = this.state.contactList || [];
  998. const rowSelection = {
  999. selectedRowKeys: this.state.selectedRowKeys,
  1000. onChange: (selectedRowKeys, selectedRows) => {
  1001. this.setState({
  1002. modalVisible: false,
  1003. selectedRows: selectedRows.slice(-1),
  1004. selectedRowKeys: selectedRowKeys.slice(-1),
  1005. });
  1006. },
  1007. onSelect: (recordt) => {
  1008. this.setState({
  1009. modalVisible: false,
  1010. recordt: recordt.id,
  1011. });
  1012. },
  1013. };
  1014. const { TabPane } = Tabs;
  1015. return (
  1016. <div className="user-content">
  1017. {this.state.resVisible ? (
  1018. <ResolutionDetail
  1019. cancel={this.resCancel}
  1020. detail={this.state.resRecord}
  1021. visible={this.state.resVisible}
  1022. id={this.state.resRecord.orderNo}
  1023. />
  1024. ) : (
  1025. ""
  1026. )}
  1027. <ShowModalDiv ShowModal={this.state.showModal} />
  1028. <div className="content-title" style={{ marginBottom: 10 }}>
  1029. <span style={{ fontWeight: 900, fontSize: 16 }}>退单管理</span>
  1030. </div>
  1031. <div className="user-search">
  1032. <Tabs
  1033. defaultActiveKey="1"
  1034. onChange={this.callback}
  1035. className="test"
  1036. >
  1037. <TabPane tab="搜索" key="1">
  1038. <Input
  1039. placeholder="客户名称"
  1040. style={{
  1041. width: "150px",
  1042. marginBottom: "10px",
  1043. marginTop: 10,
  1044. marginRight: 10,
  1045. marginLeft: 10,
  1046. }}
  1047. value={this.state.customerName}
  1048. onChange={(e) => {
  1049. this.setState({ customerName: e.target.value });
  1050. }}
  1051. />
  1052. <Input
  1053. placeholder="订单编号"
  1054. style={{ width: "150px", marginRight: 10 }}
  1055. value={this.state.orderNo}
  1056. onChange={(e) => {
  1057. this.setState({ orderNo: e.target.value });
  1058. }}
  1059. />
  1060. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  1061. <RangePicker
  1062. value={[
  1063. this.state.releaseDate[0]
  1064. ? moment(this.state.releaseDate[0])
  1065. : null,
  1066. this.state.releaseDate[1]
  1067. ? moment(this.state.releaseDate[1])
  1068. : null,
  1069. ]}
  1070. onChange={(data, dataString) => {
  1071. this.setState({ releaseDate: dataString });
  1072. }}
  1073. />
  1074. <Button
  1075. type="primary"
  1076. onClick={this.search}
  1077. style={{ marginLeft: "10px", marginRight: 10 }}
  1078. >
  1079. 搜索
  1080. </Button>
  1081. <Button onClick={this.reset}>重置</Button>
  1082. </TabPane>
  1083. <TabPane tab="更改表格显示数据" key="2">
  1084. <div style={{ marginLeft: 10 }}>
  1085. <ChooseList
  1086. columns={this.state.columns}
  1087. changeFn={this.changeList}
  1088. changeList={this.state.changeList}
  1089. top={55}
  1090. margin={11}
  1091. />
  1092. </div>
  1093. </TabPane>
  1094. </Tabs>
  1095. <div className="patent-table">
  1096. <Spin spinning={this.state.loading}>
  1097. <Table
  1098. columns={
  1099. this.state.changeList
  1100. ? this.state.changeList
  1101. : this.state.columns
  1102. }
  1103. dataSource={this.state.dataSource}
  1104. // rowSelection={rowSelection}
  1105. pagination={this.state.pagination}
  1106. onRowClick={this.tableRowClick}
  1107. bordered
  1108. size="small"
  1109. />
  1110. </Spin>
  1111. </div>
  1112. {this.state.visible ? <Modal
  1113. maskClosable={false}
  1114. className="customeDetails"
  1115. footer=""
  1116. title="订单详情"
  1117. width="1200px"
  1118. visible={this.state.visible}
  1119. onOk={this.visitOk}
  1120. onCancel={this.visitCancel}
  1121. >
  1122. <Form
  1123. layout="horizontal"
  1124. onSubmit={this.handleSubmit}
  1125. id="demand-form"
  1126. style={{ paddingBottom: "40px" }}
  1127. >
  1128. <Spin spinning={this.state.loading}>
  1129. <div className="clearfix">
  1130. <div style={{ position: "absolute", top: '-52px', left: '81px', zIndex: 10000 }}>
  1131. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1132. </div>
  1133. <FormItem
  1134. className="half-item"
  1135. {...formItemLayout}
  1136. label="订单编号"
  1137. >
  1138. <span>{this.state.orderNo}</span>
  1139. </FormItem>
  1140. <FormItem
  1141. className="half-item"
  1142. {...formItemLayout}
  1143. label="合同编号"
  1144. >
  1145. <span>{this.state.contractNo}</span>
  1146. </FormItem>
  1147. <FormItem
  1148. className="half-item"
  1149. {...formItemLayout}
  1150. label="客户名称"
  1151. >
  1152. <span>{this.state.userName}</span>
  1153. <EnterpriseNameChange
  1154. type='journal'
  1155. style={{ marginLeft: 10 }}
  1156. enterpriseId={this.state.orderUid} />
  1157. </FormItem>
  1158. <FormItem
  1159. className="half-item"
  1160. {...formItemLayout}
  1161. label="合同签订时间"
  1162. >
  1163. <span>{this.state.signDate}</span>
  1164. </FormItem>
  1165. <FormItem
  1166. className="half-item"
  1167. {...formItemLayout}
  1168. label="流程状态"
  1169. >
  1170. <span>{getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}</span>
  1171. </FormItem>
  1172. <FormItem
  1173. className="half-item"
  1174. {...formItemLayout}
  1175. label="结算状态"
  1176. >
  1177. <span>
  1178. {getLiquidationStatus(this.state.liquidationStatus)}
  1179. </span>
  1180. </FormItem>
  1181. <FormItem
  1182. className="half-item"
  1183. {...formItemLayout}
  1184. label="企业联系人"
  1185. >
  1186. <span>{this.state.contacts}</span>
  1187. </FormItem>
  1188. <FormItem
  1189. className="half-item"
  1190. {...formItemLayout}
  1191. label="联系人电话"
  1192. >
  1193. <span>{this.state.contactMobile}</span>
  1194. </FormItem>
  1195. <FormItem
  1196. className="half-item"
  1197. {...formItemLayout}
  1198. label="企业法人"
  1199. >
  1200. <span>{this.state.legalPerson}</span>
  1201. </FormItem>
  1202. <FormItem
  1203. className="half-item"
  1204. {...formItemLayout}
  1205. label="法人电话"
  1206. >
  1207. <span>{this.state.legalPersonTel}</span>
  1208. </FormItem>
  1209. <FormItem
  1210. className="half-item"
  1211. {...formItemLayout}
  1212. label="签单金额(万元)"
  1213. >
  1214. <span>{this.state.firstAmount}</span>
  1215. </FormItem>
  1216. <FormItem
  1217. className="half-item"
  1218. {...formItemLayout}
  1219. label="首付金额(万元)"
  1220. >
  1221. <span>{this.state.totalAmount}</span>
  1222. </FormItem>
  1223. <FormItem
  1224. className="half-item"
  1225. {...formItemLayout}
  1226. label="特批立项"
  1227. >
  1228. <span>{getApprovedState(this.state.approval)}</span>
  1229. </FormItem>
  1230. <FormItem
  1231. className="half-item"
  1232. {...formItemLayout}
  1233. label="已收款项(万元)"
  1234. >
  1235. <span>{this.state.settlementAmount}</span>
  1236. </FormItem>
  1237. <div className="clearfix">
  1238. <FormItem
  1239. labelCol={{ span: 4 }}
  1240. wrapperCol={{ span: 16 }}
  1241. label="订单留言"
  1242. >
  1243. <span>{this.state.orderRemarks}</span>
  1244. </FormItem>
  1245. </div>
  1246. <div className="clearfix">
  1247. <FormItem
  1248. labelCol={{ span: 4 }}
  1249. wrapperCol={{ span: 18 }}
  1250. label="合同扫描件"
  1251. >
  1252. {/*<Upload*/}
  1253. {/* className="demandDetailShow-upload"*/}
  1254. {/* listType="picture-card"*/}
  1255. {/* fileList={this.state.orgCodeUrl}*/}
  1256. {/* onPreview={(file) => {*/}
  1257. {/* this.setState({*/}
  1258. {/* previewImage: file.url || file.thumbUrl,*/}
  1259. {/* previewVisible: true,*/}
  1260. {/* });*/}
  1261. {/* }}*/}
  1262. {/*/>*/}
  1263. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1264. {this.state.visible && this.state.orgCodeUrl ? <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'} /> : <div />}
  1265. </div>
  1266. <Modal
  1267. maskClosable={false}
  1268. footer={null}
  1269. width={"50%"}
  1270. visible={this.state.previewVisible}
  1271. onCancel={() => {
  1272. this.setState({
  1273. previewVisible: false,
  1274. rotateDeg: 0,
  1275. });
  1276. }}
  1277. >
  1278. <img
  1279. alt=""
  1280. style={{
  1281. width: "100%",
  1282. transform: `rotate(${this.state.rotateDeg}deg)`,
  1283. }}
  1284. src={this.state.previewImage || ""}
  1285. />
  1286. <Button
  1287. onClick={this.rotate}
  1288. style={{
  1289. position: "relative",
  1290. left: "50%",
  1291. transform: "translateX(-50%)",
  1292. }}
  1293. >
  1294. 旋转
  1295. </Button>
  1296. <Button
  1297. onClick={this.upImg}
  1298. style={{
  1299. position: "absolute",
  1300. left: -81,
  1301. top: "50%",
  1302. transform: "translateY(-50%)",
  1303. }}
  1304. >
  1305. 上一张
  1306. </Button>
  1307. <Button
  1308. onClick={this.downImg}
  1309. style={{
  1310. position: "absolute",
  1311. right: -81,
  1312. top: "50%",
  1313. transform: "translateY(-50%)",
  1314. }}
  1315. >
  1316. 下一张
  1317. </Button>
  1318. </Modal>
  1319. <Button
  1320. style={{
  1321. float: "right",
  1322. marginRight: "140px",
  1323. marginTop: "20px",
  1324. }}
  1325. onClick={this.getOrderLog}
  1326. >
  1327. 查看订单 日志
  1328. </Button>
  1329. </FormItem>
  1330. <FormItem
  1331. labelCol={{ span: 4 }}
  1332. wrapperCol={{ span: 18 }}
  1333. label="补充协议"
  1334. >
  1335. {/*<Upload*/}
  1336. {/* className="demandDetailShow-upload"*/}
  1337. {/* listType="picture-card"*/}
  1338. {/* fileList={this.state.replenishUrl}*/}
  1339. {/* onPreview={(file) => {*/}
  1340. {/* this.setState({*/}
  1341. {/* previewImage: file.url || file.thumbUrl,*/}
  1342. {/* previewVisibles: true,*/}
  1343. {/* });*/}
  1344. {/* }}*/}
  1345. {/*/>*/}
  1346. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1347. {this.state.visible && this.state.replenishUrl ? <ImgList domId={'chargeback1'} fileList={this.state.replenishUrl} /> : <div />}
  1348. </div>
  1349. <Modal
  1350. maskClosable={false}
  1351. footer={null}
  1352. width={"50%"}
  1353. visible={this.state.previewVisibles}
  1354. onCancel={() => {
  1355. this.setState({ previewVisibles: false, rotateDeg: 0, });
  1356. }}
  1357. >
  1358. <img
  1359. alt=""
  1360. style={{
  1361. width: "100%",
  1362. transform: `rotate(${this.state.rotateDeg}deg)`,
  1363. }}
  1364. src={this.state.previewImage || ""}
  1365. />
  1366. <Button
  1367. onClick={this.rotates}
  1368. style={{
  1369. position: "relative",
  1370. left: "50%",
  1371. transform: "translateX(-50%)",
  1372. }}
  1373. >
  1374. 旋转
  1375. </Button>
  1376. <Button
  1377. onClick={this.upImgs}
  1378. style={{
  1379. position: "absolute",
  1380. left: -81,
  1381. top: "50%",
  1382. transform: "translateY(-50%)",
  1383. }}
  1384. >
  1385. 上一张
  1386. </Button>
  1387. <Button
  1388. onClick={this.downImgs}
  1389. style={{
  1390. position: "absolute",
  1391. right: -81,
  1392. top: "50%",
  1393. transform: "translateY(-50%)",
  1394. }}
  1395. >
  1396. 下一张
  1397. </Button>
  1398. </Modal>
  1399. </FormItem>
  1400. </div>
  1401. <div className="clearfix">
  1402. <FormItem
  1403. className="half-item"
  1404. {...formItemLayout}
  1405. label="订单负责人"
  1406. >
  1407. <span>{this.state.salesmanName}</span>
  1408. </FormItem>
  1409. <FormItem
  1410. className="half-item"
  1411. {...formItemLayout}
  1412. label="订单负责人电话"
  1413. >
  1414. <span>{this.state.salesmanMobile}</span>
  1415. </FormItem>
  1416. </div>
  1417. <div className="clearfix">
  1418. <FormItem
  1419. className="half-item"
  1420. {...formItemLayout}
  1421. label="当前财务负责人"
  1422. >
  1423. <span>{this.state.nowFinance}</span>
  1424. </FormItem>
  1425. <FormItem
  1426. className="half-item"
  1427. {...formItemLayout}
  1428. label="当前财务负责人电话"
  1429. >
  1430. <span>{this.state.nowFinanceMobile}</span>
  1431. </FormItem>
  1432. </div>
  1433. <div className="clearfix">
  1434. <FormItem
  1435. className="half-item"
  1436. {...formItemLayout}
  1437. style={{ opacity: ".5" }}
  1438. label="原订单负责人"
  1439. >
  1440. <span>{this.state.oldSalesmanName}</span>
  1441. </FormItem>
  1442. <FormItem
  1443. className="half-item"
  1444. {...formItemLayout}
  1445. style={{ opacity: ".5" }}
  1446. label="原订单负责人电话"
  1447. >
  1448. <span>{this.state.oldSalesmanMobile}</span>
  1449. </FormItem>
  1450. </div>
  1451. <div className="clearfix">
  1452. <FormItem
  1453. className="half-item"
  1454. style={{ opacity: ".5" }}
  1455. {...formItemLayout}
  1456. label="实际财务操作人"
  1457. >
  1458. <span>{this.state.financeName}</span>
  1459. </FormItem>
  1460. <FormItem
  1461. className="half-item"
  1462. {...formItemLayout}
  1463. style={{ opacity: ".5" }}
  1464. label="实际财务操作人电话"
  1465. >
  1466. <span>{this.state.financeMobile}</span>
  1467. </FormItem>
  1468. </div>
  1469. {/* 协单人员 */}
  1470. <OrderDetail orderNo={this.state.orderNos} />
  1471. <div>
  1472. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  1473. 项目业务
  1474. </span>
  1475. </div>
  1476. <div className="patent-table">
  1477. <Spin spinning={this.state.loading}>
  1478. <Table
  1479. columns={this.state.columnsX}
  1480. dataSource={this.state.dataSourceX}
  1481. pagination={this.state.paginations}
  1482. bordered
  1483. size="small"
  1484. />
  1485. </Spin>
  1486. </div>
  1487. <div>
  1488. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  1489. 催款节点
  1490. </span>
  1491. <span
  1492. style={{
  1493. display: cuiDataList.length ? "none" : "inline-block",
  1494. marginLeft: 10,
  1495. color: "red",
  1496. }}
  1497. >
  1498. 金额总计(万元): {this.state.totalCui}
  1499. </span>
  1500. </div>
  1501. <div className="clearfix">
  1502. <Spin spinning={this.state.loading}>
  1503. <Form layout="horizontal" id="demand-form">
  1504. <Table
  1505. pagination={false}
  1506. bordered
  1507. size="small"
  1508. // columns={this.state.ContactsLists}
  1509. // dataSource={this.state.contactList}
  1510. columns={
  1511. cuiDataList.length
  1512. ? this.state.ContactsLists
  1513. : this.state.ContactsListsNew
  1514. }
  1515. dataSource={
  1516. cuiDataList.length
  1517. ? this.state.contactList
  1518. : this.state.contactListNew
  1519. }
  1520. />
  1521. <Col
  1522. span={24}
  1523. offset={9}
  1524. style={{ marginTop: "15px" }}
  1525. />
  1526. </Form>
  1527. </Spin>
  1528. </div>
  1529. </div>
  1530. </Spin>
  1531. </Form>
  1532. </Modal> : <div />}
  1533. {this.state.addnextVisible ? <Modal
  1534. maskClosable={false}
  1535. visible={this.state.addnextVisible}
  1536. onOk={this.nextCancel}
  1537. onCancel={this.nextCancel}
  1538. width="800px"
  1539. title={this.state.refundStatus == 2 ? "修改退单申请" : "退单详情"}
  1540. footer=""
  1541. className="admin-desc-content"
  1542. >
  1543. <Form layout="horizontal" id="demand-form">
  1544. <Spin spinning={this.state.loading}>
  1545. <div className="clearfix">
  1546. <FormItem
  1547. className="half-item"
  1548. {...formItemLayout}
  1549. label="退单编号"
  1550. >
  1551. <span>{this.state.id}</span>
  1552. </FormItem>
  1553. <FormItem
  1554. className="half-item"
  1555. {...formItemLayout}
  1556. label="退单日期"
  1557. >
  1558. <span>{this.state.createDate}</span>
  1559. </FormItem>
  1560. <FormItem
  1561. className="half-item"
  1562. {...formItemLayout}
  1563. label="订单编号"
  1564. >
  1565. <span>{this.state.orderNo}</span>
  1566. </FormItem>
  1567. <FormItem
  1568. className="half-item"
  1569. {...formItemLayout}
  1570. label="订单状态"
  1571. >
  1572. <span>{getNewOrderStatus(this.state.orderStatus)}</span>
  1573. </FormItem>
  1574. <FormItem
  1575. className="half-item"
  1576. {...formItemLayout}
  1577. label="退单状态"
  1578. >
  1579. <span>{getRefundStatus(this.state.refundStatus)}</span>
  1580. </FormItem>
  1581. <FormItem
  1582. className="half-item"
  1583. {...formItemLayout}
  1584. label="退款状态"
  1585. >
  1586. <span>
  1587. {getLiquidationStatus(this.state.liquidationStatus)}
  1588. </span>
  1589. </FormItem>
  1590. <div className="clearfix">
  1591. {this.state.refundStatus == 2 ? (
  1592. <FormItem
  1593. labelCol={{ span: 4 }}
  1594. wrapperCol={{ span: 16 }}
  1595. label="终止合同"
  1596. >
  1597. <Picture
  1598. domId={'chargeback4'}
  1599. fileList={(e) => {
  1600. this.setState({ contractUrl: e });
  1601. }}
  1602. pictureUrl={this.state.contractUrl}
  1603. visible={this.props.visible}
  1604. data={{
  1605. sign: "order_refund_file",
  1606. url: "/api/admin/newOrder/uploadRefundOrderFile",
  1607. }}
  1608. />
  1609. </FormItem>
  1610. ) : (
  1611. <FormItem
  1612. labelCol={{ span: 4 }}
  1613. wrapperCol={{ span: 18 }}
  1614. label="合同扫描件"
  1615. >
  1616. {/*<Upload*/}
  1617. {/* className="demandDetailShow-upload"*/}
  1618. {/* listType="picture-card"*/}
  1619. {/* fileList={this.state.orgCodeUrl}*/}
  1620. {/* onPreview={(file) => {*/}
  1621. {/* this.setState({*/}
  1622. {/* previewImage: file.url || file.thumbUrl,*/}
  1623. {/* previewVisible: true,*/}
  1624. {/* });*/}
  1625. {/* }}*/}
  1626. {/*/>*/}
  1627. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1628. {this.state.visible && this.state.orgCodeUrl ? <ImgList domId={'chargeback2'} fileList={this.state.orgCodeUrl} /> : <div />}
  1629. </div>
  1630. <Modal
  1631. maskClosable={false}
  1632. footer={null}
  1633. visible={this.state.previewVisible}
  1634. onCancel={() => {
  1635. this.setState({ previewVisible: false });
  1636. }}
  1637. >
  1638. <img
  1639. alt=""
  1640. style={{ width: "100%" }}
  1641. src={this.state.previewImage || ""}
  1642. />
  1643. </Modal>
  1644. </FormItem>
  1645. )}
  1646. </div>
  1647. <div className="clearfix">
  1648. <FormItem
  1649. labelCol={{ span: 4 }}
  1650. wrapperCol={{ span: 16 }}
  1651. label="退单申请表"
  1652. >
  1653. {/*<Upload*/}
  1654. {/* className="demandDetailShow-upload"*/}
  1655. {/* listType="picture-card"*/}
  1656. {/* fileList={this.state.orgCodeUrl}*/}
  1657. {/* onPreview={(file) => {*/}
  1658. {/* this.setState({*/}
  1659. {/* previewImage: file.url || file.thumbUrl,*/}
  1660. {/* previewVisible: true,*/}
  1661. {/* });*/}
  1662. {/* }}*/}
  1663. {/*/>*/}
  1664. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1665. {this.state.visible && this.state.orgCodeUrl ? <ImgList domId={'chargeback3'} fileList={this.state.orgCodeUrl} /> : <div />}
  1666. </div>
  1667. </FormItem>
  1668. </div>
  1669. <div className="clearfix">
  1670. <FormItem
  1671. labelCol={{ span: 4 }}
  1672. wrapperCol={{ span: 16 }}
  1673. label="退单理由"
  1674. >
  1675. {this.state.refundStatus == 2 ? (
  1676. <Input
  1677. type="textarea"
  1678. placeholder="请输入退单理由"
  1679. rows={4}
  1680. value={this.state.reason}
  1681. onChange={(e) => {
  1682. this.setState({ reason: e.target.value });
  1683. }}
  1684. />
  1685. ) : (
  1686. <span>{this.state.reason}</span>
  1687. )}
  1688. </FormItem>
  1689. </div>
  1690. {this.state.refundStatus == 2 ? (
  1691. <FormItem
  1692. wrapperCol={{ span: 12, offset: 4 }}
  1693. className="half-middle"
  1694. >
  1695. <Button
  1696. className="submitSave"
  1697. type="primary"
  1698. onClick={this.tuidanOk}
  1699. >
  1700. 重新退单
  1701. </Button>
  1702. <Button
  1703. className="submitSave"
  1704. type="ghost"
  1705. onClick={this.nextCancel}
  1706. >
  1707. 取消
  1708. </Button>
  1709. </FormItem>
  1710. ) : (
  1711. ""
  1712. )}
  1713. </div>
  1714. </Spin>
  1715. </Form>
  1716. </Modal> : <div />}
  1717. <OrderRiZi
  1718. dataSourcerizhi={this.state.dataSourcerizhi}
  1719. closeOrderLog={this.closeOrderLog}
  1720. visible={this.state.rizhivisible}
  1721. loading={this.state.loading}
  1722. />
  1723. </div>
  1724. </div>
  1725. );
  1726. },
  1727. })
  1728. );
  1729. export default IntentionCustomer;