chargeback.jsx 61 KB

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