examine.jsx 56 KB

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