chargeback.jsx 59 KB

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