examine.jsx 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707
  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. bordered
  1030. size="small"
  1031. />
  1032. </Spin>
  1033. </div>
  1034. <Modal
  1035. className="customeDetails"
  1036. footer=""
  1037. width="900px"
  1038. visible={this.state.visible}
  1039. onOk={this.visitOk}
  1040. onCancel={this.visitCancel}
  1041. >
  1042. <Tabs activeKey={this.state.activeKey} onChange={this.callback}>
  1043. <TabPane tab="订单详情" key="1">
  1044. <Form
  1045. layout="horizontal"
  1046. onSubmit={this.handleSubmit}
  1047. id="demand-form"
  1048. style={{ paddingBottom: "40px" }}
  1049. >
  1050. <Spin spinning={this.state.loading}>
  1051. <div className="clearfix">
  1052. <FormItem
  1053. className="half-item"
  1054. {...formItemLayout}
  1055. label="订单编号"
  1056. >
  1057. <span>{this.state.orderNo}</span>
  1058. </FormItem>
  1059. <FormItem
  1060. className="half-item"
  1061. {...formItemLayout}
  1062. label="合同编号"
  1063. >
  1064. <span>{this.state.contractNo}</span>
  1065. </FormItem>
  1066. <FormItem
  1067. className="half-item"
  1068. {...formItemLayout}
  1069. label="客户名称"
  1070. >
  1071. <span>{this.state.userName}</span>
  1072. </FormItem>
  1073. <FormItem
  1074. className="half-item"
  1075. {...formItemLayout}
  1076. label="合同签订时间"
  1077. >
  1078. <span>{this.state.signDate}</span>
  1079. </FormItem>
  1080. <FormItem
  1081. className="half-item"
  1082. {...formItemLayout}
  1083. label="流程状态"
  1084. >
  1085. <span>
  1086. {getProcessStatus(this.state.processStatus)}
  1087. </span>
  1088. </FormItem>
  1089. <FormItem
  1090. className="half-item"
  1091. {...formItemLayout}
  1092. label="结算状态"
  1093. >
  1094. <span>
  1095. {getLiquidationStatus(this.state.liquidationStatus)}
  1096. </span>
  1097. </FormItem>
  1098. <FormItem
  1099. className="half-item"
  1100. {...formItemLayout}
  1101. label="企业联系人"
  1102. >
  1103. <span>{this.state.contacts}</span>
  1104. </FormItem>
  1105. <FormItem
  1106. className="half-item"
  1107. {...formItemLayout}
  1108. label="联系人电话"
  1109. >
  1110. <span>{this.state.contactMobile}</span>
  1111. </FormItem>
  1112. <FormItem
  1113. className="half-item"
  1114. {...formItemLayout}
  1115. label="企业法人"
  1116. >
  1117. <span>{this.state.legalPerson}</span>
  1118. </FormItem>
  1119. <FormItem
  1120. className="half-item"
  1121. {...formItemLayout}
  1122. label="法人电话"
  1123. >
  1124. <span>{this.state.legalPersonTel}</span>
  1125. </FormItem>
  1126. <FormItem
  1127. className="half-item"
  1128. {...formItemLayout}
  1129. label="签单金额(万元)"
  1130. >
  1131. <span>{this.state.totalAmount}</span>
  1132. </FormItem>
  1133. <FormItem
  1134. className="half-item"
  1135. {...formItemLayout}
  1136. label="首付金额(万元)"
  1137. >
  1138. <span>{this.state.firstAmount}</span>
  1139. </FormItem>
  1140. <FormItem
  1141. className="half-item"
  1142. {...formItemLayout}
  1143. label="特批立项"
  1144. >
  1145. <span>{getApprovedState(this.state.approval)}</span>
  1146. </FormItem>
  1147. <FormItem
  1148. className="half-item"
  1149. {...formItemLayout}
  1150. label="已收款项(万元)"
  1151. >
  1152. <span>{this.state.settlementAmount}</span>
  1153. </FormItem>
  1154. <FormItem
  1155. className="half-item"
  1156. {...formItemLayout}
  1157. label="订单部门"
  1158. >
  1159. <span>{this.state.depName}</span>
  1160. </FormItem>
  1161. <FormItem
  1162. className="half-item"
  1163. {...formItemLayout}
  1164. label="是否外包"
  1165. >
  1166. {this.state.outsource}
  1167. </FormItem>
  1168. <div className="clearfix">
  1169. <FormItem
  1170. labelCol={{ span: 4 }}
  1171. wrapperCol={{ span: 16 }}
  1172. label="订单留言"
  1173. >
  1174. <p style={{ width: 500, wordWrap: "break-word" }}>
  1175. {this.state.orderRemarks}
  1176. </p>
  1177. </FormItem>
  1178. </div>
  1179. <div className="clearfix">
  1180. <FormItem
  1181. labelCol={{ span: 4 }}
  1182. wrapperCol={{ span: 18 }}
  1183. label="合同扫描件"
  1184. >
  1185. <Upload
  1186. className="demandDetailShow-upload"
  1187. listType="picture-card"
  1188. fileList={this.state.orgCodeUrl}
  1189. onPreview={file => {
  1190. this.setState({
  1191. previewImage: file.url || file.thumbUrl,
  1192. previewVisible: true
  1193. });
  1194. }}
  1195. ></Upload>
  1196. <Modal
  1197. maskClosable={false}
  1198. footer={null}
  1199. visible={this.state.previewVisible}
  1200. onCancel={() => {
  1201. this.setState({ previewVisible: false });
  1202. }}
  1203. >
  1204. <img
  1205. alt=""
  1206. style={{ width: "100%" }}
  1207. src={this.state.previewImage || ""}
  1208. />
  1209. </Modal>
  1210. <Button
  1211. style={{
  1212. float: "right",
  1213. marginRight: "140px",
  1214. marginTop: "20px"
  1215. }}
  1216. onClick={this.getOrderLog}
  1217. >
  1218. 查看订单日志
  1219. </Button>
  1220. </FormItem>
  1221. </div>
  1222. <div className="clearfix">
  1223. <FormItem
  1224. className="half-item"
  1225. {...formItemLayout}
  1226. label="订单负责人"
  1227. >
  1228. <span>{this.state.salesmanName}</span>
  1229. </FormItem>
  1230. <FormItem
  1231. className="half-item"
  1232. {...formItemLayout}
  1233. label="订单负责人电话"
  1234. >
  1235. <span>{this.state.salesmanMobile}</span>
  1236. </FormItem>
  1237. </div>
  1238. <div className="clearfix">
  1239. <FormItem
  1240. className="half-item"
  1241. {...formItemLayout}
  1242. label="当前财务负责人"
  1243. >
  1244. <span>{this.state.nowFinance}</span>
  1245. </FormItem>
  1246. <FormItem
  1247. className="half-item"
  1248. {...formItemLayout}
  1249. label="当前财务负责人电话"
  1250. >
  1251. <span>{this.state.nowFinanceMobile}</span>
  1252. </FormItem>
  1253. </div>
  1254. <div className="clearfix">
  1255. <FormItem
  1256. className="half-item"
  1257. {...formItemLayout}
  1258. style={{ opacity: ".5" }}
  1259. label="原订单负责人"
  1260. >
  1261. <span>{this.state.oldSalesmanName}</span>
  1262. </FormItem>
  1263. <FormItem
  1264. className="half-item"
  1265. {...formItemLayout}
  1266. style={{ opacity: ".5" }}
  1267. label="原订单负责人电话"
  1268. >
  1269. <span>{this.state.oldSalesmanMobile}</span>
  1270. </FormItem>
  1271. </div>
  1272. <div className="clearfix">
  1273. <FormItem
  1274. className="half-item"
  1275. style={{ opacity: ".5" }}
  1276. {...formItemLayout}
  1277. label="实际财务操作人"
  1278. >
  1279. <span>{this.state.financeName}</span>
  1280. </FormItem>
  1281. <FormItem
  1282. className="half-item"
  1283. {...formItemLayout}
  1284. style={{ opacity: ".5" }}
  1285. label="实际财务操作人电话"
  1286. >
  1287. <span>{this.state.financeMobile}</span>
  1288. </FormItem>
  1289. </div>
  1290. <div>
  1291. <span
  1292. style={{ marginLeft: "50px", fontSize: "20px" }}
  1293. >
  1294. 催款节点
  1295. </span>
  1296. {this.state.processStatus == 0 ? (
  1297. <Button
  1298. type="primary"
  1299. onClick={this.addcontact}
  1300. style={{
  1301. float: "right",
  1302. marginRight: "50px",
  1303. marginBottom: "15px"
  1304. }}
  1305. >
  1306. 添加催款节点
  1307. </Button>
  1308. ) : (
  1309. ""
  1310. )}
  1311. </div>
  1312. <div className="clearfix">
  1313. <Spin spinning={this.state.loading}>
  1314. <Form layout="horizontal" id="demand-form">
  1315. <Table
  1316. pagination={false}
  1317. columns={this.state.ContactsLists}
  1318. dataSource={this.state.contactList}
  1319. />
  1320. <Col
  1321. span={24}
  1322. offset={9}
  1323. style={{ marginTop: "15px" }}
  1324. ></Col>
  1325. </Form>
  1326. </Spin>
  1327. </div>
  1328. <div>
  1329. <span
  1330. style={{ marginLeft: "50px", fontSize: "20px" }}
  1331. >
  1332. 项目业务
  1333. </span>
  1334. {this.state.processStatus == 0 ? (
  1335. <Button
  1336. type="primary"
  1337. onClick={this.addDetailed}
  1338. style={{
  1339. float: "right",
  1340. marginRight: "50px",
  1341. marginBottom: "15px"
  1342. }}
  1343. >
  1344. 添加项目明细
  1345. </Button>
  1346. ) : (
  1347. ""
  1348. )}
  1349. </div>
  1350. <div className="patent-table">
  1351. <Spin spinning={this.state.loading}>
  1352. <Table
  1353. columns={this.state.columnsX}
  1354. dataSource={this.state.dataSourceX}
  1355. pagination={this.state.paginations}
  1356. onRowClick={this.tableRowClickX}
  1357. />
  1358. </Spin>
  1359. </div>
  1360. <div className="addSave" style={{ marginTop: "15px" }}>
  1361. <Button
  1362. type="primary"
  1363. onClick={this.examOk}
  1364. style={{ marginLeft: "200px" }}
  1365. htmlType="submit"
  1366. >
  1367. 通过
  1368. </Button>
  1369. <Button
  1370. type="primary"
  1371. onClick={this.examNo}
  1372. style={{ marginLeft: "50px" }}
  1373. htmlType="submit"
  1374. >
  1375. 驳回
  1376. </Button>
  1377. <Button
  1378. type="ghost"
  1379. onClick={this.visitCancel}
  1380. style={{ marginLeft: "50px" }}
  1381. >
  1382. 取消
  1383. </Button>
  1384. {/*<Button className='warn-button' type="primary" onClick={this.outsourcing} style={{marginLeft:"50px"}}>通过不走总部</Button>
  1385. <p className='hint'>提示:高于总部价格,费用个人承担!</p>*/}
  1386. </div>
  1387. </div>
  1388. </Spin>
  1389. </Form>
  1390. </TabPane>
  1391. <TabPane tab="外包(不走总部)" key="2">
  1392. <div className="clearfix">
  1393. <FormItem
  1394. className="half-item"
  1395. {...formItemLayout}
  1396. label={
  1397. <span>
  1398. <strong style={{ color: "#f00" }}>*</strong>外包公司
  1399. </span>
  1400. }
  1401. >
  1402. <Input
  1403. value={this.state.companyName}
  1404. onChange={e => {
  1405. this.setState({
  1406. companyName: e.target.value
  1407. });
  1408. }}
  1409. placeholder="请填写外包公司名称"
  1410. />
  1411. </FormItem>
  1412. <span className="tip">如多个公司,请用间隔</span>
  1413. </div>
  1414. <div className="clearfix">
  1415. <FormItem
  1416. className="half-item"
  1417. {...formItemLayout}
  1418. label={
  1419. <span>
  1420. <strong style={{ color: "#f00" }}>*</strong>单价(万元)
  1421. </span>
  1422. }
  1423. >
  1424. <Input
  1425. value={this.state.unitPrice}
  1426. onChange={e => {
  1427. this.setState({
  1428. unitPrice: e.target.value
  1429. });
  1430. }}
  1431. placeholder="请填写单价"
  1432. />
  1433. </FormItem>
  1434. </div>
  1435. <div className="clearfix">
  1436. <FormItem
  1437. className="half-item"
  1438. {...formItemLayout}
  1439. label={
  1440. <span>
  1441. <strong style={{ color: "#f00" }}>*</strong>数量(个)
  1442. </span>
  1443. }
  1444. >
  1445. <Input
  1446. value={this.state.unitNumber}
  1447. onChange={e => {
  1448. this.setState({
  1449. unitNumber: e.target.value
  1450. });
  1451. }}
  1452. placeholder="请填写数量"
  1453. />
  1454. </FormItem>
  1455. </div>
  1456. <div className="clearfix">
  1457. <FormItem
  1458. className="half-item"
  1459. {...formItemLayout}
  1460. label={
  1461. <span>
  1462. <strong style={{ color: "#f00" }}>*</strong>
  1463. 总金额(万元)
  1464. </span>
  1465. }
  1466. >
  1467. <Input
  1468. value={this.state.amount}
  1469. onChange={e => {
  1470. this.setState({
  1471. amount: e.target.value
  1472. });
  1473. }}
  1474. placeholder="请填写本次外包公司的价格"
  1475. />
  1476. </FormItem>
  1477. </div>
  1478. {/*<div className="clearfix">
  1479. <FormItem className="half-item"
  1480. {...formItemLayout}
  1481. label="上传协议文件" style={{height:"auto"}}>
  1482. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  1483. data={(e)=>{
  1484. return {
  1485. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  1486. }
  1487. }}
  1488. fileList={this.state.attachmentUrl}
  1489. onChange={(e)=>{
  1490. this.setState({attachmentUrl:e.fileList})
  1491. }}>
  1492. {this.state.attachmentUrl.length>1?null:<Button>
  1493. <Icon type="upload" /> 点击上传
  1494. </Button>}
  1495. </Upload>
  1496. <span className="tip" style={{display:"inline-block"}}>支持文件格式: doc,excel,ppt</span>
  1497. </FormItem>
  1498. </div>*/}
  1499. <div className="clearfix">
  1500. <FormItem
  1501. className="half-item"
  1502. style={{ height: "auto" }}
  1503. {...formItemLayout}
  1504. label={
  1505. <span>
  1506. <strong style={{ color: "#f00" }}>*</strong>备注
  1507. </span>
  1508. }
  1509. >
  1510. <TextArea
  1511. rows={4}
  1512. value={this.state.outsourceRemarks}
  1513. onChange={e => {
  1514. this.setState({
  1515. outsourceRemarks: e.target.value
  1516. });
  1517. }}
  1518. placeholder="请输入备注"
  1519. />
  1520. </FormItem>
  1521. </div>
  1522. <p
  1523. className="tip"
  1524. style={{
  1525. paddingBottom: "12px",
  1526. width: "240px",
  1527. marginLeft: "145px"
  1528. }}
  1529. >
  1530. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  1531. </p>
  1532. <div className="clearfix">
  1533. <FormItem
  1534. labelCol={{ span: 4 }}
  1535. wrapperCol={{ span: 18 }}
  1536. label={
  1537. <span>
  1538. <strong style={{ color: "#f00" }}>*</strong>
  1539. 合同/协议扫描件
  1540. <span style={{ color: "#f00" }}>(外包合同)</span>
  1541. </span>
  1542. }
  1543. >
  1544. <PicturesWall
  1545. fileList={this.getOrgCodeUrl}
  1546. pictureUrl={this.state.pictureUrl}
  1547. />
  1548. <p>请上传与外包公司签订的合同协议</p>
  1549. <p>图片建议:要清晰。</p>
  1550. </FormItem>
  1551. </div>
  1552. <div className="clearfix">
  1553. <div
  1554. style={{ display: "inline-black", textAlign: "center" }}
  1555. >
  1556. <Button type="primary" onClick={this.sureOut}>
  1557. 确认发起外包,不通过总部
  1558. </Button>
  1559. <p className="tip">提示:高于总部价格,费用个人承担</p>
  1560. </div>
  1561. </div>
  1562. </TabPane>
  1563. </Tabs>
  1564. </Modal>
  1565. <Modal
  1566. maskClosable={false}
  1567. visible={this.state.addnextVisible}
  1568. onOk={this.nextCancel}
  1569. onCancel={this.nextCancel}
  1570. confirmLoading={this.state.confirmLoading}
  1571. width="800px"
  1572. title={"项目任务详情"}
  1573. footer=""
  1574. className="admin-desc-content"
  1575. >
  1576. <Form layout="horizontal" id="demand-form">
  1577. <Spin spinning={this.state.loading}>
  1578. <div className="clearfix">
  1579. <FormItem
  1580. className="half-item"
  1581. {...formItemLayout}
  1582. label="项目名称"
  1583. >
  1584. <span>{this.state.commodityName}</span>
  1585. </FormItem>
  1586. <FormItem
  1587. className="half-item"
  1588. {...formItemLayout}
  1589. label="项目数量"
  1590. >
  1591. <span>{this.state.commodityQuantity}</span>
  1592. </FormItem>
  1593. <FormItem
  1594. className="half-item"
  1595. {...formItemLayout}
  1596. label="金额(万元)"
  1597. >
  1598. <span>{this.state.commodityPrice}</span>
  1599. </FormItem>
  1600. <FormItem
  1601. className="half-item"
  1602. {...formItemLayout}
  1603. label="主要项目"
  1604. >
  1605. <span>{getboutique(this.state.main)}</span>
  1606. </FormItem>
  1607. <div className="clearfix">
  1608. <FormItem
  1609. labelCol={{ span: 4 }}
  1610. wrapperCol={{ span: 16 }}
  1611. label="服务说明"
  1612. >
  1613. <span>{this.state.taskComment}</span>
  1614. </FormItem>
  1615. </div>
  1616. </div>
  1617. </Spin>
  1618. </Form>
  1619. </Modal>
  1620. <Modal
  1621. maskClosable={false}
  1622. visible={this.state.noVisible}
  1623. onOk={this.handleOk}
  1624. onCancel={this.noCancel}
  1625. width="400px"
  1626. title={"拒绝理由"}
  1627. footer=""
  1628. className="admin-desc-content"
  1629. confirmLoading={this.state.confirmLoading}
  1630. >
  1631. <Form layout="horizontal" id="demand-form">
  1632. <Spin spinning={this.state.loading}>
  1633. <div className="clearfix">
  1634. <FormItem
  1635. labelCol={{ span: 4 }}
  1636. wrapperCol={{ span: 16 }}
  1637. label="拒绝理由"
  1638. >
  1639. <Input
  1640. type="textarea"
  1641. placeholder="请输入拒绝理由"
  1642. rows={4}
  1643. value={this.state.reason}
  1644. onChange={e => {
  1645. this.setState({ reason: e.target.value });
  1646. }}
  1647. />
  1648. </FormItem>
  1649. </div>
  1650. <div className="clearfix">
  1651. <Button
  1652. className="cancel"
  1653. type="primary"
  1654. onClick={this.examOks}
  1655. style={{ marginLeft: "50px" }}
  1656. htmlType="submit"
  1657. loading={this.state.aloading}
  1658. >
  1659. 确定
  1660. </Button>
  1661. <Button
  1662. className="cancel"
  1663. type="ghost"
  1664. onClick={this.noCancel}
  1665. style={{ marginLeft: "50px" }}
  1666. >
  1667. 取消
  1668. </Button>
  1669. </div>
  1670. </Spin>
  1671. </Form>
  1672. </Modal>
  1673. <Modal
  1674. visible={this.state.rizhivisible}
  1675. className="admin-desc-content"
  1676. width="800px"
  1677. maskClosable={false}
  1678. title="订单日志"
  1679. footer={null}
  1680. onCancel={this.closeOrderLog}
  1681. >
  1682. <div className="patent-table">
  1683. <Spin spinning={this.state.loading}>
  1684. <Table
  1685. columns={this.state.columnsrizhi}
  1686. dataSource={this.state.dataSourcerizhi}
  1687. pagination={false}
  1688. />
  1689. </Spin>
  1690. </div>
  1691. </Modal>
  1692. </div>
  1693. </div>
  1694. );
  1695. }
  1696. })
  1697. );
  1698. export default IntentionCustomer;