examine.jsx 56 KB

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