chargeback.jsx 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142
  1. import React from 'react';
  2. import { Button, Input, Spin, Table, message,DatePicker, Upload, Form ,Modal,Col} from 'antd';
  3. import $ from 'jquery/src/ajax';
  4. import Picture from '@/manageCenter/publicComponent/picture';
  5. import moment from 'moment';
  6. import { getLiquidationStatus,getApprovedState,getProcessStatus,splitUrl,getjiedian,getNewOrderStatus,getRefundStatus,getCuikuan} from '@/tools.js';
  7. import './customer.less';
  8. const IntentionCustomer = Form.create()(React.createClass({
  9. loadData(pageNo) {
  10. this.setState({
  11. visitModul:false,
  12. loading: true,
  13. ispage:pageNo,
  14. modalVisible:false
  15. });
  16. $.ajax({
  17. method: "get",
  18. dataType: "json",
  19. crossDomain: false,
  20. url: globalConfig.context +"/api/admin/newOrder/orderRefundList",
  21. data: {
  22. pageNo: pageNo || 1,
  23. pageSize: this.state.pagination.pageSize,
  24. name: this.state.customerName,//名称
  25. orderNo: this.state.orderNo,//订单编号
  26. starTime: this.state.releaseDate[0],//开始时间
  27. endTime: this.state.releaseDate[1],//结束时间
  28. },
  29. success: function(data) {
  30. let theArr = [];
  31. if(data.error.length || data.data.list == "") {
  32. if(data.error && data.error.length) {
  33. message.warning(data.error[0].message);
  34. };
  35. } else {
  36. for(let i = 0; i < data.data.list.length; i++) {
  37. let thisdata = data.data.list[i];
  38. theArr.push({
  39. key: i,
  40. id: thisdata.id,//用户ID
  41. orderNo: thisdata.orderNo,//订单编号
  42. userName:thisdata.userName,//客户名称
  43. orderStatus:thisdata.orderStatus,//订单状态
  44. refundStatus:thisdata.refundStatus,//退单状态
  45. reason:thisdata.reason,//退单原因
  46. createDate:thisdata.createDate,//退单时间
  47. liquidationStatus:thisdata.liquidationStatus,//结算状态
  48. });
  49. };
  50. this.state.pagination.total = data.data.totalCount;
  51. };
  52. if(data.data&&data.data.list&&!data.data.list.length){
  53. this.state.pagination.total=0
  54. }
  55. this.setState({
  56. dataSource: theArr,
  57. pageNo: pageNo,
  58. pagination: this.state.pagination,
  59. selectedRowKeys:[]
  60. });
  61. }.bind(this),
  62. }).always(function() {
  63. this.setState({
  64. loading: false
  65. });
  66. }.bind(this));
  67. },
  68. getInitialState() {
  69. return {
  70. page:1,
  71. releaseDate: [],
  72. selectedRowKeys: [],
  73. orgCodeUrl:[],
  74. customerArr:[],
  75. applicationUrl:[],
  76. contractUrl:[],
  77. pagination: {
  78. defaultCurrent: 1,
  79. defaultPageSize: 10,
  80. showQuickJumper: true,
  81. pageSize: 10,
  82. onChange: function(page) {
  83. this.loadData(page);
  84. }.bind(this),
  85. showTotal: function(total) {
  86. return '共' + total + '条数据';
  87. }
  88. },
  89. columns: [
  90. {
  91. title: '退单编号',
  92. dataIndex: 'id',
  93. key: 'id'
  94. },{
  95. title: '退单日期',
  96. dataIndex: 'createDate',
  97. key: 'createDate'
  98. }, {
  99. title: '客户名称',
  100. dataIndex: 'userName',
  101. key: 'userName',
  102. render:(text)=>{
  103. return (text&&text.length>9?text.substr(0,9)+'...':text)
  104. }
  105. },{
  106. title: '订单编号',
  107. dataIndex: 'orderNo',
  108. key: 'orderNo'
  109. },{
  110. title: '订单状态',
  111. dataIndex: 'orderStatus',
  112. key: 'orderStatus',
  113. render:text=>{return getNewOrderStatus(text)}
  114. },{
  115. title: '结算状态',
  116. dataIndex: 'liquidationStatus',
  117. key: 'liquidationStatus',
  118. render:text=>{return getLiquidationStatus(text)}
  119. }, {
  120. title: '退单状态',
  121. dataIndex: 'refundStatus',
  122. key: 'refundStatus',
  123. render:text=>{return getRefundStatus(text)}
  124. },{
  125. title: '退单原因',
  126. dataIndex: 'reason',
  127. key: 'reason',
  128. render:(text)=>{
  129. return (text&&text.length>18?text.substr(0,18)+'...':text)
  130. }
  131. }, {
  132. title: '操作',
  133. dataIndex: 'abc',
  134. key: 'abc',
  135. render: (text, record) => {
  136. return <div>
  137. <Button onClick={(e) =>{ e.stopPropagation(), this.visit(record)}} type="primary">{this.state.refundStatus==2?'修改退单申请':'查看退款申请'}</Button>
  138. </div>
  139. }
  140. }
  141. ],
  142. data: [],
  143. dataSource: [],
  144. columnsX: [
  145. {
  146. title: '业务项目名称',
  147. dataIndex: 'commodityName',
  148. key: 'commodityName'
  149. }, {
  150. title: '项目类别',
  151. dataIndex: 'cname',
  152. key: 'cname',
  153. },{
  154. title: '项目数量',
  155. dataIndex: 'commodityQuantity',
  156. key: 'commodityQuantity'
  157. }, {
  158. title: '金额(万元)',
  159. dataIndex: 'commodityPrice',
  160. key: 'commodityPrice'
  161. }, {
  162. title: '负责人',
  163. dataIndex: 'contacts',
  164. key: 'contacts'
  165. }, {
  166. title: '负责人电话',
  167. dataIndex: 'contactsMobile',
  168. key: 'contactsMobile'
  169. }, {
  170. title: '主要项目',
  171. dataIndex: 'main',
  172. key: 'main',
  173. render:(text)=>{
  174. return (text?'是':'否')
  175. }
  176. }, {
  177. title: '项目说明',
  178. dataIndex: 'taskComment',
  179. key: 'taskComment',
  180. render:(text)=>{
  181. return (text&&text.length>8?text.substr(0,8)+'…':text)
  182. }
  183. }
  184. ],
  185. columnsrizhi:[
  186. {
  187. title:'流程',
  188. dataIndex: 'processName',
  189. key: 'processName'
  190. },
  191. {
  192. title:'操作人',
  193. dataIndex: 'adminName',
  194. key: 'adminName'
  195. },{
  196. title:'时间',
  197. dataIndex: 'createDate',
  198. key: 'createDate'
  199. }
  200. ],
  201. dataSourceX: [],
  202. ContactsLists: [{
  203. title: '催款科目',
  204. dataIndex: 'dunSubject',
  205. key: 'dunSubject',
  206. render: text=>{return getjiedian(text)}
  207. },{
  208. title: '金额(万)',
  209. dataIndex: 'money',
  210. key: 'money',
  211. }, {
  212. title: '催款状态',
  213. dataIndex: 'dunStatus',
  214. key: 'dunStatus',
  215. render:text=>{return getCuikuan(text)}
  216. },
  217. ],
  218. };
  219. },
  220. //进入新增拜访记录
  221. visit(record) {
  222. this.setState({
  223. addnextVisible:true,
  224. })
  225. this.tuidanxiangqing(record.id);
  226. },
  227. //退单详情
  228. tuidanxiangqing(id) {
  229. this.setState({
  230. loading: true
  231. });
  232. $.ajax({
  233. method: "get",
  234. dataType: "json",
  235. crossDomain: false,
  236. url: globalConfig.context + "/api/admin/newOrder/orderRefundDetail",
  237. data: {
  238. id:id
  239. }
  240. }).done(function (data) {
  241. if(data.error.length || data.data.list == "") {
  242. if(data.error && data.error.length) {
  243. message.warning(data.error[0].message);
  244. };
  245. } else {
  246. let thisdata=data.data;
  247. this.setState({
  248. id:thisdata.id,
  249. createDate:thisdata.createDate,//退单时间
  250. orderNo: thisdata.orderNo,//订单编号
  251. orderStatus: thisdata.orderStatus,//订单状态
  252. refundStatus:thisdata.refundStatus,//退单状态
  253. applicationUrl:thisdata.applicationUrl?splitUrl(thisdata.applicationUrl, ',', globalConfig.avatarHost + '/upload') : [],//申请表附件
  254. contractUrl:thisdata.contractUrl?splitUrl(thisdata.contractUrl, ',', globalConfig.avatarHost + '/upload') : [],//合同附件
  255. reason:thisdata.reason,//退单原因
  256. liquidationStatus:thisdata.liquidationStatus,//结算状态
  257. })
  258. this.setState({
  259. loading: false
  260. });
  261. };
  262. }.bind(this));
  263. },
  264. //点击确认退单
  265. tuidanOk(){
  266. let contractUrls = [];
  267. let applicationUrls = [];
  268. if (this.state.contractUrl.length) {
  269. let picArr = [];
  270. this.state.contractUrl.map(function (item) {
  271. if ( item.response && item.response.data && item.response.data.length ){
  272. picArr.push(item.response.data);
  273. }
  274. });
  275. contractUrls = picArr.join(",");
  276. };
  277. if (this.state.applicationUrl.length) {
  278. let picArr = [];
  279. this.state.applicationUrl.map(function (item) {
  280. if ( item.response && item.response.data && item.response.data.length ){
  281. picArr.push(item.response.data);
  282. }
  283. });
  284. applicationUrls = picArr.join(",");
  285. };
  286. $.ajax({
  287. method: "POST",
  288. dataType: "json",
  289. crossDomain: false,
  290. url: globalConfig.context +'/api/admin/newOrder/updateOrderRefund' ,
  291. data: {
  292. id:this.state.id,//订单编号
  293. contractUrl:contractUrls.length?contractUrls:'',//终止合同
  294. applicationUrl:applicationUrls.length?applicationUrls:'',//退单申请表
  295. reason:this.state.reason,//退单原因
  296. }
  297. }).done(function(data) {
  298. this.setState({
  299. loading: false
  300. });
  301. if(!data.error.length) {
  302. message.success('退单成功!');
  303. this.nextCancel();
  304. this.handleCancel();
  305. } else {
  306. message.warning(data.error[0].message);
  307. }
  308. }.bind(this));
  309. },
  310. //页面加载函数
  311. componentWillMount() {
  312. this.loadData();
  313. },
  314. //整行点击
  315. tableRowClick(record) {
  316. this.setState({
  317. visible:true,
  318. });
  319. this.xiangqing(record.orderNo);
  320. this.xiangmu(record.orderNo);
  321. this.jiedian(record.orderNo);
  322. },
  323. rizhi(){
  324. console.log(this.state.orderNo)
  325. this.setState({
  326. loading:true
  327. })
  328. $.ajax({
  329. method: "get",
  330. dataType: "json",
  331. crossDomain: false,
  332. url: '/api/admin/newOrder/selectOrderLog',
  333. data: {
  334. orderNo:this.state.orderNo
  335. },
  336. success: function (data) {
  337. let theArr = [];
  338. let thisData = data.data;
  339. if (!thisData.length) {
  340. if (data.error && data.error.length) {
  341. message.warning(data.error[0].message);
  342. };
  343. thisData = {};
  344. }else{
  345. for(let i = 0; i < data.data.length; i++) {
  346. let thisdata = data.data[i];
  347. theArr.push({
  348. processName:thisdata.processName,
  349. adminName:thisdata.adminName,
  350. createDate:thisdata.createDate,
  351. });
  352. };
  353. };
  354. this.setState({
  355. dataSourcerizhi: theArr
  356. })
  357. }.bind(this),
  358. }).always(function () {
  359. this.setState({
  360. loading: false
  361. });
  362. }.bind(this));
  363. },
  364. //查看订单日志
  365. getOrderLog(){
  366. this.setState({
  367. rizhivisible:true
  368. })
  369. this.rizhi()
  370. },
  371. closeOrderLog(){
  372. this.setState({
  373. rizhivisible:false
  374. })
  375. },
  376. //详情关闭
  377. nextCancel() {
  378. this.setState({
  379. addnextVisible: false
  380. })
  381. this.resets();
  382. },
  383. //订单详情
  384. xiangqing(orderNos) {
  385. $.ajax({
  386. method: "get",
  387. dataType: "json",
  388. crossDomain: false,
  389. url: globalConfig.context +"/api/admin/newOrder/getOrderNewDetail",
  390. data: {
  391. orderNo:orderNos
  392. },
  393. success: function(data) {
  394. if(data.error.length || data.data.list == "") {
  395. if(data.error && data.error.length) {
  396. message.warning(data.error[0].message);
  397. };
  398. } else {
  399. let thisdata=data.data;
  400. this.setState({
  401. id: thisdata.id,
  402. kehuId: thisdata.buyerId,
  403. orderNo: thisdata.orderNo, //订单编号
  404. contractNo: thisdata.contractNo, //合同编号
  405. userName: thisdata.userName, //客户名称
  406. signDate: thisdata.signDate, //签单时间
  407. processStatus: thisdata.processStatus, //流程状态
  408. liquidationStatus: thisdata.liquidationStatus, //结算状态
  409. contacts: thisdata.contacts, //企业联系人
  410. contactMobile: thisdata.contactMobile, //联系人电话
  411. legalPerson: thisdata.legalPerson, //法人
  412. legalPersonTel: thisdata.legalPersonTel, //法人电话
  413. firstAmount: thisdata.firstAmount, //签单金额
  414. totalAmount: thisdata.totalAmount, //首付金额
  415. settlementAmount: thisdata.settlementAmount, //已收款项
  416. orderRemarks: thisdata.orderRemarks, //订单留言
  417. orgCodeUrl: thisdata.contractPictureUrl
  418. ? splitUrl(
  419. thisdata.contractPictureUrl,
  420. ",",
  421. globalConfig.avatarHost + "/upload"
  422. )
  423. : [], //图片地址
  424. salesmanName: thisdata.salesmanName, //营销员名称
  425. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  426. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  427. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  428. financeName: thisdata.financeName, //财务名称
  429. financeMobile: thisdata.financeMobile, //财务电话
  430. nowFinance: thisdata.nowFinance, //财务名称
  431. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  432. approval: thisdata.approval.toString() //特批状态
  433. //approval:thisdata.approval==0?thisdata.approval.toString():thisdata.approval,//特批状态
  434. });
  435. };
  436. }.bind(this),
  437. }).always(function() {
  438. this.setState({
  439. loading: false
  440. });
  441. }.bind(this));
  442. },
  443. //项目列表
  444. xiangmu(orderNos) {
  445. $.ajax({
  446. method: "get",
  447. dataType: "json",
  448. crossDomain: false,
  449. url: globalConfig.context +"/api/admin/newOrder/getOrderTask",
  450. data: {
  451. orderNo:orderNos
  452. },
  453. success: function(data) {
  454. let theArr = [];
  455. if(data.error.length || data.data.list == "") {
  456. if(data.error && data.error.length) {
  457. message.warning(data.error[0].message);
  458. };
  459. } else {
  460. for (let i = 0; i < data.data.length; i++) {
  461. let thisdata = data.data[i];
  462. theArr.push({
  463. key: i,
  464. id:thisdata.id,
  465. orderNo:thisdata.orderNo,//订单编号
  466. commodityId:thisdata.commodityId,//项目ID
  467. commodityName:thisdata.commodityName,//项目名称
  468. cname:thisdata.cname,//项目类别
  469. commodityPrice:thisdata.commodityPrice,//项目价格
  470. commodityQuantity:thisdata.commodityQuantity,//项目数量
  471. main:thisdata.main,//是否为主要任务
  472. taskComment:thisdata.taskComment,//任务说明
  473. contacts:thisdata.contacts,//联系人
  474. contactsMobile:thisdata.contactsMobile,//联系人电话
  475. });
  476. };
  477. };
  478. this.setState({
  479. dataSourceX: theArr,
  480. paginations: false,
  481. });
  482. }.bind(this),
  483. }).always(function() {
  484. this.setState({
  485. loading: false
  486. });
  487. }.bind(this));
  488. },
  489. //节点列表
  490. jiedian(orderNos) {
  491. $.ajax({
  492. method: "get",
  493. dataType: "json",
  494. crossDomain: false,
  495. url: globalConfig.context +"/api/admin/newOrder/selectOrderDun",
  496. data: {
  497. orderNo:orderNos
  498. },
  499. success: function(data) {
  500. let theArr = [];
  501. let thisData=[];
  502. if(data.error.length || data.data.list == "") {
  503. if(data.error && data.error.length) {
  504. message.warning(data.error[0].message);
  505. };
  506. } else {
  507. for(let i = 0; i < data.data.length; i++) {
  508. thisData= data.data[i];
  509. theArr.push({
  510. key:i,
  511. dunSubject:thisData.dunSubject?thisData.dunSubject.toString():"",//催款科目
  512. id:thisData.id,//节点Id
  513. money:thisData.money,//催款金额
  514. dunStatus:thisData.dunStatus,//催款状态
  515. orderNo:thisData.orderNo,
  516. })
  517. }
  518. this.setState({
  519. contactList:theArr
  520. })
  521. };
  522. }.bind(this),
  523. }).always(function() {
  524. this.setState({
  525. loading: false
  526. });
  527. }.bind(this));
  528. },
  529. resets(){
  530. this.state.orderNo='';
  531. this.state.customerName='';
  532. this.state.releaseDate[0] = undefined;
  533. this.state.releaseDate[1] = undefined;
  534. },
  535. reset(){
  536. this.state.orderNo='';
  537. this.state.customerName='';
  538. this.state.releaseDate[0] = undefined;
  539. this.state.releaseDate[1] = undefined;
  540. this.loadData();
  541. },
  542. //搜索
  543. search() {
  544. this.setState({
  545. //signBillVisible:false
  546. })
  547. this.loadData();
  548. },
  549. getOrgCodeUrl(e) {
  550. this.setState({ orgCodeUrl: e });
  551. },
  552. //关闭详情
  553. visitCancel(){
  554. this.setState({
  555. visible:false
  556. })
  557. this.resets();
  558. },
  559. visitOk(){
  560. this.setState({
  561. visible:false
  562. })
  563. this.resets();
  564. },
  565. render() {
  566. const formItemLayout = {
  567. labelCol: { span: 8 },
  568. wrapperCol: { span: 14 },
  569. };
  570. const FormItem = Form.Item;
  571. const { RangePicker } = DatePicker;
  572. const rowSelection = {
  573. selectedRowKeys: this.state.selectedRowKeys,
  574. onChange: (selectedRowKeys, selectedRows) => {
  575. this.setState({
  576. modalVisible:false,
  577. selectedRows: selectedRows.slice(-1),
  578. selectedRowKeys: selectedRowKeys.slice(-1)
  579. });
  580. },
  581. onSelect: (recordt) => {
  582. this.setState({
  583. modalVisible:false,
  584. recordt: recordt.id
  585. })
  586. },
  587. };
  588. return (
  589. <div className="user-content">
  590. <div className="content-title">
  591. <span>退单管理</span>
  592. </div>
  593. <div className="user-search">
  594. <Input
  595. placeholder="客户名称"
  596. style={{ width: "150px", marginBottom: "10px" }}
  597. value={this.state.customerName}
  598. onChange={e => {
  599. this.setState({ customerName: e.target.value });
  600. }}
  601. />
  602. <Input
  603. placeholder="订单编号"
  604. style={{ width: "150px" }}
  605. value={this.state.orderNo}
  606. onChange={e => {
  607. this.setState({ orderNo: e.target.value });
  608. }}
  609. />
  610. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  611. <RangePicker
  612. value={[
  613. this.state.releaseDate[0]
  614. ? moment(this.state.releaseDate[0])
  615. : null,
  616. this.state.releaseDate[1]
  617. ? moment(this.state.releaseDate[1])
  618. : null
  619. ]}
  620. onChange={(data, dataString) => {
  621. this.setState({ releaseDate: dataString });
  622. }}
  623. />
  624. <Button
  625. type="primary"
  626. onClick={this.search}
  627. style={{ marginLeft: "10px" }}
  628. >
  629. 搜索
  630. </Button>
  631. <Button onClick={this.reset}>重置</Button>
  632. <div className="patent-table">
  633. <Spin spinning={this.state.loading}>
  634. <Table
  635. columns={this.state.columns}
  636. dataSource={this.state.dataSource}
  637. rowSelection={rowSelection}
  638. pagination={this.state.pagination}
  639. onRowClick={this.tableRowClick}
  640. />
  641. </Spin>
  642. </div>
  643. <Modal
  644. className="customeDetails"
  645. footer=""
  646. title="订单详情"
  647. width="900px"
  648. visible={this.state.visible}
  649. onOk={this.visitOk}
  650. onCancel={this.visitCancel}
  651. >
  652. <Form
  653. layout="horizontal"
  654. onSubmit={this.handleSubmit}
  655. id="demand-form"
  656. style={{ paddingBottom: "40px" }}
  657. >
  658. <Spin spinning={this.state.loading}>
  659. <div className="clearfix">
  660. <FormItem
  661. className="half-item"
  662. {...formItemLayout}
  663. label="订单编号"
  664. >
  665. <span>{this.state.orderNo}</span>
  666. </FormItem>
  667. <FormItem
  668. className="half-item"
  669. {...formItemLayout}
  670. label="合同编号"
  671. >
  672. <span>{this.state.contractNo}</span>
  673. </FormItem>
  674. <FormItem
  675. className="half-item"
  676. {...formItemLayout}
  677. label="客户名称"
  678. >
  679. <span>{this.state.userName}</span>
  680. </FormItem>
  681. <FormItem
  682. className="half-item"
  683. {...formItemLayout}
  684. label="合同签订时间"
  685. >
  686. <span>{this.state.signDate}</span>
  687. </FormItem>
  688. <FormItem
  689. className="half-item"
  690. {...formItemLayout}
  691. label="流程状态"
  692. >
  693. <span>{getProcessStatus(this.state.processStatus)}</span>
  694. </FormItem>
  695. <FormItem
  696. className="half-item"
  697. {...formItemLayout}
  698. label="结算状态"
  699. >
  700. <span>
  701. {getLiquidationStatus(this.state.liquidationStatus)}
  702. </span>
  703. </FormItem>
  704. <FormItem
  705. className="half-item"
  706. {...formItemLayout}
  707. label="企业联系人"
  708. >
  709. <span>{this.state.contacts}</span>
  710. </FormItem>
  711. <FormItem
  712. className="half-item"
  713. {...formItemLayout}
  714. label="联系人电话"
  715. >
  716. <span>{this.state.contactMobile}</span>
  717. </FormItem>
  718. <FormItem
  719. className="half-item"
  720. {...formItemLayout}
  721. label="企业法人"
  722. >
  723. <span>{this.state.legalPerson}</span>
  724. </FormItem>
  725. <FormItem
  726. className="half-item"
  727. {...formItemLayout}
  728. label="法人电话"
  729. >
  730. <span>{this.state.legalPersonTel}</span>
  731. </FormItem>
  732. <FormItem
  733. className="half-item"
  734. {...formItemLayout}
  735. label="签单金额(万元)"
  736. >
  737. <span>{this.state.firstAmount}</span>
  738. </FormItem>
  739. <FormItem
  740. className="half-item"
  741. {...formItemLayout}
  742. label="首付金额(万元)"
  743. >
  744. <span>{this.state.totalAmount}</span>
  745. </FormItem>
  746. <FormItem
  747. className="half-item"
  748. {...formItemLayout}
  749. label="特批立项"
  750. >
  751. <span>{getApprovedState(this.state.approval)}</span>
  752. </FormItem>
  753. <FormItem
  754. className="half-item"
  755. {...formItemLayout}
  756. label="已收款项(万元)"
  757. >
  758. <span>{this.state.settlementAmount}</span>
  759. </FormItem>
  760. <div className="clearfix">
  761. <FormItem
  762. labelCol={{ span: 4 }}
  763. wrapperCol={{ span: 16 }}
  764. label="订单留言"
  765. >
  766. <span>{this.state.orderRemarks}</span>
  767. </FormItem>
  768. </div>
  769. <div className="clearfix">
  770. <FormItem
  771. labelCol={{ span: 4 }}
  772. wrapperCol={{ span: 18 }}
  773. label="合同扫描件"
  774. >
  775. <Upload
  776. className="demandDetailShow-upload"
  777. listType="picture-card"
  778. fileList={this.state.orgCodeUrl}
  779. onPreview={file => {
  780. this.setState({
  781. previewImage: file.url || file.thumbUrl,
  782. previewVisible: true
  783. });
  784. }}
  785. ></Upload>
  786. <Modal
  787. maskClosable={false}
  788. footer={null}
  789. visible={this.state.previewVisible}
  790. onCancel={() => {
  791. this.setState({ previewVisible: false });
  792. }}
  793. >
  794. <img
  795. alt=""
  796. style={{ width: "100%" }}
  797. src={this.state.previewImage || ""}
  798. />
  799. </Modal>
  800. <Button
  801. style={{
  802. float: "right",
  803. marginRight: "140px",
  804. marginTop: "20px"
  805. }}
  806. onClick={this.getOrderLog}
  807. >
  808. 查看订单 日志
  809. </Button>
  810. </FormItem>
  811. </div>
  812. <div className="clearfix">
  813. <FormItem
  814. className="half-item"
  815. {...formItemLayout}
  816. label="订单负责人"
  817. >
  818. <span>{this.state.salesmanName}</span>
  819. </FormItem>
  820. <FormItem
  821. className="half-item"
  822. {...formItemLayout}
  823. label="订单负责人电话"
  824. >
  825. <span>{this.state.salesmanMobile}</span>
  826. </FormItem>
  827. </div>
  828. <div className="clearfix">
  829. <FormItem
  830. className="half-item"
  831. {...formItemLayout}
  832. label="当前财务负责人"
  833. >
  834. <span>{this.state.nowFinance}</span>
  835. </FormItem>
  836. <FormItem
  837. className="half-item"
  838. {...formItemLayout}
  839. label="当前财务负责人电话"
  840. >
  841. <span>{this.state.nowFinanceMobile}</span>
  842. </FormItem>
  843. </div>
  844. <div className="clearfix">
  845. <FormItem
  846. className="half-item"
  847. {...formItemLayout}
  848. style={{ opacity: ".5" }}
  849. label="原订单负责人"
  850. >
  851. <span>{this.state.oldSalesmanName}</span>
  852. </FormItem>
  853. <FormItem
  854. className="half-item"
  855. {...formItemLayout}
  856. style={{ opacity: ".5" }}
  857. label="原订单负责人电话"
  858. >
  859. <span>{this.state.oldSalesmanMobile}</span>
  860. </FormItem>
  861. </div>
  862. <div className="clearfix">
  863. <FormItem
  864. className="half-item"
  865. style={{ opacity: ".5" }}
  866. {...formItemLayout}
  867. label="实际财务操作人"
  868. >
  869. <span>{this.state.financeName}</span>
  870. </FormItem>
  871. <FormItem
  872. className="half-item"
  873. {...formItemLayout}
  874. style={{ opacity: ".5" }}
  875. label="实际财务操作人电话"
  876. >
  877. <span>{this.state.financeMobile}</span>
  878. </FormItem>
  879. </div>
  880. <div>
  881. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  882. 催款节点
  883. </span>
  884. </div>
  885. <div className="clearfix">
  886. <Spin spinning={this.state.loading}>
  887. <Form layout="horizontal" id="demand-form">
  888. <Table
  889. pagination={false}
  890. columns={this.state.ContactsLists}
  891. dataSource={this.state.contactList}
  892. />
  893. <Col
  894. span={24}
  895. offset={9}
  896. style={{ marginTop: "15px" }}
  897. ></Col>
  898. </Form>
  899. </Spin>
  900. </div>
  901. <div>
  902. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  903. 项目业务
  904. </span>
  905. </div>
  906. <div className="patent-table">
  907. <Spin spinning={this.state.loading}>
  908. <Table
  909. columns={this.state.columnsX}
  910. dataSource={this.state.dataSourceX}
  911. pagination={this.state.paginations}
  912. />
  913. </Spin>
  914. </div>
  915. </div>
  916. </Spin>
  917. </Form>
  918. </Modal>
  919. <Modal
  920. maskClosable={false}
  921. visible={this.state.addnextVisible}
  922. onOk={this.nextCancel}
  923. onCancel={this.nextCancel}
  924. width="800px"
  925. title={this.state.refundStatus == 2 ? "修改退单申请" : "退单详情"}
  926. footer=""
  927. className="admin-desc-content"
  928. >
  929. <Form layout="horizontal" id="demand-form">
  930. <Spin spinning={this.state.loading}>
  931. <div className="clearfix">
  932. <FormItem
  933. className="half-item"
  934. {...formItemLayout}
  935. label="退单编号"
  936. >
  937. <span>{this.state.id}</span>
  938. </FormItem>
  939. <FormItem
  940. className="half-item"
  941. {...formItemLayout}
  942. label="退单日期"
  943. >
  944. <span>{this.state.createDate}</span>
  945. </FormItem>
  946. <FormItem
  947. className="half-item"
  948. {...formItemLayout}
  949. label="订单编号"
  950. >
  951. <span>{this.state.orderNo}</span>
  952. </FormItem>
  953. <FormItem
  954. className="half-item"
  955. {...formItemLayout}
  956. label="订单状态"
  957. >
  958. <span>{getNewOrderStatus(this.state.orderStatus)}</span>
  959. </FormItem>
  960. <FormItem
  961. className="half-item"
  962. {...formItemLayout}
  963. label="退单状态"
  964. >
  965. <span>{getRefundStatus(this.state.refundStatus)}</span>
  966. </FormItem>
  967. <FormItem
  968. className="half-item"
  969. {...formItemLayout}
  970. label="退款状态"
  971. >
  972. <span>
  973. {getLiquidationStatus(this.state.liquidationStatus)}
  974. </span>
  975. </FormItem>
  976. <div className="clearfix">
  977. {this.state.refundStatus == 2 ? (
  978. <FormItem
  979. labelCol={{ span: 4 }}
  980. wrapperCol={{ span: 16 }}
  981. label="终止合同"
  982. >
  983. <Picture
  984. fileList={e => {
  985. this.setState({ contractUrl: e });
  986. }}
  987. pictureUrl={this.state.contractUrl}
  988. visible={this.props.visible}
  989. data={{
  990. sign: "order_refund_file",
  991. url: "/api/admin/newOrder/uploadRefundOrderFile",
  992. number: 8
  993. }}
  994. />
  995. </FormItem>
  996. ) : (
  997. <FormItem
  998. labelCol={{ span: 4 }}
  999. wrapperCol={{ span: 18 }}
  1000. label="合同扫描件"
  1001. >
  1002. <Upload
  1003. className="demandDetailShow-upload"
  1004. listType="picture-card"
  1005. fileList={this.state.orgCodeUrl}
  1006. onPreview={file => {
  1007. this.setState({
  1008. previewImage: file.url || file.thumbUrl,
  1009. previewVisible: true
  1010. });
  1011. }}
  1012. ></Upload>
  1013. <Modal
  1014. maskClosable={false}
  1015. footer={null}
  1016. visible={this.state.previewVisible}
  1017. onCancel={() => {
  1018. this.setState({ previewVisible: false });
  1019. }}
  1020. >
  1021. <img
  1022. alt=""
  1023. style={{ width: "100%" }}
  1024. src={this.state.previewImage || ""}
  1025. />
  1026. </Modal>
  1027. </FormItem>
  1028. )}
  1029. </div>
  1030. <div className="clearfix">
  1031. <FormItem
  1032. labelCol={{ span: 4 }}
  1033. wrapperCol={{ span: 16 }}
  1034. label="退单申请表"
  1035. >
  1036. <Upload
  1037. className="demandDetailShow-upload"
  1038. listType="picture-card"
  1039. fileList={this.state.orgCodeUrl}
  1040. onPreview={file => {
  1041. this.setState({
  1042. previewImage: file.url || file.thumbUrl,
  1043. previewVisible: true
  1044. });
  1045. }}
  1046. ></Upload>
  1047. </FormItem>
  1048. </div>
  1049. <div className="clearfix">
  1050. <FormItem
  1051. labelCol={{ span: 4 }}
  1052. wrapperCol={{ span: 16 }}
  1053. label="退单理由"
  1054. >
  1055. {this.state.refundStatus == 2 ? (
  1056. <Input
  1057. type="textarea"
  1058. placeholder="请输入退单理由"
  1059. rows={4}
  1060. value={this.state.reason}
  1061. onChange={e => {
  1062. this.setState({ reason: e.target.value });
  1063. }}
  1064. />
  1065. ) : (
  1066. <span>{this.state.reason}</span>
  1067. )}
  1068. </FormItem>
  1069. </div>
  1070. {this.state.refundStatus == 2 ? (
  1071. <FormItem
  1072. wrapperCol={{ span: 12, offset: 4 }}
  1073. className="half-middle"
  1074. >
  1075. <Button
  1076. className="submitSave"
  1077. type="primary"
  1078. onClick={this.tuidanOk}
  1079. >
  1080. 重新退单
  1081. </Button>
  1082. <Button
  1083. className="submitSave"
  1084. type="ghost"
  1085. onClick={this.nextCancel}
  1086. >
  1087. 取消
  1088. </Button>
  1089. </FormItem>
  1090. ) : (
  1091. ""
  1092. )}
  1093. </div>
  1094. </Spin>
  1095. </Form>
  1096. </Modal>
  1097. <Modal
  1098. visible={this.state.rizhivisible}
  1099. className="admin-desc-content"
  1100. width="800px"
  1101. maskClosable={false}
  1102. title="订单日志"
  1103. footer={null}
  1104. onCancel={this.closeOrderLog}
  1105. >
  1106. <div className="patent-table">
  1107. <Spin spinning={this.state.loading}>
  1108. <Table
  1109. columns={this.state.columnsrizhi}
  1110. dataSource={this.state.dataSourcerizhi}
  1111. pagination={false}
  1112. />
  1113. </Spin>
  1114. </div>
  1115. </Modal>
  1116. </div>
  1117. </div>
  1118. );
  1119. }
  1120. }));
  1121. export default IntentionCustomer;