examine.jsx 56 KB

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