approveds.jsx 55 KB

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