checkOutsourcing.jsx 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700
  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. remarks: thisdata.remarks
  517. });
  518. }
  519. }
  520. this.setState({
  521. dataSourcerizhi: theArr
  522. });
  523. }.bind(this)
  524. }).always(
  525. function() {
  526. this.setState({
  527. loading: false
  528. });
  529. }.bind(this)
  530. );
  531. },
  532. getOrderLog() {
  533. this.setState({
  534. rizhivisible: true
  535. });
  536. this.rizhi();
  537. },
  538. closeOrderLog() {
  539. this.setState({
  540. rizhivisible: false
  541. });
  542. },
  543. //节点列表
  544. jiedian(orderNos) {
  545. $.ajax({
  546. method: "get",
  547. dataType: "json",
  548. crossDomain: false,
  549. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  550. data: {
  551. orderNo: orderNos
  552. },
  553. success: function(data) {
  554. let theArr = [];
  555. let thisData = [];
  556. if (data.error.length || data.data.list == "") {
  557. if (data.error && data.error.length) {
  558. message.warning(data.error[0].message);
  559. }
  560. } else {
  561. for (let i = 0; i < data.data.length; i++) {
  562. thisData = data.data[i];
  563. theArr.push({
  564. key: i,
  565. dunSubject: thisData.dunSubject
  566. ? thisData.dunSubject.toString()
  567. : "", //催款科目
  568. id: thisData.id, //节点Id
  569. money: thisData.money, //催款金额
  570. dunStatus: thisData.dunStatus //催款状态
  571. });
  572. }
  573. this.setState({
  574. contactList: theArr
  575. });
  576. }
  577. }.bind(this)
  578. }).always(
  579. function() {
  580. this.setState({
  581. loading: false
  582. });
  583. }.bind(this)
  584. );
  585. },
  586. jiedianNew(orderNos) {
  587. $.ajax({
  588. method: "get",
  589. dataType: "json",
  590. crossDomain: false,
  591. url:
  592. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  593. data: {
  594. orderNo: orderNos
  595. },
  596. success: function(data) {
  597. if (data.error && data.error.length) {
  598. message.warning(data.error[0].message);
  599. } else {
  600. let theArr = [];
  601. let thisData = [];
  602. let arr = data.data || [];
  603. let totalCui = 0;
  604. for (let i = 0; i < arr.length; i++) {
  605. thisData = arr[i];
  606. totalCui += +thisData.money;
  607. theArr.push({
  608. key: i,
  609. dunSubject: thisData.dunSubject
  610. ? thisData.dunSubject.toString()
  611. : "", //催款科目
  612. id: thisData.id, //节点Id
  613. money: thisData.money, //催款金额
  614. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  615. commodityName: thisData.commodityName,
  616. projectType: thisData.projectType,
  617. dunTypeName: thisData.dunTypeName,
  618. status: thisData.status,
  619. waitDay: thisData.waitDay,
  620. effectiveCount: thisData.effectiveCount,
  621. startDate: thisData.startDate,
  622. dunType: thisData.dunType,
  623. appropriationRatio: thisData.appropriationRatio
  624. });
  625. }
  626. if (!totalCui) {
  627. totalCui = 0;
  628. }
  629. totalCui = (Math.round(totalCui * 10000) / 10000).toFixed(4);
  630. this.setState({
  631. contactListNew: theArr,
  632. totalCui
  633. });
  634. }
  635. }.bind(this)
  636. }).always(
  637. function() {
  638. this.setState({
  639. loading: false
  640. });
  641. }.bind(this)
  642. );
  643. },
  644. //审核通过
  645. examOk() {
  646. $.ajax({
  647. method: "post",
  648. dataType: "json",
  649. crossDomain: false,
  650. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  651. data: {
  652. orderNo: this.state.orderNo,
  653. orderStatus: 2
  654. },
  655. success: function(data) {
  656. if (data.error.length || data.data.list == "") {
  657. if (data.error && data.error.length) {
  658. message.warning(data.error[0].message);
  659. }
  660. } else {
  661. message.success("该订单已通过审核~");
  662. this.setState({
  663. visible: false
  664. });
  665. this.reset();
  666. }
  667. }.bind(this)
  668. }).always(
  669. function() {
  670. this.setState({
  671. loading: false
  672. });
  673. }.bind(this)
  674. );
  675. },
  676. //通过发给外包
  677. outsourcing() {
  678. $.ajax({
  679. method: "post",
  680. dataType: "json",
  681. crossDomain: false,
  682. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  683. data: {
  684. orderNo: this.state.orderNo,
  685. orderStatus: 2,
  686. outsource: 1
  687. },
  688. success: function(data) {
  689. if (data.error.length || data.data.list == "") {
  690. if (data.error && data.error.length) {
  691. message.warning(data.error[0].message);
  692. }
  693. } else {
  694. message.success("该订单已通过审核~");
  695. this.setState({
  696. visible: false
  697. });
  698. this.reset();
  699. }
  700. }.bind(this)
  701. }).always(
  702. function() {
  703. this.setState({
  704. loading: false
  705. });
  706. }.bind(this)
  707. );
  708. },
  709. //审核不通过
  710. examOks() {
  711. this.setState({
  712. aloading: true
  713. });
  714. $.ajax({
  715. method: "post",
  716. dataType: "json",
  717. crossDomain: false,
  718. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  719. data: {
  720. orderNo: this.state.orderNo,
  721. orderStatus: 3,
  722. reason: this.state.reason
  723. },
  724. success: function(data) {
  725. if (data.error.length || data.data.list == "") {
  726. if (data.error && data.error.length) {
  727. message.warning(data.error[0].message);
  728. this.setState({
  729. aloading: true
  730. });
  731. }
  732. } else {
  733. message.success("该订单已被拒绝~");
  734. this.setState({
  735. visible: false,
  736. aloading: false,
  737. noVisible: false,
  738. reason: ""
  739. });
  740. this.reset();
  741. }
  742. }.bind(this)
  743. }).always(
  744. function() {
  745. this.setState({
  746. loading: false
  747. });
  748. }.bind(this)
  749. );
  750. },
  751. //点击拒绝
  752. examNo() {
  753. this.setState({
  754. noVisible: true
  755. });
  756. },
  757. load() {
  758. if (this.state.attachmentUrl) {
  759. let url = window.location.href.substring(7);
  760. this.state.attachmentUrl.forEach(e => {
  761. window.location.href =
  762. "http://" +
  763. url.substring(0, url.indexOf("/")) +
  764. "/api/admin/outsourceOrg//downloadFile?path=" +
  765. e.response.data;
  766. });
  767. } else {
  768. message.error("此订单无上传文件");
  769. }
  770. },
  771. callback(key) {
  772. this.setState({
  773. activeKey: key
  774. });
  775. if (this.state.pictureUrl.length) {
  776. let picArr = [];
  777. this.state.pictureUrl.map(function(item) {
  778. if (
  779. item.response &&
  780. item.response.data &&
  781. item.response.data.length
  782. ) {
  783. picArr.push(item.response.data);
  784. }
  785. });
  786. }
  787. if (key === "2") {
  788. console.log(
  789. typeof this.state.refundStatus,
  790. !(this.state.refundStatus === 1)
  791. );
  792. this.setState({
  793. loading: true
  794. });
  795. $.ajax({
  796. method: "get",
  797. dataType: "json",
  798. crossDomain: false,
  799. url:
  800. globalConfig.context +
  801. "/api/admin/outsourceOrg/orderOutsourceDtails",
  802. data: {
  803. orderNo: this.state.orderNo
  804. },
  805. success: function(data) {
  806. let thisdata = data.data;
  807. this.setState({
  808. id: thisdata.id,
  809. createTimes: thisdata.createTimes,
  810. auditTimes: thisdata.auditTimes,
  811. remarks: thisdata.remarks,
  812. attachmentUrl: thisdata.attachmentUrl
  813. ? splitUrl(
  814. thisdata.attachmentUrl,
  815. ",",
  816. globalConfig.avatarHost + "/upload"
  817. )
  818. : [],
  819. pictureUrl: thisdata.pictureUrl
  820. ? splitUrl(
  821. thisdata.pictureUrl,
  822. ",",
  823. globalConfig.avatarHost + "/upload"
  824. )
  825. : [], //图片地址
  826. amount: thisdata.amount,
  827. companyName: thisdata.companyName,
  828. outsourceRemarks: thisdata.outsourceRemarks,
  829. unitNumber: thisdata.unitNumber,
  830. unitPrice: thisdata.unitPrice
  831. });
  832. }.bind(this)
  833. }).always(
  834. function() {
  835. this.setState({
  836. loading: false
  837. });
  838. }.bind(this)
  839. );
  840. }
  841. },
  842. pass() {
  843. if (!this.state.remarks) {
  844. message.warning("审核意见不能为空");
  845. return;
  846. }
  847. $.ajax({
  848. method: "post",
  849. dataType: "json",
  850. crossDomain: false,
  851. url: globalConfig.context + "/api/admin/outsourceOrg/auditOutsourceNew",
  852. data: {
  853. id: this.state.id,
  854. remarks: this.state.remarks,
  855. refundStatus: 1,
  856. orderNo: this.state.orderNo
  857. },
  858. success: function(data) {
  859. if (data.error && data.error.length) {
  860. message.warning(data.error[0].message);
  861. } else {
  862. message.success("已通过!");
  863. }
  864. }
  865. }).done(
  866. function() {
  867. this.setState({
  868. loading: false,
  869. remarks: ""
  870. });
  871. this.visitCancel();
  872. }.bind(this)
  873. );
  874. },
  875. refuse() {
  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. remarks: this.state.remarks,
  884. refundStatus: 2,
  885. orderNo: this.state.orderNo
  886. },
  887. success: function(data) {
  888. if (data.error && data.error.length) {
  889. message.warning(data.error[0].message);
  890. } else {
  891. message.success("已驳回!");
  892. }
  893. }
  894. }).done(
  895. function() {
  896. this.setState({
  897. loading: false,
  898. remarks: ""
  899. });
  900. this.visitCancel();
  901. }.bind(this)
  902. );
  903. },
  904. //关闭输入理由框
  905. noCancel() {
  906. this.setState({
  907. noVisible: false,
  908. aloading: false,
  909. reason: ""
  910. });
  911. },
  912. //搜索
  913. search() {
  914. this.setState({
  915. //signBillVisible:false
  916. });
  917. this.loadData();
  918. },
  919. //重置
  920. reset() {
  921. this.state.nameSearch = "";
  922. this.state.contractNoSearch = "";
  923. this.state.releaseDate[0] = undefined;
  924. this.state.releaseDate[1] = undefined;
  925. this.state.refundStatusSearch = undefined;
  926. this.loadData(1);
  927. },
  928. resets() {
  929. this.state.orderNo = "";
  930. this.state.customerName = "";
  931. this.state.releaseDate[0] = undefined;
  932. this.state.releaseDate[1] = undefined;
  933. },
  934. getOrgCodeUrl(e) {
  935. this.setState({ pictureUrl: e });
  936. },
  937. //关闭详情
  938. visitCancel() {
  939. this.setState(
  940. {
  941. visible: false
  942. },
  943. () => {
  944. this.setState({
  945. activeKey: "1"
  946. });
  947. }
  948. );
  949. this.resets();
  950. this.loadData(this.state.pagination.current);
  951. },
  952. visitOk() {
  953. this.setState({
  954. visible: false
  955. });
  956. this.resets();
  957. },
  958. render() {
  959. const formItemLayout = {
  960. labelCol: { span: 8 },
  961. wrapperCol: { span: 14 }
  962. };
  963. const FormItem = Form.Item;
  964. const { TabPane } = Tabs;
  965. const { RangePicker } = DatePicker;
  966. const cuiDataList = this.state.contactList || [];
  967. return (
  968. <div className="user-content">
  969. <div className="content-title">
  970. <span>外包审核列表</span>
  971. </div>
  972. <div className="user-search">
  973. <Input
  974. placeholder="客户名称"
  975. style={{ width: "150px", marginBottom: "10px" }}
  976. value={this.state.nameSearch}
  977. onChange={e => {
  978. this.setState({ nameSearch: e.target.value });
  979. }}
  980. />
  981. <Input
  982. placeholder="合同编号"
  983. style={{ width: "150px" }}
  984. value={this.state.contractNoSearch}
  985. onChange={e => {
  986. this.setState({ contractNoSearch: e.target.value });
  987. }}
  988. />
  989. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  990. <RangePicker
  991. value={[
  992. this.state.releaseDate[0]
  993. ? moment(this.state.releaseDate[0])
  994. : null,
  995. this.state.releaseDate[1]
  996. ? moment(this.state.releaseDate[1])
  997. : null
  998. ]}
  999. onChange={(data, dataString) => {
  1000. this.setState({ releaseDate: dataString });
  1001. }}
  1002. />
  1003. <Select
  1004. value={this.state.refundStatusSearch}
  1005. style={{ width: 150, marginLeft: "10px" }}
  1006. onChange={e => {
  1007. this.setState({
  1008. refundStatusSearch: e
  1009. });
  1010. }}
  1011. placeholder="审核状态"
  1012. >
  1013. <Option value={0}>待审核</Option>
  1014. <Option value={1}>审核通过</Option>
  1015. <Option value={2}>审核驳回</Option>
  1016. </Select>
  1017. <Button
  1018. type="primary"
  1019. onClick={this.search}
  1020. style={{ marginLeft: "10px" }}
  1021. >
  1022. 搜索
  1023. </Button>
  1024. <Button onClick={this.reset}>重置</Button>
  1025. <div className="patent-table">
  1026. <Spin spinning={this.state.loading}>
  1027. <Table
  1028. columns={this.state.columns}
  1029. dataSource={this.state.dataSource}
  1030. pagination={this.state.pagination}
  1031. onRowClick={this.tableRowClick}
  1032. bordered
  1033. size="small"
  1034. />
  1035. </Spin>
  1036. </div>
  1037. <Modal
  1038. className="customeDetails"
  1039. footer=""
  1040. width="900px"
  1041. visible={this.state.visible}
  1042. onOk={this.visitOk}
  1043. onCancel={this.visitCancel}
  1044. >
  1045. <Tabs activeKey={this.state.activeKey} onChange={this.callback}>
  1046. <TabPane tab="订单详情" key="1">
  1047. <Form
  1048. layout="horizontal"
  1049. onSubmit={this.handleSubmit}
  1050. id="demand-form"
  1051. style={{ paddingBottom: "40px" }}
  1052. >
  1053. <Spin spinning={this.state.loading}>
  1054. <div className="clearfix">
  1055. <FormItem
  1056. className="half-item"
  1057. {...formItemLayout}
  1058. label="订单编号"
  1059. >
  1060. <span>{this.state.orderNo}</span>
  1061. </FormItem>
  1062. <FormItem
  1063. className="half-item"
  1064. {...formItemLayout}
  1065. label="合同编号"
  1066. >
  1067. <span>{this.state.contractNo}</span>
  1068. </FormItem>
  1069. <FormItem
  1070. className="half-item"
  1071. {...formItemLayout}
  1072. label="客户名称"
  1073. >
  1074. <span>{this.state.userName}</span>
  1075. </FormItem>
  1076. <FormItem
  1077. className="half-item"
  1078. {...formItemLayout}
  1079. label="合同签订时间"
  1080. >
  1081. <span>{this.state.signDate}</span>
  1082. </FormItem>
  1083. <FormItem
  1084. className="half-item"
  1085. {...formItemLayout}
  1086. label="流程状态"
  1087. >
  1088. <span>
  1089. {getProcessStatus(this.state.processStatus)}
  1090. </span>
  1091. </FormItem>
  1092. <FormItem
  1093. className="half-item"
  1094. {...formItemLayout}
  1095. label="结算状态"
  1096. >
  1097. <span>
  1098. {getLiquidationStatus(this.state.liquidationStatus)}
  1099. </span>
  1100. </FormItem>
  1101. <FormItem
  1102. className="half-item"
  1103. {...formItemLayout}
  1104. label="企业联系人"
  1105. >
  1106. <span>{this.state.contacts}</span>
  1107. </FormItem>
  1108. <FormItem
  1109. className="half-item"
  1110. {...formItemLayout}
  1111. label="联系人电话"
  1112. >
  1113. <span>{this.state.contactMobile}</span>
  1114. </FormItem>
  1115. <FormItem
  1116. className="half-item"
  1117. {...formItemLayout}
  1118. label="企业法人"
  1119. >
  1120. <span>{this.state.legalPerson}</span>
  1121. </FormItem>
  1122. <FormItem
  1123. className="half-item"
  1124. {...formItemLayout}
  1125. label="法人电话"
  1126. >
  1127. <span>{this.state.legalPersonTel}</span>
  1128. </FormItem>
  1129. <FormItem
  1130. className="half-item"
  1131. {...formItemLayout}
  1132. label="签单金额(万元)"
  1133. >
  1134. <span>{this.state.totalAmount}</span>
  1135. </FormItem>
  1136. <FormItem
  1137. className="half-item"
  1138. {...formItemLayout}
  1139. label="首付金额(万元)"
  1140. >
  1141. <span>{this.state.firstAmount}</span>
  1142. </FormItem>
  1143. <FormItem
  1144. className="half-item"
  1145. {...formItemLayout}
  1146. label="特批立项"
  1147. >
  1148. <span>{getApprovedState(this.state.approval)}</span>
  1149. </FormItem>
  1150. <FormItem
  1151. className="half-item"
  1152. {...formItemLayout}
  1153. label="已收款项(万元)"
  1154. >
  1155. <span>{this.state.settlementAmount}</span>
  1156. </FormItem>
  1157. <FormItem
  1158. className="half-item"
  1159. {...formItemLayout}
  1160. label="订单部门"
  1161. >
  1162. <span>{this.state.depName}</span>
  1163. </FormItem>
  1164. <FormItem
  1165. className="half-item"
  1166. {...formItemLayout}
  1167. label="是否外包"
  1168. >
  1169. <span>{this.state.outsource}</span>
  1170. </FormItem>
  1171. <div className="clearfix">
  1172. <FormItem
  1173. labelCol={{ span: 4 }}
  1174. wrapperCol={{ span: 16 }}
  1175. label="订单留言"
  1176. >
  1177. <span>{this.state.orderRemarks}</span>
  1178. </FormItem>
  1179. </div>
  1180. <div className="clearfix">
  1181. <FormItem
  1182. labelCol={{ span: 4 }}
  1183. wrapperCol={{ span: 18 }}
  1184. label="合同扫描件"
  1185. >
  1186. <Upload
  1187. className="demandDetailShow-upload"
  1188. listType="picture-card"
  1189. fileList={this.state.orgCodeUrl}
  1190. onPreview={file => {
  1191. this.setState({
  1192. previewImage: file.url || file.thumbUrl,
  1193. previewVisible: true
  1194. });
  1195. }}
  1196. ></Upload>
  1197. <Modal
  1198. maskClosable={false}
  1199. footer={null}
  1200. visible={this.state.previewVisible}
  1201. onCancel={() => {
  1202. this.setState({ previewVisible: false });
  1203. }}
  1204. >
  1205. <img
  1206. alt=""
  1207. style={{ width: "100%" }}
  1208. src={this.state.previewImage || ""}
  1209. />
  1210. </Modal>
  1211. <Button
  1212. style={{
  1213. float: "right",
  1214. marginRight: "140px",
  1215. marginTop: "20px"
  1216. }}
  1217. onClick={this.getOrderLog}
  1218. >
  1219. 查看订单日志
  1220. </Button>
  1221. </FormItem>
  1222. </div>
  1223. <div className="clearfix">
  1224. <FormItem
  1225. className="half-item"
  1226. {...formItemLayout}
  1227. label="订单负责人"
  1228. >
  1229. <span>{this.state.salesmanName}</span>
  1230. </FormItem>
  1231. <FormItem
  1232. className="half-item"
  1233. {...formItemLayout}
  1234. label="订单负责人电话"
  1235. >
  1236. <span>{this.state.salesmanMobile}</span>
  1237. </FormItem>
  1238. </div>
  1239. <div className="clearfix">
  1240. <FormItem
  1241. className="half-item"
  1242. {...formItemLayout}
  1243. label="当前财务负责人"
  1244. >
  1245. <span>{this.state.nowFinance}</span>
  1246. </FormItem>
  1247. <FormItem
  1248. className="half-item"
  1249. {...formItemLayout}
  1250. label="当前财务负责人电话"
  1251. >
  1252. <span>{this.state.nowFinanceMobile}</span>
  1253. </FormItem>
  1254. </div>
  1255. <div className="clearfix">
  1256. <FormItem
  1257. className="half-item"
  1258. {...formItemLayout}
  1259. style={{ opacity: ".5" }}
  1260. label="原订单负责人"
  1261. >
  1262. <span>{this.state.oldSalesmanName}</span>
  1263. </FormItem>
  1264. <FormItem
  1265. className="half-item"
  1266. {...formItemLayout}
  1267. style={{ opacity: ".5" }}
  1268. label="原订单负责人电话"
  1269. >
  1270. <span>{this.state.oldSalesmanMobile}</span>
  1271. </FormItem>
  1272. </div>
  1273. <div className="clearfix">
  1274. <FormItem
  1275. className="half-item"
  1276. style={{ opacity: ".5" }}
  1277. {...formItemLayout}
  1278. label="实际财务操作人"
  1279. >
  1280. <span>{this.state.financeName}</span>
  1281. </FormItem>
  1282. <FormItem
  1283. className="half-item"
  1284. {...formItemLayout}
  1285. style={{ opacity: ".5" }}
  1286. label="实际财务操作人电话"
  1287. >
  1288. <span>{this.state.financeMobile}</span>
  1289. </FormItem>
  1290. </div>
  1291. <div>
  1292. <span
  1293. style={{ marginLeft: "50px", fontSize: "20px" }}
  1294. >
  1295. 项目业务
  1296. </span>
  1297. {this.state.processStatus == 0 ? (
  1298. <Button
  1299. type="primary"
  1300. onClick={this.addDetailed}
  1301. style={{
  1302. float: "right",
  1303. marginRight: "50px",
  1304. marginBottom: "15px"
  1305. }}
  1306. >
  1307. 添加项目明细
  1308. </Button>
  1309. ) : (
  1310. ""
  1311. )}
  1312. </div>
  1313. <div className="patent-table">
  1314. <Spin spinning={this.state.loading}>
  1315. <Table
  1316. columns={this.state.columnsX}
  1317. dataSource={this.state.dataSourceX}
  1318. pagination={this.state.paginations}
  1319. onRowClick={this.tableRowClickX}
  1320. bordered
  1321. size="small"
  1322. />
  1323. </Spin>
  1324. </div>
  1325. <div>
  1326. <span style={{ marginLeft: 20, fontSize: "18px" }}>
  1327. 催款节点
  1328. </span>
  1329. <span
  1330. style={{
  1331. display: cuiDataList.length ? "none" : "inline-block",
  1332. marginLeft: 10,
  1333. color: "red"
  1334. }}
  1335. >
  1336. 金额总计(万元): {this.state.totalCui}
  1337. </span>
  1338. </div>
  1339. <div className="clearfix">
  1340. <Spin spinning={this.state.loading}>
  1341. <Form layout="horizontal" id="demand-form">
  1342. <Table
  1343. pagination={false}
  1344. bordered
  1345. size="small"
  1346. columns={
  1347. cuiDataList.length
  1348. ? this.state.ContactsLists
  1349. : this.state.ContactsListsNew
  1350. }
  1351. dataSource={
  1352. cuiDataList.length
  1353. ? this.state.contactList
  1354. : this.state.contactListNew
  1355. }
  1356. />
  1357. <Col
  1358. span={24}
  1359. offset={9}
  1360. style={{ marginTop: "15px" }}
  1361. ></Col>
  1362. </Form>
  1363. </Spin>
  1364. </div>
  1365. </div>
  1366. </Spin>
  1367. </Form>
  1368. </TabPane>
  1369. <TabPane tab="外包(不走总部)" key="2">
  1370. <div className="clearfix">
  1371. <FormItem
  1372. className="half-item"
  1373. {...formItemLayout}
  1374. label="外包公司"
  1375. >
  1376. <span>{this.state.companyName}</span>
  1377. </FormItem>
  1378. </div>
  1379. <div className="clearfix">
  1380. <FormItem
  1381. className="half-item"
  1382. {...formItemLayout}
  1383. label="单价(万元)"
  1384. >
  1385. <span>{this.state.unitPrice}</span>
  1386. </FormItem>
  1387. </div>
  1388. <div className="clearfix">
  1389. <FormItem
  1390. className="half-item"
  1391. {...formItemLayout}
  1392. label="数量(个)"
  1393. >
  1394. <span>{this.state.unitNumber}</span>
  1395. </FormItem>
  1396. </div>
  1397. <div className="clearfix">
  1398. <FormItem
  1399. className="half-item"
  1400. {...formItemLayout}
  1401. label="总金额(万元)"
  1402. >
  1403. <span>{this.state.amount}</span>
  1404. </FormItem>
  1405. </div>
  1406. <div className="clearfix">
  1407. <FormItem
  1408. className="half-item"
  1409. {...formItemLayout}
  1410. label="备注"
  1411. >
  1412. <span>{this.state.outsourceRemarks}</span>
  1413. </FormItem>
  1414. </div>
  1415. {/*<div className="clearfix">
  1416. <FormItem className="half-item" style={{height:'auto'}}
  1417. {...formItemLayout}
  1418. label="上传协议文件" >
  1419. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  1420. data={(e)=>{
  1421. return {
  1422. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  1423. }
  1424. }}
  1425. fileList={this.state.attachmentUrl}
  1426. showUploadList={{showRemoveIcon:false}}
  1427. onPreview={(e)=>{
  1428. let url = window.location.href.substring(7)
  1429. window.location.href="http://"+url.substring(0,url.indexOf("/"))+"/api/admin/outsourceOrg//downloadFile?path="+e.response.data
  1430. }}
  1431. >
  1432. </Upload>
  1433. </FormItem>
  1434. </div>*/}
  1435. <div className="clearfix">
  1436. <FormItem
  1437. labelCol={{ span: 4 }}
  1438. wrapperCol={{ span: 18 }}
  1439. label="合同/协议扫描件"
  1440. >
  1441. <Upload
  1442. className="demandDetailShow-upload"
  1443. listType="picture-card"
  1444. fileList={this.state.pictureUrl}
  1445. onPreview={file => {
  1446. this.setState({
  1447. previewImage: file.url || file.thumbUrl,
  1448. previewVisible: true
  1449. });
  1450. }}
  1451. ></Upload>
  1452. <Modal
  1453. maskClosable={false}
  1454. footer={null}
  1455. visible={this.state.previewVisible}
  1456. onCancel={() => {
  1457. this.setState({ previewVisible: false });
  1458. }}
  1459. >
  1460. <img
  1461. alt=""
  1462. style={{ width: "100%" }}
  1463. src={this.state.previewImage || ""}
  1464. />
  1465. </Modal>
  1466. </FormItem>
  1467. </div>
  1468. {!this.state.refundStatus ? (
  1469. <div>
  1470. <hr className="division" />
  1471. <div className="clearfix" style={{ marginTop: "20px" }}>
  1472. <FormItem
  1473. labelCol={{ span: 4 }}
  1474. wrapperCol={{ span: 18 }}
  1475. label={
  1476. <span>
  1477. <strong style={{ color: "#f00" }}>*</strong>
  1478. 审核意见
  1479. </span>
  1480. }
  1481. >
  1482. <Input
  1483. type="textarea"
  1484. placeholder="请输入备注"
  1485. rows={4}
  1486. value={this.state.remarks}
  1487. onChange={e => {
  1488. this.setState({ remarks: e.target.value });
  1489. }}
  1490. style={{ width: "440px" }}
  1491. />
  1492. <span
  1493. className="tip"
  1494. style={{
  1495. width: "160px",
  1496. verticalAlign: "top",
  1497. display: "inline-block",
  1498. marginLeft: "10px"
  1499. }}
  1500. >
  1501. 通过或驳回都必须填写审核意见!
  1502. </span>
  1503. </FormItem>
  1504. </div>
  1505. <div className="clearfix fa">
  1506. <Button
  1507. type="danger"
  1508. onClick={this.refuse}
  1509. style={{ color: "#fff", backgroundColor: "#f04134" }}
  1510. >
  1511. 驳回
  1512. </Button>
  1513. <Button type="primary" onClick={this.pass}>
  1514. 通过
  1515. </Button>
  1516. </div>
  1517. </div>
  1518. ) : (
  1519. <div className="clearfix">
  1520. <hr className="division" />
  1521. <div className="clearfix">
  1522. <FormItem
  1523. className="half-item"
  1524. {...formItemLayout}
  1525. label="审核意见"
  1526. >
  1527. <span>{this.state.remarks}</span>
  1528. </FormItem>
  1529. </div>
  1530. <div className="clearfix">
  1531. <FormItem
  1532. className="half-item"
  1533. {...formItemLayout}
  1534. label="审核结果"
  1535. >
  1536. <span>
  1537. {getRefundStatus(this.state.refundStatus)}
  1538. </span>
  1539. </FormItem>
  1540. </div>
  1541. <div className="clearfix">
  1542. <FormItem
  1543. className="half-item"
  1544. {...formItemLayout}
  1545. label="审核时间"
  1546. >
  1547. <span>{this.state.auditTimes}</span>
  1548. </FormItem>
  1549. </div>
  1550. </div>
  1551. )}
  1552. </TabPane>
  1553. </Tabs>
  1554. </Modal>
  1555. <Modal
  1556. maskClosable={false}
  1557. visible={this.state.addnextVisible}
  1558. onOk={this.nextCancel}
  1559. onCancel={this.nextCancel}
  1560. confirmLoading={this.state.confirmLoading}
  1561. width="800px"
  1562. title={"项目任务详情"}
  1563. footer=""
  1564. className="admin-desc-content"
  1565. >
  1566. <Form layout="horizontal" id="demand-form">
  1567. <Spin spinning={this.state.loading}>
  1568. <div className="clearfix">
  1569. <FormItem
  1570. className="half-item"
  1571. {...formItemLayout}
  1572. label="项目名称"
  1573. >
  1574. <span>{this.state.commodityName}</span>
  1575. </FormItem>
  1576. <FormItem
  1577. className="half-item"
  1578. {...formItemLayout}
  1579. label="项目数量"
  1580. >
  1581. <span>{this.state.commodityQuantity}</span>
  1582. </FormItem>
  1583. <FormItem
  1584. className="half-item"
  1585. {...formItemLayout}
  1586. label="金额(万元)"
  1587. >
  1588. <span>{this.state.commodityPrice}</span>
  1589. </FormItem>
  1590. <FormItem
  1591. className="half-item"
  1592. {...formItemLayout}
  1593. label="主要项目"
  1594. >
  1595. <span>{getboutique(this.state.main)}</span>
  1596. </FormItem>
  1597. <div className="clearfix">
  1598. <FormItem
  1599. labelCol={{ span: 4 }}
  1600. wrapperCol={{ span: 16 }}
  1601. label="服务说明"
  1602. >
  1603. <span>{this.state.taskComment}</span>
  1604. </FormItem>
  1605. </div>
  1606. </div>
  1607. </Spin>
  1608. </Form>
  1609. </Modal>
  1610. <Modal
  1611. maskClosable={false}
  1612. visible={this.state.noVisible}
  1613. onOk={this.handleOk}
  1614. onCancel={this.noCancel}
  1615. width="400px"
  1616. title={"拒绝理由"}
  1617. footer=""
  1618. className="admin-desc-content"
  1619. confirmLoading={this.state.confirmLoading}
  1620. >
  1621. <Form layout="horizontal" id="demand-form">
  1622. <Spin spinning={this.state.loading}>
  1623. <div className="clearfix">
  1624. <FormItem
  1625. labelCol={{ span: 4 }}
  1626. wrapperCol={{ span: 16 }}
  1627. label="拒绝理由"
  1628. >
  1629. <Input
  1630. type="textarea"
  1631. placeholder="请输入拒绝理由"
  1632. rows={4}
  1633. value={this.state.reason}
  1634. onChange={e => {
  1635. this.setState({ reason: e.target.value });
  1636. }}
  1637. />
  1638. </FormItem>
  1639. </div>
  1640. <div className="clearfix">
  1641. <Button
  1642. className="cancel"
  1643. type="primary"
  1644. onClick={this.examOks}
  1645. style={{ marginLeft: "50px" }}
  1646. htmlType="submit"
  1647. loading={this.state.aloading}
  1648. >
  1649. 确定
  1650. </Button>
  1651. <Button
  1652. className="cancel"
  1653. type="ghost"
  1654. onClick={this.noCancel}
  1655. style={{ marginLeft: "50px" }}
  1656. >
  1657. 取消
  1658. </Button>
  1659. </div>
  1660. </Spin>
  1661. </Form>
  1662. </Modal>
  1663. <Modal
  1664. visible={this.state.rizhivisible}
  1665. className="admin-desc-content"
  1666. width="800px"
  1667. maskClosable={false}
  1668. title="订单日志"
  1669. footer={null}
  1670. onCancel={this.closeOrderLog}
  1671. >
  1672. <div className="patent-table">
  1673. <Spin spinning={this.state.loading}>
  1674. <Table
  1675. columns={this.state.columnsrizhi}
  1676. dataSource={this.state.dataSourcerizhi}
  1677. pagination={false}
  1678. bordered
  1679. size="small"
  1680. />
  1681. </Spin>
  1682. </div>
  1683. </Modal>
  1684. </div>
  1685. </div>
  1686. );
  1687. }
  1688. })
  1689. );
  1690. export default checkOutsourcing;