checkOutsourcing.jsx 57 KB

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