outsourcingPro.jsx 54 KB

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