chargeback.jsx 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748
  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. !!text && JSON.parse(text).map(item =>
  284. <div>{item}</div>
  285. )
  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. processStatus: thisdata.processStatus, //流程状态
  675. liquidationStatus: thisdata.liquidationStatus, //结算状态
  676. contacts: thisdata.contacts, //企业联系人
  677. contactMobile: thisdata.contactMobile, //联系人电话
  678. legalPerson: thisdata.legalPerson, //法人
  679. legalPersonTel: thisdata.legalPersonTel, //法人电话
  680. firstAmount: thisdata.firstAmount, //签单金额
  681. totalAmount: thisdata.totalAmount, //首付金额
  682. settlementAmount: thisdata.settlementAmount, //已收款项
  683. orderRemarks: thisdata.orderRemarks, //订单留言
  684. orgCodeUrl: thisdata.contractPictureUrl
  685. ? splitUrl(
  686. thisdata.contractPictureUrl,
  687. ",",
  688. globalConfig.avatarHost + "/upload"
  689. )
  690. : [], //图片地址
  691. replenishUrl: thisdata.agreementUrl
  692. ? splitUrl(
  693. thisdata.agreementUrl,
  694. ",",
  695. globalConfig.avatarHost + "/upload"
  696. )
  697. : [],
  698. salesmanName: thisdata.salesmanName, //营销员名称
  699. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  700. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  701. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  702. financeName: thisdata.financeName, //财务名称
  703. financeMobile: thisdata.financeMobile, //财务电话
  704. nowFinance: thisdata.nowFinance, //财务名称
  705. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  706. approval: thisdata.approval.toString(), //特批状态
  707. //approval:thisdata.approval==0?thisdata.approval.toString():thisdata.approval,//特批状态
  708. deleteSign: thisdata.deleteSign,
  709. });
  710. }
  711. }.bind(this),
  712. }).always(
  713. function () {
  714. this.setState({
  715. loading: false,
  716. });
  717. }.bind(this)
  718. );
  719. },
  720. //项目列表
  721. xiangmu(orderNos) {
  722. $.ajax({
  723. method: "get",
  724. dataType: "json",
  725. crossDomain: false,
  726. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  727. data: {
  728. orderNo: orderNos,
  729. },
  730. success: function (data) {
  731. let theArr = [];
  732. if (data.error.length || data.data.list == "") {
  733. if (data.error && data.error.length) {
  734. message.warning(data.error[0].message);
  735. }
  736. } else {
  737. for (let i = 0; i < data.data.length; i++) {
  738. let thisdata = data.data[i];
  739. thisdata.key = i;
  740. thisdata.sort = thisdata.cSort;
  741. theArr.push(thisdata);
  742. }
  743. }
  744. this.setState({
  745. dataSourceX: theArr,
  746. paginations: false,
  747. });
  748. }.bind(this),
  749. }).always(
  750. function () {
  751. this.setState({
  752. loading: false,
  753. });
  754. }.bind(this)
  755. );
  756. },
  757. //节点列表
  758. jiedian(orderNos) {
  759. $.ajax({
  760. method: "get",
  761. dataType: "json",
  762. crossDomain: false,
  763. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  764. data: {
  765. orderNo: orderNos,
  766. },
  767. success: function (data) {
  768. let theArr = [];
  769. let thisData = [];
  770. if (data.error.length || data.data.list == "") {
  771. if (data.error && data.error.length) {
  772. message.warning(data.error[0].message);
  773. }
  774. } else {
  775. for (let i = 0; i < data.data.length; i++) {
  776. thisData = data.data[i];
  777. theArr.push({
  778. key: i,
  779. dunSubject: thisData.dunSubject
  780. ? thisData.dunSubject.toString()
  781. : "", //催款科目
  782. id: thisData.id, //节点Id
  783. money: thisData.money, //催款金额
  784. dunStatus: thisData.dunStatus, //催款状态
  785. orderNo: thisData.orderNo,
  786. });
  787. }
  788. this.setState({
  789. contactList: theArr,
  790. });
  791. }
  792. }.bind(this),
  793. }).always(
  794. function () {
  795. this.setState({
  796. loading: false,
  797. });
  798. }.bind(this)
  799. );
  800. },
  801. //查看催款节点
  802. jiedianNew(orderNos) {
  803. $.ajax({
  804. method: "get",
  805. dataType: "json",
  806. crossDomain: false,
  807. url:
  808. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  809. data: {
  810. orderNo: orderNos,
  811. },
  812. success: function (data) {
  813. if (data.error && data.error.length) {
  814. message.warning(data.error[0].message);
  815. } else {
  816. let theArr = [];
  817. let thisData = [];
  818. let arr = data.data || [];
  819. let totalCui = 0;
  820. for (let i = 0; i < arr.length; i++) {
  821. thisData = arr[i];
  822. totalCui += +thisData.money;
  823. theArr.push({
  824. key: i,
  825. dunSubject: thisData.dunSubject
  826. ? thisData.dunSubject.toString()
  827. : "", //催款科目
  828. id: thisData.id, //节点Id
  829. money: thisData.money, //催款金额
  830. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  831. commodityName: thisData.commodityName,
  832. projectType: thisData.projectType,
  833. dunTypeName: thisData.dunTypeName,
  834. status: thisData.status,
  835. waitDay: thisData.waitDay,
  836. effectiveCount: thisData.effectiveCount,
  837. startDate: thisData.startDate,
  838. dunType: thisData.dunType,
  839. appropriationRatio: thisData.appropriationRatio,
  840. customizeTimes: thisData.customizeTimes,
  841. customizeName: thisData.customizeName,
  842. tid: thisData.tid,
  843. });
  844. }
  845. if (!totalCui) {
  846. totalCui = 0;
  847. }
  848. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  849. this.setState({
  850. contactListNew: theArr,
  851. totalCui,
  852. });
  853. }
  854. }.bind(this),
  855. }).always(
  856. function () {
  857. this.setState({
  858. loading: false,
  859. });
  860. }.bind(this)
  861. );
  862. },
  863. downImg() {
  864. let num = 0;
  865. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  866. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  867. num = i;
  868. }
  869. }
  870. if (num == this.state.orgCodeUrl.length - 1) {
  871. return message.warning("已经是最后一张了哦");
  872. }
  873. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  874. this.setState({
  875. previewImage: this.state.previewImage,
  876. rotateDeg: 0,
  877. });
  878. },
  879. upImg() {
  880. let num = 0;
  881. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  882. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  883. num = i;
  884. }
  885. }
  886. if (num == 0) {
  887. return message.warning("已经是第一张了哦");
  888. }
  889. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  890. this.setState({
  891. previewImage: this.state.previewImage,
  892. rotateDeg: 0,
  893. });
  894. },
  895. rotate() {
  896. let rotateDeg = this.state.rotateDeg + 90;
  897. this.setState({
  898. rotateDeg,
  899. });
  900. },
  901. downImgs() {
  902. let num = 0;
  903. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  904. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  905. num = i;
  906. }
  907. }
  908. if (num == this.state.replenishUrl.length - 1) {
  909. return message.warning("已经是最后一张了哦");
  910. }
  911. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  912. this.setState({
  913. previewImage: this.state.previewImage,
  914. rotateDeg: 0,
  915. });
  916. },
  917. upImgs() {
  918. let num = 0;
  919. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  920. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  921. num = i;
  922. }
  923. }
  924. if (num == 0) {
  925. return message.warning("已经是第一张了哦");
  926. }
  927. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  928. this.setState({
  929. previewImage: this.state.previewImage,
  930. rotateDeg: 0,
  931. });
  932. },
  933. rotates() {
  934. let rotateDeg = this.state.rotateDeg + 90;
  935. this.setState({
  936. rotateDeg,
  937. });
  938. },
  939. resets() {
  940. this.state.orderNo = "";
  941. this.state.customerName = "";
  942. this.state.releaseDate[0] = undefined;
  943. this.state.releaseDate[1] = undefined;
  944. },
  945. reset() {
  946. this.state.orderNo = "";
  947. this.state.customerName = "";
  948. this.state.releaseDate[0] = undefined;
  949. this.state.releaseDate[1] = undefined;
  950. this.loadData();
  951. },
  952. //搜索
  953. search() {
  954. this.setState({
  955. //signBillVisible:false
  956. });
  957. this.loadData();
  958. },
  959. getOrgCodeUrl(e) {
  960. this.setState({ orgCodeUrl: e });
  961. },
  962. getReplenishUrl(e) {
  963. this.setState({ replenishUrl: e });
  964. },
  965. //关闭详情
  966. visitCancel() {
  967. this.setState({
  968. visible: false,
  969. });
  970. this.resets();
  971. },
  972. visitOk() {
  973. this.setState({
  974. visible: false,
  975. });
  976. this.resets();
  977. },
  978. changeList(arr) {
  979. const newArr = [];
  980. this.state.columns.forEach(item => {
  981. arr.forEach(val => {
  982. if (val === item.title) {
  983. newArr.push(item);
  984. }
  985. });
  986. });
  987. this.setState({
  988. changeList: newArr
  989. });
  990. },
  991. render() {
  992. const formItemLayout = {
  993. labelCol: { span: 8 },
  994. wrapperCol: { span: 14 },
  995. };
  996. const FormItem = Form.Item;
  997. const { RangePicker } = DatePicker;
  998. const cuiDataList = this.state.contactList || [];
  999. const rowSelection = {
  1000. selectedRowKeys: this.state.selectedRowKeys,
  1001. onChange: (selectedRowKeys, selectedRows) => {
  1002. this.setState({
  1003. modalVisible: false,
  1004. selectedRows: selectedRows.slice(-1),
  1005. selectedRowKeys: selectedRowKeys.slice(-1),
  1006. });
  1007. },
  1008. onSelect: (recordt) => {
  1009. this.setState({
  1010. modalVisible: false,
  1011. recordt: recordt.id,
  1012. });
  1013. },
  1014. };
  1015. const { TabPane } = Tabs;
  1016. return (
  1017. <div className="user-content">
  1018. {this.state.resVisible ? (
  1019. <ResolutionDetail
  1020. cancel={this.resCancel}
  1021. detail={this.state.resRecord}
  1022. visible={this.state.resVisible}
  1023. id={this.state.resRecord.orderNo}
  1024. />
  1025. ) : (
  1026. ""
  1027. )}
  1028. <ShowModalDiv ShowModal={this.state.showModal} />
  1029. <div className="content-title" style={{ marginBottom: 10 }}>
  1030. <span style={{ fontWeight: 900, fontSize: 16 }}>退单管理</span>
  1031. </div>
  1032. <div className="user-search">
  1033. <Tabs
  1034. defaultActiveKey="1"
  1035. onChange={this.callback}
  1036. className="test"
  1037. >
  1038. <TabPane tab="搜索" key="1">
  1039. <Input
  1040. placeholder="客户名称"
  1041. style={{
  1042. width: "150px",
  1043. marginBottom: "10px",
  1044. marginTop: 10,
  1045. marginRight: 10,
  1046. marginLeft: 10,
  1047. }}
  1048. value={this.state.customerName}
  1049. onChange={(e) => {
  1050. this.setState({ customerName: e.target.value });
  1051. }}
  1052. />
  1053. <Input
  1054. placeholder="订单编号"
  1055. style={{ width: "150px", marginRight: 10 }}
  1056. value={this.state.orderNo}
  1057. onChange={(e) => {
  1058. this.setState({ orderNo: e.target.value });
  1059. }}
  1060. />
  1061. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  1062. <RangePicker
  1063. value={[
  1064. this.state.releaseDate[0]
  1065. ? moment(this.state.releaseDate[0])
  1066. : null,
  1067. this.state.releaseDate[1]
  1068. ? moment(this.state.releaseDate[1])
  1069. : null,
  1070. ]}
  1071. onChange={(data, dataString) => {
  1072. this.setState({ releaseDate: dataString });
  1073. }}
  1074. />
  1075. <Button
  1076. type="primary"
  1077. onClick={this.search}
  1078. style={{ marginLeft: "10px", marginRight: 10 }}
  1079. >
  1080. 搜索
  1081. </Button>
  1082. <Button onClick={this.reset}>重置</Button>
  1083. </TabPane>
  1084. <TabPane tab="更改表格显示数据" key="2">
  1085. <div style={{ marginLeft: 10 }}>
  1086. <ChooseList
  1087. columns={this.state.columns}
  1088. changeFn={this.changeList}
  1089. changeList={this.state.changeList}
  1090. top={55}
  1091. margin={11}
  1092. />
  1093. </div>
  1094. </TabPane>
  1095. </Tabs>
  1096. <div className="patent-table">
  1097. <Spin spinning={this.state.loading}>
  1098. <Table
  1099. columns={
  1100. this.state.changeList
  1101. ? this.state.changeList
  1102. : this.state.columns
  1103. }
  1104. dataSource={this.state.dataSource}
  1105. // rowSelection={rowSelection}
  1106. pagination={this.state.pagination}
  1107. onRowClick={this.tableRowClick}
  1108. bordered
  1109. size="small"
  1110. />
  1111. </Spin>
  1112. </div>
  1113. {this.state.visible ? <Modal
  1114. maskClosable={false}
  1115. className="customeDetails"
  1116. footer=""
  1117. title="订单详情"
  1118. width="1000px"
  1119. visible={this.state.visible}
  1120. onOk={this.visitOk}
  1121. onCancel={this.visitCancel}
  1122. >
  1123. <Form
  1124. layout="horizontal"
  1125. onSubmit={this.handleSubmit}
  1126. id="demand-form"
  1127. style={{ paddingBottom: "40px" }}
  1128. >
  1129. <Spin spinning={this.state.loading}>
  1130. <div className="clearfix">
  1131. <div style={{ position: "absolute", top: '-52px', left: '81px', zIndex: 10000 }}>
  1132. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1133. </div>
  1134. <FormItem
  1135. className="half-item"
  1136. {...formItemLayout}
  1137. label="订单编号"
  1138. >
  1139. <span>{this.state.orderNo}</span>
  1140. </FormItem>
  1141. <FormItem
  1142. className="half-item"
  1143. {...formItemLayout}
  1144. label="合同编号"
  1145. >
  1146. <span>{this.state.contractNo}</span>
  1147. </FormItem>
  1148. <FormItem
  1149. className="half-item"
  1150. {...formItemLayout}
  1151. label="客户名称"
  1152. >
  1153. <span>{this.state.userName}</span>
  1154. <EnterpriseNameChange
  1155. type='journal'
  1156. style={{ marginLeft: 10 }}
  1157. enterpriseId={this.state.orderUid} />
  1158. </FormItem>
  1159. <FormItem
  1160. className="half-item"
  1161. {...formItemLayout}
  1162. label="合同签订时间"
  1163. >
  1164. <span>{this.state.signDate}</span>
  1165. </FormItem>
  1166. <FormItem
  1167. className="half-item"
  1168. {...formItemLayout}
  1169. label="流程状态"
  1170. >
  1171. <span>{getProcessStatus(this.state.processStatus)}</span>
  1172. </FormItem>
  1173. <FormItem
  1174. className="half-item"
  1175. {...formItemLayout}
  1176. label="结算状态"
  1177. >
  1178. <span>
  1179. {getLiquidationStatus(this.state.liquidationStatus)}
  1180. </span>
  1181. </FormItem>
  1182. <FormItem
  1183. className="half-item"
  1184. {...formItemLayout}
  1185. label="企业联系人"
  1186. >
  1187. <span>{this.state.contacts}</span>
  1188. </FormItem>
  1189. <FormItem
  1190. className="half-item"
  1191. {...formItemLayout}
  1192. label="联系人电话"
  1193. >
  1194. <span>{this.state.contactMobile}</span>
  1195. </FormItem>
  1196. <FormItem
  1197. className="half-item"
  1198. {...formItemLayout}
  1199. label="企业法人"
  1200. >
  1201. <span>{this.state.legalPerson}</span>
  1202. </FormItem>
  1203. <FormItem
  1204. className="half-item"
  1205. {...formItemLayout}
  1206. label="法人电话"
  1207. >
  1208. <span>{this.state.legalPersonTel}</span>
  1209. </FormItem>
  1210. <FormItem
  1211. className="half-item"
  1212. {...formItemLayout}
  1213. label="签单金额(万元)"
  1214. >
  1215. <span>{this.state.firstAmount}</span>
  1216. </FormItem>
  1217. <FormItem
  1218. className="half-item"
  1219. {...formItemLayout}
  1220. label="首付金额(万元)"
  1221. >
  1222. <span>{this.state.totalAmount}</span>
  1223. </FormItem>
  1224. <FormItem
  1225. className="half-item"
  1226. {...formItemLayout}
  1227. label="特批立项"
  1228. >
  1229. <span>{getApprovedState(this.state.approval)}</span>
  1230. </FormItem>
  1231. <FormItem
  1232. className="half-item"
  1233. {...formItemLayout}
  1234. label="已收款项(万元)"
  1235. >
  1236. <span>{this.state.settlementAmount}</span>
  1237. </FormItem>
  1238. <div className="clearfix">
  1239. <FormItem
  1240. labelCol={{ span: 4 }}
  1241. wrapperCol={{ span: 16 }}
  1242. label="订单留言"
  1243. >
  1244. <span>{this.state.orderRemarks}</span>
  1245. </FormItem>
  1246. </div>
  1247. <div className="clearfix">
  1248. <FormItem
  1249. labelCol={{ span: 4 }}
  1250. wrapperCol={{ span: 18 }}
  1251. label="合同扫描件"
  1252. >
  1253. {/*<Upload*/}
  1254. {/* className="demandDetailShow-upload"*/}
  1255. {/* listType="picture-card"*/}
  1256. {/* fileList={this.state.orgCodeUrl}*/}
  1257. {/* onPreview={(file) => {*/}
  1258. {/* this.setState({*/}
  1259. {/* previewImage: file.url || file.thumbUrl,*/}
  1260. {/* previewVisible: true,*/}
  1261. {/* });*/}
  1262. {/* }}*/}
  1263. {/*/>*/}
  1264. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1265. {this.state.visible && this.state.orgCodeUrl ? <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'} /> : <div />}
  1266. </div>
  1267. <Modal
  1268. maskClosable={false}
  1269. footer={null}
  1270. width={"50%"}
  1271. visible={this.state.previewVisible}
  1272. onCancel={() => {
  1273. this.setState({
  1274. previewVisible: false,
  1275. rotateDeg: 0,
  1276. });
  1277. }}
  1278. >
  1279. <img
  1280. alt=""
  1281. style={{
  1282. width: "100%",
  1283. transform: `rotate(${this.state.rotateDeg}deg)`,
  1284. }}
  1285. src={this.state.previewImage || ""}
  1286. />
  1287. <Button
  1288. onClick={this.rotate}
  1289. style={{
  1290. position: "relative",
  1291. left: "50%",
  1292. transform: "translateX(-50%)",
  1293. }}
  1294. >
  1295. 旋转
  1296. </Button>
  1297. <Button
  1298. onClick={this.upImg}
  1299. style={{
  1300. position: "absolute",
  1301. left: -81,
  1302. top: "50%",
  1303. transform: "translateY(-50%)",
  1304. }}
  1305. >
  1306. 上一张
  1307. </Button>
  1308. <Button
  1309. onClick={this.downImg}
  1310. style={{
  1311. position: "absolute",
  1312. right: -81,
  1313. top: "50%",
  1314. transform: "translateY(-50%)",
  1315. }}
  1316. >
  1317. 下一张
  1318. </Button>
  1319. </Modal>
  1320. <Button
  1321. style={{
  1322. float: "right",
  1323. marginRight: "140px",
  1324. marginTop: "20px",
  1325. }}
  1326. onClick={this.getOrderLog}
  1327. >
  1328. 查看订单 日志
  1329. </Button>
  1330. </FormItem>
  1331. <FormItem
  1332. labelCol={{ span: 4 }}
  1333. wrapperCol={{ span: 18 }}
  1334. label="补充协议"
  1335. >
  1336. {/*<Upload*/}
  1337. {/* className="demandDetailShow-upload"*/}
  1338. {/* listType="picture-card"*/}
  1339. {/* fileList={this.state.replenishUrl}*/}
  1340. {/* onPreview={(file) => {*/}
  1341. {/* this.setState({*/}
  1342. {/* previewImage: file.url || file.thumbUrl,*/}
  1343. {/* previewVisibles: true,*/}
  1344. {/* });*/}
  1345. {/* }}*/}
  1346. {/*/>*/}
  1347. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1348. {this.state.visible && this.state.replenishUrl ? <ImgList domId={'chargeback1'} fileList={this.state.replenishUrl} /> : <div />}
  1349. </div>
  1350. <Modal
  1351. maskClosable={false}
  1352. footer={null}
  1353. width={"50%"}
  1354. visible={this.state.previewVisibles}
  1355. onCancel={() => {
  1356. this.setState({ previewVisibles: false, rotateDeg: 0, });
  1357. }}
  1358. >
  1359. <img
  1360. alt=""
  1361. style={{
  1362. width: "100%",
  1363. transform: `rotate(${this.state.rotateDeg}deg)`,
  1364. }}
  1365. src={this.state.previewImage || ""}
  1366. />
  1367. <Button
  1368. onClick={this.rotates}
  1369. style={{
  1370. position: "relative",
  1371. left: "50%",
  1372. transform: "translateX(-50%)",
  1373. }}
  1374. >
  1375. 旋转
  1376. </Button>
  1377. <Button
  1378. onClick={this.upImgs}
  1379. style={{
  1380. position: "absolute",
  1381. left: -81,
  1382. top: "50%",
  1383. transform: "translateY(-50%)",
  1384. }}
  1385. >
  1386. 上一张
  1387. </Button>
  1388. <Button
  1389. onClick={this.downImgs}
  1390. style={{
  1391. position: "absolute",
  1392. right: -81,
  1393. top: "50%",
  1394. transform: "translateY(-50%)",
  1395. }}
  1396. >
  1397. 下一张
  1398. </Button>
  1399. </Modal>
  1400. </FormItem>
  1401. </div>
  1402. <div className="clearfix">
  1403. <FormItem
  1404. className="half-item"
  1405. {...formItemLayout}
  1406. label="订单负责人"
  1407. >
  1408. <span>{this.state.salesmanName}</span>
  1409. </FormItem>
  1410. <FormItem
  1411. className="half-item"
  1412. {...formItemLayout}
  1413. label="订单负责人电话"
  1414. >
  1415. <span>{this.state.salesmanMobile}</span>
  1416. </FormItem>
  1417. </div>
  1418. <div className="clearfix">
  1419. <FormItem
  1420. className="half-item"
  1421. {...formItemLayout}
  1422. label="当前财务负责人"
  1423. >
  1424. <span>{this.state.nowFinance}</span>
  1425. </FormItem>
  1426. <FormItem
  1427. className="half-item"
  1428. {...formItemLayout}
  1429. label="当前财务负责人电话"
  1430. >
  1431. <span>{this.state.nowFinanceMobile}</span>
  1432. </FormItem>
  1433. </div>
  1434. <div className="clearfix">
  1435. <FormItem
  1436. className="half-item"
  1437. {...formItemLayout}
  1438. style={{ opacity: ".5" }}
  1439. label="原订单负责人"
  1440. >
  1441. <span>{this.state.oldSalesmanName}</span>
  1442. </FormItem>
  1443. <FormItem
  1444. className="half-item"
  1445. {...formItemLayout}
  1446. style={{ opacity: ".5" }}
  1447. label="原订单负责人电话"
  1448. >
  1449. <span>{this.state.oldSalesmanMobile}</span>
  1450. </FormItem>
  1451. </div>
  1452. <div className="clearfix">
  1453. <FormItem
  1454. className="half-item"
  1455. style={{ opacity: ".5" }}
  1456. {...formItemLayout}
  1457. label="实际财务操作人"
  1458. >
  1459. <span>{this.state.financeName}</span>
  1460. </FormItem>
  1461. <FormItem
  1462. className="half-item"
  1463. {...formItemLayout}
  1464. style={{ opacity: ".5" }}
  1465. label="实际财务操作人电话"
  1466. >
  1467. <span>{this.state.financeMobile}</span>
  1468. </FormItem>
  1469. </div>
  1470. {/* 协单人员 */}
  1471. <OrderDetail orderNo={this.state.orderNos} />
  1472. <div>
  1473. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  1474. 项目业务
  1475. </span>
  1476. </div>
  1477. <div className="patent-table">
  1478. <Spin spinning={this.state.loading}>
  1479. <Table
  1480. columns={this.state.columnsX}
  1481. dataSource={this.state.dataSourceX}
  1482. pagination={this.state.paginations}
  1483. bordered
  1484. size="small"
  1485. />
  1486. </Spin>
  1487. </div>
  1488. <div>
  1489. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  1490. 催款节点
  1491. </span>
  1492. <span
  1493. style={{
  1494. display: cuiDataList.length ? "none" : "inline-block",
  1495. marginLeft: 10,
  1496. color: "red",
  1497. }}
  1498. >
  1499. 金额总计(万元): {this.state.totalCui}
  1500. </span>
  1501. </div>
  1502. <div className="clearfix">
  1503. <Spin spinning={this.state.loading}>
  1504. <Form layout="horizontal" id="demand-form">
  1505. <Table
  1506. pagination={false}
  1507. bordered
  1508. size="small"
  1509. // columns={this.state.ContactsLists}
  1510. // dataSource={this.state.contactList}
  1511. columns={
  1512. cuiDataList.length
  1513. ? this.state.ContactsLists
  1514. : this.state.ContactsListsNew
  1515. }
  1516. dataSource={
  1517. cuiDataList.length
  1518. ? this.state.contactList
  1519. : this.state.contactListNew
  1520. }
  1521. />
  1522. <Col
  1523. span={24}
  1524. offset={9}
  1525. style={{ marginTop: "15px" }}
  1526. />
  1527. </Form>
  1528. </Spin>
  1529. </div>
  1530. </div>
  1531. </Spin>
  1532. </Form>
  1533. </Modal> : <div />}
  1534. {this.state.addnextVisible ? <Modal
  1535. maskClosable={false}
  1536. visible={this.state.addnextVisible}
  1537. onOk={this.nextCancel}
  1538. onCancel={this.nextCancel}
  1539. width="800px"
  1540. title={this.state.refundStatus == 2 ? "修改退单申请" : "退单详情"}
  1541. footer=""
  1542. className="admin-desc-content"
  1543. >
  1544. <Form layout="horizontal" id="demand-form">
  1545. <Spin spinning={this.state.loading}>
  1546. <div className="clearfix">
  1547. <FormItem
  1548. className="half-item"
  1549. {...formItemLayout}
  1550. label="退单编号"
  1551. >
  1552. <span>{this.state.id}</span>
  1553. </FormItem>
  1554. <FormItem
  1555. className="half-item"
  1556. {...formItemLayout}
  1557. label="退单日期"
  1558. >
  1559. <span>{this.state.createDate}</span>
  1560. </FormItem>
  1561. <FormItem
  1562. className="half-item"
  1563. {...formItemLayout}
  1564. label="订单编号"
  1565. >
  1566. <span>{this.state.orderNo}</span>
  1567. </FormItem>
  1568. <FormItem
  1569. className="half-item"
  1570. {...formItemLayout}
  1571. label="订单状态"
  1572. >
  1573. <span>{getNewOrderStatus(this.state.orderStatus)}</span>
  1574. </FormItem>
  1575. <FormItem
  1576. className="half-item"
  1577. {...formItemLayout}
  1578. label="退单状态"
  1579. >
  1580. <span>{getRefundStatus(this.state.refundStatus)}</span>
  1581. </FormItem>
  1582. <FormItem
  1583. className="half-item"
  1584. {...formItemLayout}
  1585. label="退款状态"
  1586. >
  1587. <span>
  1588. {getLiquidationStatus(this.state.liquidationStatus)}
  1589. </span>
  1590. </FormItem>
  1591. <div className="clearfix">
  1592. {this.state.refundStatus == 2 ? (
  1593. <FormItem
  1594. labelCol={{ span: 4 }}
  1595. wrapperCol={{ span: 16 }}
  1596. label="终止合同"
  1597. >
  1598. <Picture
  1599. domId={'chargeback4'}
  1600. fileList={(e) => {
  1601. this.setState({ contractUrl: e });
  1602. }}
  1603. pictureUrl={this.state.contractUrl}
  1604. visible={this.props.visible}
  1605. data={{
  1606. sign: "order_refund_file",
  1607. url: "/api/admin/newOrder/uploadRefundOrderFile",
  1608. }}
  1609. />
  1610. </FormItem>
  1611. ) : (
  1612. <FormItem
  1613. labelCol={{ span: 4 }}
  1614. wrapperCol={{ span: 18 }}
  1615. label="合同扫描件"
  1616. >
  1617. {/*<Upload*/}
  1618. {/* className="demandDetailShow-upload"*/}
  1619. {/* listType="picture-card"*/}
  1620. {/* fileList={this.state.orgCodeUrl}*/}
  1621. {/* onPreview={(file) => {*/}
  1622. {/* this.setState({*/}
  1623. {/* previewImage: file.url || file.thumbUrl,*/}
  1624. {/* previewVisible: true,*/}
  1625. {/* });*/}
  1626. {/* }}*/}
  1627. {/*/>*/}
  1628. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1629. {this.state.visible && this.state.orgCodeUrl ? <ImgList domId={'chargeback2'} fileList={this.state.orgCodeUrl} /> : <div />}
  1630. </div>
  1631. <Modal
  1632. maskClosable={false}
  1633. footer={null}
  1634. visible={this.state.previewVisible}
  1635. onCancel={() => {
  1636. this.setState({ previewVisible: false });
  1637. }}
  1638. >
  1639. <img
  1640. alt=""
  1641. style={{ width: "100%" }}
  1642. src={this.state.previewImage || ""}
  1643. />
  1644. </Modal>
  1645. </FormItem>
  1646. )}
  1647. </div>
  1648. <div className="clearfix">
  1649. <FormItem
  1650. labelCol={{ span: 4 }}
  1651. wrapperCol={{ span: 16 }}
  1652. label="退单申请表"
  1653. >
  1654. {/*<Upload*/}
  1655. {/* className="demandDetailShow-upload"*/}
  1656. {/* listType="picture-card"*/}
  1657. {/* fileList={this.state.orgCodeUrl}*/}
  1658. {/* onPreview={(file) => {*/}
  1659. {/* this.setState({*/}
  1660. {/* previewImage: file.url || file.thumbUrl,*/}
  1661. {/* previewVisible: true,*/}
  1662. {/* });*/}
  1663. {/* }}*/}
  1664. {/*/>*/}
  1665. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1666. {this.state.visible && this.state.orgCodeUrl ? <ImgList domId={'chargeback3'} fileList={this.state.orgCodeUrl} /> : <div />}
  1667. </div>
  1668. </FormItem>
  1669. </div>
  1670. <div className="clearfix">
  1671. <FormItem
  1672. labelCol={{ span: 4 }}
  1673. wrapperCol={{ span: 16 }}
  1674. label="退单理由"
  1675. >
  1676. {this.state.refundStatus == 2 ? (
  1677. <Input
  1678. type="textarea"
  1679. placeholder="请输入退单理由"
  1680. rows={4}
  1681. value={this.state.reason}
  1682. onChange={(e) => {
  1683. this.setState({ reason: e.target.value });
  1684. }}
  1685. />
  1686. ) : (
  1687. <span>{this.state.reason}</span>
  1688. )}
  1689. </FormItem>
  1690. </div>
  1691. {this.state.refundStatus == 2 ? (
  1692. <FormItem
  1693. wrapperCol={{ span: 12, offset: 4 }}
  1694. className="half-middle"
  1695. >
  1696. <Button
  1697. className="submitSave"
  1698. type="primary"
  1699. onClick={this.tuidanOk}
  1700. >
  1701. 重新退单
  1702. </Button>
  1703. <Button
  1704. className="submitSave"
  1705. type="ghost"
  1706. onClick={this.nextCancel}
  1707. >
  1708. 取消
  1709. </Button>
  1710. </FormItem>
  1711. ) : (
  1712. ""
  1713. )}
  1714. </div>
  1715. </Spin>
  1716. </Form>
  1717. </Modal> : <div />}
  1718. <OrderRiZi
  1719. dataSourcerizhi={this.state.dataSourcerizhi}
  1720. closeOrderLog={this.closeOrderLog}
  1721. visible={this.state.rizhivisible}
  1722. loading={this.state.loading}
  1723. />
  1724. </div>
  1725. </div>
  1726. );
  1727. },
  1728. })
  1729. );
  1730. export default IntentionCustomer;