zxsglyOutSourcingPaiDan.jsx 49 KB

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