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. <div>{!!text && JSON.parse(text).toString()}</div>
  284. );
  285. }
  286. },
  287. {
  288. title: "本次派单",
  289. dataIndex: "serviceYear",
  290. key: "serviceYear",
  291. render: (text, record) => {
  292. return (
  293. <div>{!text ? "" : text}</div>
  294. );
  295. }
  296. },
  297. {
  298. title: "项目说明",
  299. dataIndex: "taskComment",
  300. key: "taskComment",
  301. render: (text) => {
  302. return (
  303. <Tooltip title={text}>
  304. <div
  305. style={{
  306. width: 100,
  307. overflow: "hidden",
  308. whiteSpace: "nowrap",
  309. textOverflow: "ellipsis",
  310. }}
  311. >{text}</div>
  312. </Tooltip>
  313. )
  314. },
  315. },
  316. ],
  317. columnsrizhi: [
  318. {
  319. title: "流程",
  320. dataIndex: "processName",
  321. key: "processName",
  322. },
  323. {
  324. title: "操作人",
  325. dataIndex: "adminName",
  326. key: "adminName",
  327. },
  328. {
  329. title: "时间",
  330. dataIndex: "createDate",
  331. key: "createDate",
  332. },
  333. ],
  334. dataSourceX: [],
  335. ContactsListsNew: [
  336. {
  337. title: "项目名称",
  338. dataIndex: "commodityName",
  339. key: "commodityName",
  340. render: (text, record) => {
  341. return <span>{text + "-" + record.tid}</span>;
  342. },
  343. },
  344. {
  345. title: "项目分类",
  346. dataIndex: "projectType",
  347. key: "projectType",
  348. render: (text) => {
  349. let arr = this.state.dataSourceX || [];
  350. let str = "";
  351. for (let i = 0; i < arr.length; i++) {
  352. if (this.state.dataSourceX[i].sort == text) {
  353. str = this.state.dataSourceX[i].cname;
  354. return <span>{str}</span>;
  355. }
  356. }
  357. },
  358. },
  359. {
  360. title: "催款科目",
  361. dataIndex: "dunTypeName",
  362. key: "dunTypeName",
  363. render: (text) => {
  364. if (record.customizeName) {
  365. return text + record.customizeName;
  366. }
  367. return <span>{text}</span>;
  368. },
  369. },
  370. {
  371. title: "时间(天)",
  372. dataIndex: "waitDay",
  373. key: "waitDay",
  374. render: (text, record) => {
  375. if (record.dunTypeName) {
  376. if (record.customizeTimes) {
  377. return record.customizeTimes;
  378. }
  379. return <span>{text}</span>;
  380. }
  381. },
  382. },
  383. {
  384. title: "金额(万元)",
  385. dataIndex: "money",
  386. key: "money",
  387. render: (text, record) => {
  388. if (record.dunTypeName) {
  389. if (record.appropriationRatio) {
  390. let percent = Number(record.appropriationRatio * 100).toFixed(2);
  391. percent += "%";
  392. return <span>{percent}(拨款比例)</span>;
  393. } else {
  394. return <span>{text}</span>;
  395. }
  396. }
  397. },
  398. },
  399. {
  400. title: "服务年限",
  401. dataIndex: "startDate",
  402. key: "startDate",
  403. render: (text, record) => {
  404. if (record.dunTypeName) {
  405. return <span>{text}</span>;
  406. }
  407. },
  408. },
  409. {
  410. title: "催款状态",
  411. dataIndex: "status",
  412. key: "status",
  413. render: (text) => {
  414. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  415. },
  416. },
  417. ],
  418. ContactsLists: [
  419. {
  420. title: "催款科目",
  421. dataIndex: "dunSubject",
  422. key: "dunSubject",
  423. render: (text) => {
  424. return getjiedian(text);
  425. },
  426. },
  427. {
  428. title: "金额(万元)",
  429. dataIndex: "money",
  430. key: "money",
  431. },
  432. {
  433. title: "催款状态",
  434. dataIndex: "dunStatus",
  435. key: "dunStatus",
  436. render: (text) => {
  437. return getCuikuan(text);
  438. },
  439. },
  440. ],
  441. };
  442. },
  443. //进入新增拜访记录
  444. visit(record) {
  445. this.setState({
  446. addnextVisible: true,
  447. });
  448. this.tuidanxiangqing(record.id);
  449. },
  450. //退单详情
  451. tuidanxiangqing(id) {
  452. this.setState({
  453. loading: true,
  454. });
  455. $.ajax({
  456. method: "get",
  457. dataType: "json",
  458. crossDomain: false,
  459. url: globalConfig.context + "/api/admin/newOrder/orderRefundDetail",
  460. data: {
  461. id: id,
  462. },
  463. }).done(
  464. function (data) {
  465. if (data.error.length || data.data.list == "") {
  466. if (data.error && data.error.length) {
  467. message.warning(data.error[0].message);
  468. }
  469. } else {
  470. let thisdata = data.data;
  471. this.setState({
  472. id: thisdata.id,
  473. createDate: thisdata.createDate, //退单时间
  474. orderNo: thisdata.orderNo, //订单编号
  475. orderStatus: thisdata.orderStatus, //订单状态
  476. refundStatus: thisdata.refundStatus, //退单状态
  477. applicationUrl: thisdata.applicationUrl
  478. ? splitUrl(
  479. thisdata.applicationUrl,
  480. ",",
  481. globalConfig.avatarHost + "/upload"
  482. )
  483. : [], //申请表附件
  484. contractUrl: thisdata.contractUrl
  485. ? splitUrl(
  486. thisdata.contractUrl,
  487. ",",
  488. globalConfig.avatarHost + "/upload"
  489. )
  490. : [], //合同附件
  491. reason: thisdata.reason, //退单原因
  492. liquidationStatus: thisdata.liquidationStatus, //结算状态
  493. });
  494. this.setState({
  495. loading: false,
  496. });
  497. }
  498. }.bind(this)
  499. );
  500. },
  501. // 拆分详细
  502. showRes(record) {
  503. this.setState({
  504. resVisible: true,
  505. resRecord: record,
  506. });
  507. },
  508. resCancel() {
  509. this.setState({
  510. resVisible: false,
  511. });
  512. },
  513. //点击确认退单
  514. tuidanOk() {
  515. let contractUrls = [];
  516. let applicationUrls = [];
  517. if (this.state.contractUrl.length) {
  518. let picArr = [];
  519. this.state.contractUrl.map(function (item) {
  520. if (
  521. item.response &&
  522. item.response.data &&
  523. item.response.data.length
  524. ) {
  525. picArr.push(item.response.data);
  526. }
  527. });
  528. contractUrls = picArr.join(",");
  529. }
  530. if (this.state.applicationUrl.length) {
  531. let picArr = [];
  532. this.state.applicationUrl.map(function (item) {
  533. if (
  534. item.response &&
  535. item.response.data &&
  536. item.response.data.length
  537. ) {
  538. picArr.push(item.response.data);
  539. }
  540. });
  541. applicationUrls = picArr.join(",");
  542. }
  543. $.ajax({
  544. method: "POST",
  545. dataType: "json",
  546. crossDomain: false,
  547. url: globalConfig.context + "/api/admin/newOrder/updateOrderRefund",
  548. data: {
  549. id: this.state.id, //订单编号
  550. contractUrl: contractUrls.length ? contractUrls : "", //终止合同
  551. applicationUrl: applicationUrls.length ? applicationUrls : "", //退单申请表
  552. reason: this.state.reason, //退单原因
  553. },
  554. }).done(
  555. function (data) {
  556. this.setState({
  557. loading: false,
  558. });
  559. if (!data.error.length) {
  560. message.success("退单成功!");
  561. this.nextCancel();
  562. this.handleCancel();
  563. } else {
  564. message.warning(data.error[0].message);
  565. }
  566. }.bind(this)
  567. );
  568. },
  569. //页面加载函数
  570. componentWillMount() {
  571. this.loadData();
  572. },
  573. //整行点击
  574. tableRowClick(record) {
  575. this.setState({
  576. visible: true,
  577. orderNos: record.orderNo
  578. });
  579. this.xiangqing(record.orderNo);
  580. this.xiangmu(record.orderNo);
  581. this.jiedian(record.orderNo);
  582. this.jiedianNew(record.orderNo);
  583. },
  584. rizhi() {
  585. // console.log(this.state.orderNo);
  586. this.setState({
  587. loading: true,
  588. });
  589. $.ajax({
  590. method: "get",
  591. dataType: "json",
  592. crossDomain: false,
  593. url: "/api/admin/newOrder/selectOrderLog",
  594. data: {
  595. orderNo: this.state.orderNo,
  596. },
  597. success: function (data) {
  598. let theArr = [];
  599. let thisData = data.data;
  600. if (!thisData.length) {
  601. if (data.error && data.error.length) {
  602. message.warning(data.error[0].message);
  603. }
  604. thisData = {};
  605. } else {
  606. for (let i = 0; i < data.data.length; i++) {
  607. let thisdata = data.data[i];
  608. theArr.push({
  609. processName: thisdata.processName,
  610. adminName: thisdata.adminName,
  611. createDate: thisdata.createDate,
  612. remarks: thisdata.remarks,
  613. });
  614. }
  615. }
  616. this.setState({
  617. dataSourcerizhi: theArr,
  618. });
  619. }.bind(this),
  620. }).always(
  621. function () {
  622. this.setState({
  623. loading: false,
  624. });
  625. }.bind(this)
  626. );
  627. },
  628. //查看订单日志
  629. getOrderLog() {
  630. this.setState({
  631. rizhivisible: true,
  632. });
  633. this.rizhi();
  634. },
  635. closeOrderLog() {
  636. this.setState({
  637. rizhivisible: false,
  638. });
  639. },
  640. //详情关闭
  641. nextCancel() {
  642. this.setState({
  643. addnextVisible: false,
  644. });
  645. this.resets();
  646. },
  647. //订单详情
  648. xiangqing(orderNos) {
  649. $.ajax({
  650. method: "get",
  651. dataType: "json",
  652. crossDomain: false,
  653. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  654. data: {
  655. orderNo: orderNos,
  656. },
  657. success: function (data) {
  658. if (data.error.length || data.data.list == "") {
  659. if (data.error && data.error.length) {
  660. message.warning(data.error[0].message);
  661. }
  662. } else {
  663. let thisdata = data.data;
  664. this.setState({
  665. orderUid: thisdata.uid,
  666. id: thisdata.id,
  667. kehuId: thisdata.buyerId,
  668. orderNo: thisdata.orderNo, //订单编号
  669. contractNo: thisdata.contractNo, //合同编号
  670. userName: thisdata.userName, //客户名称
  671. signDate: thisdata.signDate, //签单时间
  672. examineName: thisdata.examineName,
  673. processStatus: thisdata.processStatus, //流程状态
  674. liquidationStatus: thisdata.liquidationStatus, //结算状态
  675. contacts: thisdata.contacts, //企业联系人
  676. contactMobile: thisdata.contactMobile, //联系人电话
  677. legalPerson: thisdata.legalPerson, //法人
  678. legalPersonTel: thisdata.legalPersonTel, //法人电话
  679. firstAmount: thisdata.firstAmount, //签单金额
  680. totalAmount: thisdata.totalAmount, //首付金额
  681. settlementAmount: thisdata.settlementAmount, //已收款项
  682. orderRemarks: thisdata.orderRemarks, //订单留言
  683. orgCodeUrl: thisdata.contractPictureUrl
  684. ? splitUrl(
  685. thisdata.contractPictureUrl,
  686. ",",
  687. globalConfig.avatarHost + "/upload"
  688. )
  689. : [], //图片地址
  690. replenishUrl: thisdata.agreementUrl
  691. ? splitUrl(
  692. thisdata.agreementUrl,
  693. ",",
  694. globalConfig.avatarHost + "/upload"
  695. )
  696. : [],
  697. salesmanName: thisdata.salesmanName, //营销员名称
  698. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  699. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  700. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  701. financeName: thisdata.financeName, //财务名称
  702. financeMobile: thisdata.financeMobile, //财务电话
  703. nowFinance: thisdata.nowFinance, //财务名称
  704. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  705. approval: thisdata.approval.toString(), //特批状态
  706. //approval:thisdata.approval==0?thisdata.approval.toString():thisdata.approval,//特批状态
  707. deleteSign: thisdata.deleteSign,
  708. });
  709. }
  710. }.bind(this),
  711. }).always(
  712. function () {
  713. this.setState({
  714. loading: false,
  715. });
  716. }.bind(this)
  717. );
  718. },
  719. //项目列表
  720. xiangmu(orderNos) {
  721. $.ajax({
  722. method: "get",
  723. dataType: "json",
  724. crossDomain: false,
  725. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  726. data: {
  727. orderNo: orderNos,
  728. },
  729. success: function (data) {
  730. let theArr = [];
  731. if (data.error.length || data.data.list == "") {
  732. if (data.error && data.error.length) {
  733. message.warning(data.error[0].message);
  734. }
  735. } else {
  736. for (let i = 0; i < data.data.length; i++) {
  737. let thisdata = data.data[i];
  738. thisdata.key = i;
  739. thisdata.sort = thisdata.cSort;
  740. theArr.push(thisdata);
  741. }
  742. }
  743. this.setState({
  744. dataSourceX: theArr,
  745. paginations: false,
  746. });
  747. }.bind(this),
  748. }).always(
  749. function () {
  750. this.setState({
  751. loading: false,
  752. });
  753. }.bind(this)
  754. );
  755. },
  756. //节点列表
  757. jiedian(orderNos) {
  758. $.ajax({
  759. method: "get",
  760. dataType: "json",
  761. crossDomain: false,
  762. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  763. data: {
  764. orderNo: orderNos,
  765. },
  766. success: function (data) {
  767. let theArr = [];
  768. let thisData = [];
  769. if (data.error.length || data.data.list == "") {
  770. if (data.error && data.error.length) {
  771. message.warning(data.error[0].message);
  772. }
  773. } else {
  774. for (let i = 0; i < data.data.length; i++) {
  775. thisData = data.data[i];
  776. theArr.push({
  777. key: i,
  778. dunSubject: thisData.dunSubject
  779. ? thisData.dunSubject.toString()
  780. : "", //催款科目
  781. id: thisData.id, //节点Id
  782. money: thisData.money, //催款金额
  783. dunStatus: thisData.dunStatus, //催款状态
  784. orderNo: thisData.orderNo,
  785. });
  786. }
  787. this.setState({
  788. contactList: theArr,
  789. });
  790. }
  791. }.bind(this),
  792. }).always(
  793. function () {
  794. this.setState({
  795. loading: false,
  796. });
  797. }.bind(this)
  798. );
  799. },
  800. //查看催款节点
  801. jiedianNew(orderNos) {
  802. $.ajax({
  803. method: "get",
  804. dataType: "json",
  805. crossDomain: false,
  806. url:
  807. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  808. data: {
  809. orderNo: orderNos,
  810. },
  811. success: function (data) {
  812. if (data.error && data.error.length) {
  813. message.warning(data.error[0].message);
  814. } else {
  815. let theArr = [];
  816. let thisData = [];
  817. let arr = data.data || [];
  818. let totalCui = 0;
  819. for (let i = 0; i < arr.length; i++) {
  820. thisData = arr[i];
  821. totalCui += +thisData.money;
  822. theArr.push({
  823. key: i,
  824. dunSubject: thisData.dunSubject
  825. ? thisData.dunSubject.toString()
  826. : "", //催款科目
  827. id: thisData.id, //节点Id
  828. money: thisData.money, //催款金额
  829. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  830. commodityName: thisData.commodityName,
  831. projectType: thisData.projectType,
  832. dunTypeName: thisData.dunTypeName,
  833. status: thisData.status,
  834. waitDay: thisData.waitDay,
  835. effectiveCount: thisData.effectiveCount,
  836. startDate: thisData.startDate,
  837. dunType: thisData.dunType,
  838. appropriationRatio: thisData.appropriationRatio,
  839. customizeTimes: thisData.customizeTimes,
  840. customizeName: thisData.customizeName,
  841. tid: thisData.tid,
  842. });
  843. }
  844. if (!totalCui) {
  845. totalCui = 0;
  846. }
  847. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  848. this.setState({
  849. contactListNew: theArr,
  850. totalCui,
  851. });
  852. }
  853. }.bind(this),
  854. }).always(
  855. function () {
  856. this.setState({
  857. loading: false,
  858. });
  859. }.bind(this)
  860. );
  861. },
  862. downImg() {
  863. let num = 0;
  864. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  865. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  866. num = i;
  867. }
  868. }
  869. if (num == this.state.orgCodeUrl.length - 1) {
  870. return message.warning("已经是最后一张了哦");
  871. }
  872. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  873. this.setState({
  874. previewImage: this.state.previewImage,
  875. rotateDeg: 0,
  876. });
  877. },
  878. upImg() {
  879. let num = 0;
  880. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  881. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  882. num = i;
  883. }
  884. }
  885. if (num == 0) {
  886. return message.warning("已经是第一张了哦");
  887. }
  888. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  889. this.setState({
  890. previewImage: this.state.previewImage,
  891. rotateDeg: 0,
  892. });
  893. },
  894. rotate() {
  895. let rotateDeg = this.state.rotateDeg + 90;
  896. this.setState({
  897. rotateDeg,
  898. });
  899. },
  900. downImgs() {
  901. let num = 0;
  902. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  903. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  904. num = i;
  905. }
  906. }
  907. if (num == this.state.replenishUrl.length - 1) {
  908. return message.warning("已经是最后一张了哦");
  909. }
  910. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  911. this.setState({
  912. previewImage: this.state.previewImage,
  913. rotateDeg: 0,
  914. });
  915. },
  916. upImgs() {
  917. let num = 0;
  918. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  919. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  920. num = i;
  921. }
  922. }
  923. if (num == 0) {
  924. return message.warning("已经是第一张了哦");
  925. }
  926. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  927. this.setState({
  928. previewImage: this.state.previewImage,
  929. rotateDeg: 0,
  930. });
  931. },
  932. rotates() {
  933. let rotateDeg = this.state.rotateDeg + 90;
  934. this.setState({
  935. rotateDeg,
  936. });
  937. },
  938. resets() {
  939. this.state.orderNo = "";
  940. this.state.customerName = "";
  941. this.state.releaseDate[0] = undefined;
  942. this.state.releaseDate[1] = undefined;
  943. },
  944. reset() {
  945. this.state.orderNo = "";
  946. this.state.customerName = "";
  947. this.state.releaseDate[0] = undefined;
  948. this.state.releaseDate[1] = undefined;
  949. this.loadData();
  950. },
  951. //搜索
  952. search() {
  953. this.setState({
  954. //signBillVisible:false
  955. });
  956. this.loadData();
  957. },
  958. getOrgCodeUrl(e) {
  959. this.setState({ orgCodeUrl: e });
  960. },
  961. getReplenishUrl(e) {
  962. this.setState({ replenishUrl: e });
  963. },
  964. //关闭详情
  965. visitCancel() {
  966. this.setState({
  967. visible: false,
  968. });
  969. this.resets();
  970. },
  971. visitOk() {
  972. this.setState({
  973. visible: false,
  974. });
  975. this.resets();
  976. },
  977. changeList(arr) {
  978. const newArr = [];
  979. this.state.columns.forEach(item => {
  980. arr.forEach(val => {
  981. if (val === item.title) {
  982. newArr.push(item);
  983. }
  984. });
  985. });
  986. this.setState({
  987. changeList: newArr
  988. });
  989. },
  990. render() {
  991. const formItemLayout = {
  992. labelCol: { span: 8 },
  993. wrapperCol: { span: 14 },
  994. };
  995. const FormItem = Form.Item;
  996. const { RangePicker } = DatePicker;
  997. const cuiDataList = this.state.contactList || [];
  998. const rowSelection = {
  999. selectedRowKeys: this.state.selectedRowKeys,
  1000. onChange: (selectedRowKeys, selectedRows) => {
  1001. this.setState({
  1002. modalVisible: false,
  1003. selectedRows: selectedRows.slice(-1),
  1004. selectedRowKeys: selectedRowKeys.slice(-1),
  1005. });
  1006. },
  1007. onSelect: (recordt) => {
  1008. this.setState({
  1009. modalVisible: false,
  1010. recordt: recordt.id,
  1011. });
  1012. },
  1013. };
  1014. const { TabPane } = Tabs;
  1015. return (
  1016. <div className="user-content">
  1017. {this.state.resVisible ? (
  1018. <ResolutionDetail
  1019. cancel={this.resCancel}
  1020. detail={this.state.resRecord}
  1021. visible={this.state.resVisible}
  1022. id={this.state.resRecord.orderNo}
  1023. />
  1024. ) : (
  1025. ""
  1026. )}
  1027. <ShowModalDiv ShowModal={this.state.showModal} />
  1028. <div className="content-title" style={{ marginBottom: 10 }}>
  1029. <span style={{ fontWeight: 900, fontSize: 16 }}>退单管理</span>
  1030. </div>
  1031. <div className="user-search">
  1032. <Tabs
  1033. defaultActiveKey="1"
  1034. onChange={this.callback}
  1035. className="test"
  1036. >
  1037. <TabPane tab="搜索" key="1">
  1038. <div style={{ marginLeft: 10 }}>
  1039. <Input
  1040. placeholder="订单编号"
  1041. style={{ width: "150px", marginRight: 10 }}
  1042. value={this.state.orderNo}
  1043. onChange={(e) => {
  1044. this.setState({ orderNo: e.target.value });
  1045. }}
  1046. />
  1047. <Input
  1048. placeholder="客户名称"
  1049. style={{
  1050. width: "150px",
  1051. marginBottom: "10px",
  1052. marginTop: 10,
  1053. marginRight: 10,
  1054. }}
  1055. value={this.state.customerName}
  1056. onChange={(e) => {
  1057. this.setState({ customerName: e.target.value });
  1058. }}
  1059. />
  1060. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  1061. <RangePicker
  1062. value={[
  1063. this.state.releaseDate[0]
  1064. ? moment(this.state.releaseDate[0])
  1065. : null,
  1066. this.state.releaseDate[1]
  1067. ? moment(this.state.releaseDate[1])
  1068. : null,
  1069. ]}
  1070. onChange={(data, dataString) => {
  1071. this.setState({ releaseDate: dataString });
  1072. }}
  1073. />
  1074. <Button
  1075. type="primary"
  1076. onClick={this.search}
  1077. style={{ marginLeft: "10px", marginRight: 10 }}
  1078. >
  1079. 搜索
  1080. </Button>
  1081. <Button onClick={this.reset}>重置</Button>
  1082. </div>
  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="1200px"
  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, this.state.examineName, this.state.approval)}</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;