examine.jsx 55 KB

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