examine.jsx 79 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321
  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. Popconfirm,
  16. Select,
  17. Tag
  18. } from "antd";
  19. import $ from "jquery/src/ajax";
  20. import moment from "moment";
  21. import {
  22. getLiquidationStatus,
  23. getApprovedState,
  24. getProcessStatus,
  25. splitUrl,
  26. getjiedian,
  27. getboutique,
  28. getCuikuan,
  29. getProjectStatus,
  30. moneyVerify,
  31. ShowModal
  32. } from "@/tools.js";
  33. import "./customer.less";
  34. import ShowModalDiv from "@/showModal.jsx";
  35. import ResolutionDetail from "@/resolutionDetail";
  36. import OrderRiZi from "@/orderRiZi.jsx";
  37. import ImgList from "../../../common/imgList";
  38. const confirm = Modal.confirm;
  39. const { Option } = Select;
  40. //图片组件
  41. const PicturesWall = React.createClass({
  42. getInitialState() {
  43. return {
  44. previewVisible: false,
  45. previewImage: "",
  46. fileList: this.props.pictureUrl
  47. };
  48. },
  49. handleCancel() {
  50. this.setState({
  51. previewVisible: false
  52. });
  53. },
  54. handlePreview(file) {
  55. this.setState({
  56. previewImage: file.url || file.thumbUrl,
  57. previewVisible: true
  58. });
  59. },
  60. handleChange(info) {
  61. let fileList = info.fileList;
  62. this.setState({
  63. fileList
  64. });
  65. this.props.fileList(fileList);
  66. },
  67. componentWillReceiveProps(nextProps) {
  68. this.state.fileList = nextProps.pictureUrl;
  69. this.state.pojectApplicationUrl = undefined;
  70. },
  71. render() {
  72. const { previewVisible, previewImage, fileList } = this.state;
  73. const uploadButton = (
  74. <div>
  75. <Icon type="plus" />
  76. <div className="ant-upload-text">点击上传</div>
  77. </div>
  78. );
  79. return (
  80. <div style={{ display: "inline-block" }}>
  81. <Upload
  82. action={
  83. globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"
  84. }
  85. data={{ sign: "order_outsource" }}
  86. listType="picture-card"
  87. fileList={fileList}
  88. multiple
  89. onPreview={this.handlePreview}
  90. onChange={this.handleChange}
  91. >
  92. {uploadButton}
  93. </Upload>
  94. <Modal
  95. maskClosable={false}
  96. width={"70px"}
  97. visible={previewVisible}
  98. footer={null}
  99. onCancel={this.handleCancel}
  100. >
  101. <img alt="example" style={{ width: "100%" }} src={previewImage} />
  102. </Modal>
  103. </div>
  104. );
  105. }
  106. });
  107. const IntentionCustomer = Form.create()(
  108. React.createClass({
  109. loadData(pageNo) {
  110. this.setState({
  111. visitModul: false,
  112. loading: true,
  113. ispage: pageNo,
  114. modalVisible: false,
  115. });
  116. $.ajax({
  117. method: "get",
  118. dataType: "json",
  119. crossDomain: false,
  120. url: globalConfig.context + "/api/admin/newOrder/orderNewList",
  121. data: {
  122. pageNo: pageNo || 1,
  123. pageSize: this.state.pagination.pageSize,
  124. specially: 1, //审核列表
  125. name: this.state.customerName, //名称
  126. orderNo: this.state.orderNoSearch, //订单编号
  127. starTime: this.state.releaseDate[0], //开始时间
  128. endTime: this.state.releaseDate[1], //结束时间
  129. approval: this.state.approvalSearch, //特批状态搜索
  130. amountStatus: this.state.amountStatus,
  131. },
  132. success: function (data) {
  133. ShowModal(this);
  134. let theArr = [];
  135. if (data.error.length || data.data.list == "") {
  136. if (data.error && data.error.length) {
  137. message.warning(data.error[0].message);
  138. }
  139. } else {
  140. for (let i = 0; i < data.data.list.length; i++) {
  141. let thisdata = data.data.list[i];
  142. theArr.push({
  143. key: i,
  144. id: thisdata.id, //用户ID
  145. orderNo: thisdata.orderNo, //订单编号
  146. totalAmount: thisdata.totalAmount, //签单金额
  147. processStatus: thisdata.processStatus, //流程状态
  148. liquidationStatus: thisdata.liquidationStatus, //结算状态
  149. approval: thisdata.approval, //特批状态
  150. signDate: thisdata.signDate, //签单时间
  151. userName: thisdata.userName, //客户名称
  152. salesmanName: thisdata.salesmanName, //营销员名称
  153. financeName: thisdata.financeName, //财务名称
  154. createDate: thisdata.createDate, //下单时间
  155. depName: thisdata.depName,
  156. orderStatus: thisdata.orderStatus,
  157. });
  158. }
  159. this.state.pagination.total = data.data.totalCount;
  160. this.state.pagination.current = data.data.pageNo;
  161. }
  162. if (data.data && data.data.list && !data.data.list.length) {
  163. this.state.pagination.total = 0;
  164. }
  165. this.setState({
  166. dataSource: theArr,
  167. pageNo: pageNo,
  168. pagination: this.state.pagination,
  169. selectedRowKeys: [],
  170. });
  171. }.bind(this),
  172. }).always(
  173. function () {
  174. this.setState({
  175. loading: false,
  176. });
  177. }.bind(this)
  178. );
  179. },
  180. getInitialState() {
  181. return {
  182. rotateDeg: 0,
  183. page: 1,
  184. resVisible: false,
  185. releaseDate: [],
  186. selectedRowKeys: [],
  187. pictureUrl: [],
  188. attachmentUrl: [],
  189. paginations: false,
  190. activeKey: "1",
  191. confirmLoading: false,
  192. approvalSearch: undefined,
  193. aloading: false,
  194. pagination: {
  195. defaultCurrent: 1,
  196. defaultPageSize: 10,
  197. showQuickJumper: true,
  198. pageSize: 10,
  199. onChange: function (page) {
  200. this.loadData(page);
  201. }.bind(this),
  202. showTotal: function (total) {
  203. return "共" + total + "条数据";
  204. },
  205. },
  206. columns: [
  207. {
  208. title: "订单编号",
  209. dataIndex: "orderNo",
  210. key: "orderNo",
  211. },
  212. {
  213. title: "下单时间",
  214. dataIndex: "createDate",
  215. key: "createTime",
  216. },
  217. {
  218. title: "合同签订时间",
  219. dataIndex: "signDate",
  220. key: "signDate",
  221. },
  222. {
  223. title: "客户名称",
  224. dataIndex: "userName",
  225. key: "userName",
  226. render: (text) => {
  227. return text && text.length > 9 ? text.substr(0, 9) + "..." : text;
  228. },
  229. },
  230. {
  231. title: "流程状态",
  232. dataIndex: "processStatus",
  233. key: "processStatus",
  234. render: (text) => {
  235. return getProcessStatus(text);
  236. },
  237. },
  238. {
  239. title: "订单部门",
  240. dataIndex: "depName",
  241. key: "depName",
  242. },
  243. {
  244. title: "签单金额(万元)",
  245. dataIndex: "totalAmount",
  246. key: "totalAmount",
  247. },
  248. {
  249. title: "结算状态",
  250. dataIndex: "liquidationStatus",
  251. key: "liquidationStatus",
  252. render: (text) => {
  253. return getLiquidationStatus(text);
  254. },
  255. },
  256. {
  257. title: "是否特批",
  258. dataIndex: "approval",
  259. key: "approval",
  260. render: (text) => {
  261. return getApprovedState(text);
  262. },
  263. },
  264. {
  265. title: "订单负责人",
  266. dataIndex: "salesmanName",
  267. key: "salesmanName",
  268. },
  269. {
  270. title: "财务负责人",
  271. dataIndex: "financeName",
  272. key: "financeName",
  273. },
  274. ],
  275. data: [],
  276. dataSource: [],
  277. columnsX: [
  278. {
  279. title: "业务项目名称",
  280. dataIndex: "commodityName",
  281. key: "commodityName",
  282. render: (text, record) => {
  283. return text + "-" + record.id
  284. }
  285. },
  286. {
  287. title: "项目类别",
  288. dataIndex: "cname",
  289. key: "cname",
  290. },
  291. {
  292. title: "项目数量",
  293. dataIndex: "commodityQuantity",
  294. key: "commodityQuantity",
  295. render: (text, record) => {
  296. if (record.splitStatus == 1) {
  297. return (
  298. <span>
  299. {text}{" "}
  300. <Tag
  301. color="#108ee9"
  302. onClick={(e) => {
  303. e.stopPropagation();
  304. this.showRes(record);
  305. }}
  306. >
  307. 已拆
  308. </Tag>
  309. </span>
  310. );
  311. } else {
  312. return text;
  313. }
  314. },
  315. },
  316. {
  317. title: "金额(万元)",
  318. dataIndex: "commodityPrice",
  319. key: "commodityPrice",
  320. },
  321. {
  322. title: "负责人",
  323. dataIndex: "contacts",
  324. key: "contacts",
  325. },
  326. {
  327. title: "负责人电话",
  328. dataIndex: "contactsMobile",
  329. key: "contactsMobile",
  330. },
  331. {
  332. title: "项目状态",
  333. dataIndex: "projectStatus",
  334. key: "projectStatus",
  335. render: (text) => {
  336. return getProjectStatus(text);
  337. },
  338. },
  339. {
  340. title: "主要项目",
  341. dataIndex: "main",
  342. key: "main",
  343. render: (text) => {
  344. return text ? "是" : "否";
  345. },
  346. },
  347. {
  348. title: "项目说明",
  349. dataIndex: "taskComment",
  350. key: "taskComment",
  351. render: (text) => {
  352. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  353. },
  354. },
  355. ],
  356. columnsrizhi: [
  357. {
  358. title: "流程",
  359. dataIndex: "processName",
  360. key: "processName",
  361. },
  362. {
  363. title: "操作人",
  364. dataIndex: "adminName",
  365. key: "adminName",
  366. },
  367. {
  368. title: "时间",
  369. dataIndex: "createDate",
  370. key: "createDate",
  371. },
  372. ],
  373. dataSourceX: [],
  374. ContactsListsNew: [
  375. {
  376. title: "项目名称",
  377. dataIndex: "commodityName",
  378. key: "commodityName",
  379. render: (text, record) => {
  380. return <span>{text + "-" + record.tid}</span>;
  381. },
  382. },
  383. {
  384. title: "项目分类",
  385. dataIndex: "projectType",
  386. key: "projectType",
  387. render: (text) => {
  388. let arr = this.state.dataSourceX || [];
  389. let str = "";
  390. for (let i = 0; i < arr.length; i++) {
  391. if (this.state.dataSourceX[i].sort == text) {
  392. str = this.state.dataSourceX[i].cname;
  393. return <span>{str}</span>;
  394. }
  395. }
  396. },
  397. },
  398. {
  399. title: "催款科目",
  400. dataIndex: "dunTypeName",
  401. key: "dunTypeName",
  402. render: (text,record) => {
  403. if (record.customizeName) {
  404. return text + record.customizeName;
  405. }
  406. return <span>{text}</span>;
  407. },
  408. },
  409. {
  410. title: "时间(天)",
  411. dataIndex: "waitDay",
  412. key: "waitDay",
  413. render: (text, record) => {
  414. if (record.dunTypeName) {
  415. if (record.customizeTimes) {
  416. return record.customizeTimes;
  417. }
  418. if (text == 0) {
  419. var str = "当天";
  420. } else if (!text) {
  421. var str = "";
  422. } else {
  423. var str = text + "天";
  424. }
  425. return <span>{str}</span>;
  426. }
  427. },
  428. },
  429. {
  430. title: "金额(万元)",
  431. dataIndex: "money",
  432. key: "money",
  433. render: (text, record) => {
  434. if (record.dunTypeName) {
  435. if (record.appropriationRatio && !record.money) {
  436. return <span>{record.appropriationRatio}(拨款比例)</span>;
  437. } else if (record.appropriationRatio && record.money) {
  438. return (
  439. <span>
  440. {text}(比例:{record.appropriationRatio})
  441. </span>
  442. );
  443. } else {
  444. return <span>{text}</span>;
  445. }
  446. }
  447. },
  448. },
  449. {
  450. title: "服务年限",
  451. dataIndex: "startDate",
  452. key: "startDate",
  453. render: (text, record) => {
  454. if (record.dunTypeName) {
  455. return <span>{text}</span>;
  456. }
  457. },
  458. },
  459. {
  460. title: "催款状态",
  461. dataIndex: "status",
  462. key: "status",
  463. render: (text) => {
  464. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  465. },
  466. },
  467. ],
  468. ContactsLists: [
  469. {
  470. title: "催款科目",
  471. dataIndex: "dunSubject",
  472. key: "dunSubject",
  473. render: (text) => {
  474. return getjiedian(text);
  475. },
  476. },
  477. {
  478. title: "金额(万元)",
  479. dataIndex: "money",
  480. key: "money",
  481. },
  482. {
  483. title: "催款状态",
  484. dataIndex: "dunStatus",
  485. key: "dunStatus",
  486. render: (text) => {
  487. return getCuikuan(text);
  488. },
  489. },
  490. ],
  491. };
  492. },
  493. //页面加载函数
  494. componentWillMount() {
  495. this.loadData();
  496. },
  497. //整行点击
  498. tableRowClick(record) {
  499. this.setState({
  500. visible: true,
  501. orderStatus: record.orderStatus,
  502. id: record.id,
  503. });
  504. this.xiangqing(record.orderNo);
  505. this.xiangmu(record.orderNo);
  506. this.jiedian(record.orderNo);
  507. this.jiedianNew(record.orderNo);
  508. },
  509. //点击打卡项目详情
  510. tableRowClickX(record) {
  511. if (record.type == "1") {
  512. this.setState({
  513. displayFees: "block",
  514. costReduction: record.costReduction,
  515. officialCost: record.officialCost,
  516. });
  517. }
  518. this.setState({
  519. jid: record.id, //项目ID
  520. kid: record.commodityId, //商品ID
  521. commodityName: record.commodityName, //金额
  522. commodityPrice: record.commodityPrice, //金额
  523. commodityQuantity: record.commodityQuantity, //数量
  524. taskComment: record.taskComment, //备注
  525. main: record.main.toString(), //是否为主要
  526. addnextVisible: true,
  527. addState: 0,
  528. });
  529. },
  530. //项目详情关闭
  531. nextCancel() {
  532. this.setState({
  533. addnextVisible: false,
  534. displayFees: "none",
  535. officialCost: "", //是否有官费
  536. costReduction: "", //是否有费减
  537. });
  538. },
  539. //订单详情
  540. xiangqing(orderNos) {
  541. $.ajax({
  542. method: "get",
  543. dataType: "json",
  544. crossDomain: false,
  545. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  546. data: {
  547. orderNo: orderNos,
  548. },
  549. success: function (data) {
  550. if (data.error.length || data.data.list == "") {
  551. if (data.error && data.error.length) {
  552. message.warning(data.error[0].message);
  553. }
  554. } else {
  555. let thisdata = data.data;
  556. this.setState({
  557. orderNo: thisdata.orderNo, //订单编号
  558. contractNo: thisdata.contractNo, //合同编号
  559. userName: thisdata.userName, //客户名称
  560. signDate: thisdata.signDate, //签单时间
  561. processStatus: thisdata.processStatus, //流程状态
  562. liquidationStatus: thisdata.liquidationStatus, //结算状态
  563. contacts: thisdata.contacts, //企业联系人
  564. contactMobile: thisdata.contactMobile, //联系人电话
  565. legalPerson: thisdata.legalPerson, //法人
  566. legalPersonTel: thisdata.legalPersonTel, //法人电话
  567. firstAmount: thisdata.firstAmount, //签单金额
  568. totalAmount: thisdata.totalAmount, //首付金额
  569. approval: thisdata.approval, //特批状态
  570. settlementAmount: thisdata.settlementAmount, //已收款项
  571. orderRemarks: thisdata.orderRemarks, //订单留言
  572. orgCodeUrl: thisdata.contractPictureUrl
  573. ? splitUrl(
  574. thisdata.contractPictureUrl,
  575. ",",
  576. globalConfig.avatarHost + "/upload"
  577. )
  578. : [], //图片地址
  579. replenishUrl: thisdata.agreementUrl
  580. ? splitUrl(
  581. thisdata.agreementUrl,
  582. ",",
  583. globalConfig.avatarHost + "/upload"
  584. )
  585. : [], //图片地址
  586. salesmanName: thisdata.salesmanName, //营销员名称
  587. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  588. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  589. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  590. financeName: thisdata.financeName, //财务名称
  591. financeMobile: thisdata.financeMobile, //财务电话
  592. nowFinance: thisdata.nowFinance, //财务名称
  593. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  594. depName: thisdata.depName,
  595. outsource: thisdata.outsource == 0 ? "否" : "是",
  596. });
  597. }
  598. }.bind(this),
  599. }).always(
  600. function () {
  601. this.setState({
  602. loading: false,
  603. });
  604. }.bind(this)
  605. );
  606. },
  607. //项目列表
  608. xiangmu(orderNos) {
  609. $.ajax({
  610. method: "get",
  611. dataType: "json",
  612. crossDomain: false,
  613. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  614. data: {
  615. orderNo: orderNos,
  616. },
  617. success: function (data) {
  618. let theArr = [];
  619. if (data.error.length || data.data.list == "") {
  620. if (data.error && data.error.length) {
  621. message.warning(data.error[0].message);
  622. }
  623. } else {
  624. for (let i = 0; i < data.data.length; i++) {
  625. let thisdata = data.data[i];
  626. theArr.push({
  627. key: i,
  628. id: thisdata.id,
  629. orderNo: thisdata.orderNo, //订单编号
  630. commodityId: thisdata.commodityId, //项目ID
  631. commodityName: thisdata.commodityName, //项目名称
  632. cname: thisdata.cname, //项目类别
  633. commodityPrice: thisdata.commodityPrice, //项目价格
  634. commodityQuantity: thisdata.commodityQuantity, //项目数量
  635. main: thisdata.main, //是否为主要任务
  636. taskComment: thisdata.taskComment, //任务说明
  637. contacts: thisdata.contacts, //联系人
  638. contactsMobile: thisdata.contactsMobile, //联系人电话
  639. projectStatus: thisdata.projectStatus, //项目状态
  640. sort: thisdata.cSort,
  641. splitStatus: thisdata.splitStatus,
  642. officialCost: thisdata.officialCost,
  643. costReduction: thisdata.costReduction,
  644. type: thisdata.type,
  645. });
  646. }
  647. }
  648. this.setState({
  649. dataSourceX: theArr,
  650. });
  651. }.bind(this),
  652. }).always(
  653. function () {
  654. this.setState({
  655. loading: false,
  656. });
  657. }.bind(this)
  658. );
  659. },
  660. rizhi() {
  661. this.setState({
  662. loading: true,
  663. });
  664. $.ajax({
  665. method: "get",
  666. dataType: "json",
  667. crossDomain: false,
  668. url: "/api/admin/newOrder/selectOrderLog",
  669. data: {
  670. orderNo: this.state.orderNo,
  671. },
  672. success: function (data) {
  673. let theArr = [];
  674. let thisData = data.data;
  675. if (!thisData.length) {
  676. if (data.error && data.error.length) {
  677. message.warning(data.error[0].message);
  678. }
  679. thisData = {};
  680. } else {
  681. for (let i = 0; i < data.data.length; i++) {
  682. let thisdata = data.data[i];
  683. theArr.push({
  684. processName: thisdata.processName,
  685. adminName: thisdata.adminName,
  686. createDate: thisdata.createDate,
  687. remarks: thisdata.remarks,
  688. });
  689. }
  690. }
  691. this.setState({
  692. dataSourcerizhi: theArr,
  693. });
  694. }.bind(this),
  695. }).always(
  696. function () {
  697. this.setState({
  698. loading: false,
  699. });
  700. }.bind(this)
  701. );
  702. },
  703. // 拆分详细
  704. showRes(record) {
  705. this.setState({
  706. resVisible: true,
  707. resRecord: record,
  708. });
  709. },
  710. resCancel() {
  711. this.setState({
  712. resVisible: false,
  713. });
  714. },
  715. getOrderLog() {
  716. this.setState({
  717. rizhivisible: true,
  718. });
  719. this.rizhi();
  720. },
  721. closeOrderLog() {
  722. this.setState({
  723. rizhivisible: false,
  724. });
  725. },
  726. //节点列表
  727. jiedian(orderNos) {
  728. $.ajax({
  729. method: "get",
  730. dataType: "json",
  731. crossDomain: false,
  732. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  733. data: {
  734. orderNo: orderNos,
  735. },
  736. success: function (data) {
  737. let theArr = [];
  738. let thisData = [];
  739. if (data.error.length || data.data.list == "") {
  740. if (data.error && data.error.length) {
  741. message.warning(data.error[0].message);
  742. }
  743. } else {
  744. for (let i = 0; i < data.data.length; i++) {
  745. thisData = data.data[i];
  746. theArr.push({
  747. key: i,
  748. dunSubject: thisData.dunSubject
  749. ? thisData.dunSubject.toString()
  750. : "", //催款科目
  751. id: thisData.id, //节点Id
  752. money: thisData.money, //催款金额
  753. dunStatus: thisData.dunStatus, //催款状态
  754. });
  755. }
  756. this.setState({
  757. contactList: theArr,
  758. });
  759. }
  760. }.bind(this),
  761. }).always(
  762. function () {
  763. this.setState({
  764. loading: false,
  765. });
  766. }.bind(this)
  767. );
  768. },
  769. //查看催款节点
  770. jiedianNew(orderNos) {
  771. $.ajax({
  772. method: "get",
  773. dataType: "json",
  774. crossDomain: false,
  775. url:
  776. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  777. data: {
  778. orderNo: orderNos,
  779. },
  780. success: function (data) {
  781. if (data.error && data.error.length) {
  782. message.warning(data.error[0].message);
  783. } else {
  784. let theArr = [];
  785. let thisData = [];
  786. let arr = data.data || [];
  787. let totalCui = 0;
  788. for (let i = 0; i < arr.length; i++) {
  789. thisData = arr[i];
  790. totalCui += +thisData.money;
  791. theArr.push({
  792. key: i,
  793. dunSubject: thisData.dunSubject
  794. ? thisData.dunSubject.toString()
  795. : "", //催款科目
  796. id: thisData.id, //节点Id
  797. money: thisData.money, //催款金额
  798. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  799. commodityName: thisData.commodityName,
  800. projectType: thisData.projectType,
  801. dunTypeName: thisData.dunTypeName,
  802. status: thisData.status,
  803. waitDay: thisData.waitDay,
  804. effectiveCount: thisData.effectiveCount,
  805. startDate: thisData.startDate,
  806. dunType: thisData.dunType,
  807. appropriationRatio: thisData.appropriationRatio,
  808. customizeName: thisData.customizeName,
  809. customizeTimes: thisData.customizeTimes,
  810. tid: thisData.tid,
  811. });
  812. }
  813. if (!totalCui) {
  814. totalCui = 0;
  815. }
  816. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  817. this.setState({
  818. contactListNew: theArr,
  819. totalCui,
  820. });
  821. }
  822. }.bind(this),
  823. }).always(
  824. function () {
  825. this.setState({
  826. loading: false,
  827. });
  828. }.bind(this)
  829. );
  830. },
  831. //审核通过
  832. examOk() {
  833. if (this.state.remarks == "") {
  834. message.warning("请填写备注信息");
  835. return;
  836. }
  837. if (this.state.flag) return;
  838. this.setState({
  839. flag: true,
  840. loading: true,
  841. });
  842. $.ajax({
  843. method: "post",
  844. dataType: "json",
  845. crossDomain: false,
  846. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  847. data: {
  848. orderNo: this.state.orderNo,
  849. orderStatus: 2,
  850. reason: this.state.reason,
  851. },
  852. success: function (data) {
  853. if (data.error.length || data.data.list == "") {
  854. if (data.error && data.error.length) {
  855. message.warning(data.error[0].message);
  856. this.setState({
  857. flag: false,
  858. });
  859. }
  860. } else {
  861. message.success("该订单已通过审核~");
  862. this.setState({
  863. visible: false,
  864. flag: false,
  865. agreeVisible: false,
  866. });
  867. this.reset();
  868. }
  869. }.bind(this),
  870. }).always(
  871. function () {
  872. this.setState({
  873. loading: false,
  874. });
  875. }.bind(this)
  876. );
  877. },
  878. //通过发给外包
  879. outsourcing() {
  880. if (this.state.flag) return;
  881. this.setState({
  882. flag: true,
  883. loading: true,
  884. });
  885. $.ajax({
  886. method: "post",
  887. dataType: "json",
  888. crossDomain: false,
  889. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  890. data: {
  891. orderNo: this.state.orderNo,
  892. orderStatus: 2,
  893. outsource: 1,
  894. },
  895. success: function (data) {
  896. if (data.error.length || data.data.list == "") {
  897. if (data.error && data.error.length) {
  898. message.warning(data.error[0].message);
  899. this.setState({
  900. flag: false,
  901. });
  902. }
  903. } else {
  904. message.success("该订单已通过审核~");
  905. this.setState({
  906. visible: false,
  907. flag: false,
  908. });
  909. this.reset();
  910. }
  911. }.bind(this),
  912. }).always(
  913. function () {
  914. this.setState({
  915. loading: false,
  916. });
  917. }.bind(this)
  918. );
  919. },
  920. //审核不通过
  921. examOks() {
  922. this.setState({
  923. loading: true,
  924. });
  925. this.setState({
  926. aloading: true,
  927. });
  928. $.ajax({
  929. method: "post",
  930. dataType: "json",
  931. crossDomain: false,
  932. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  933. data: {
  934. orderNo: this.state.orderNo,
  935. orderStatus: 3,
  936. reason: this.state.reason,
  937. },
  938. success: function (data) {
  939. if (data.error.length || data.data.list == "") {
  940. if (data.error && data.error.length) {
  941. message.warning(data.error[0].message);
  942. this.setState({
  943. aloading: true,
  944. loading: false,
  945. });
  946. }
  947. } else {
  948. message.success("该订单已被拒绝~");
  949. this.setState({
  950. visible: false,
  951. aloading: false,
  952. noVisible: false,
  953. reason: "",
  954. loading: false,
  955. });
  956. this.reset();
  957. }
  958. }.bind(this),
  959. }).always(
  960. function () {
  961. this.setState({
  962. loading: false,
  963. });
  964. }.bind(this)
  965. );
  966. },
  967. //点击拒绝
  968. examNo() {
  969. this.setState({
  970. noVisible: true,
  971. });
  972. },
  973. callback(key) {
  974. let url = window.location.href.substring(7);
  975. this.setState({
  976. activeKey: key,
  977. });
  978. if (this.state.pictureUrl.length) {
  979. let picArr = [];
  980. this.state.pictureUrl.map(function (item) {
  981. if (
  982. item.response &&
  983. item.response.data &&
  984. item.response.data.length
  985. ) {
  986. picArr.push(item.response.data);
  987. }
  988. });
  989. }
  990. if (key === "2") {
  991. this.setState({
  992. loading: true,
  993. });
  994. $.ajax({
  995. method: "get",
  996. dataType: "json",
  997. crossDomain: false,
  998. url:
  999. globalConfig.context +
  1000. "/api/admin/outsourceOrg/orderOutsourceDtails",
  1001. data: {
  1002. orderNo: this.state.orderNo,
  1003. },
  1004. success: function (data) {
  1005. if (data.data) {
  1006. let thisdata = data.data;
  1007. this.setState({
  1008. id: thisdata.id,
  1009. createTimes: thisdata.createTimes,
  1010. auditTimes: thisdata.auditTimes,
  1011. remarks: thisdata.remarks,
  1012. attachmentUrl: thisdata.attachmentUrl
  1013. ? splitUrl(
  1014. thisdata.attachmentUrl,
  1015. ",",
  1016. globalConfig.avatarHost + "/upload",
  1017. url
  1018. )
  1019. : [],
  1020. fileUrl: thisdata.attachmentUrl
  1021. ? splitUrl(
  1022. thisdata.attachmentUrl,
  1023. ",",
  1024. globalConfig.avatarHost + "/upload",
  1025. url
  1026. )
  1027. : [],
  1028. pictureUrl: thisdata.pictureUrl
  1029. ? splitUrl(
  1030. thisdata.pictureUrl,
  1031. ",",
  1032. globalConfig.avatarHost + "/upload",
  1033. url
  1034. )
  1035. : [], //图片地址
  1036. amount: thisdata.amount,
  1037. companyName: thisdata.companyName,
  1038. outsourceRemarks: thisdata.outsourceRemarks,
  1039. unitNumber: thisdata.unitNumber,
  1040. unitPrice: thisdata.unitPrice,
  1041. });
  1042. }
  1043. }.bind(this),
  1044. }).always(
  1045. function () {
  1046. this.setState({
  1047. loading: false,
  1048. });
  1049. }.bind(this)
  1050. );
  1051. }
  1052. },
  1053. getUrl(url) {
  1054. let theorgCodeUrl = [];
  1055. if (url.length) {
  1056. let picArr = [];
  1057. url.map(function (item) {
  1058. if (
  1059. item.response &&
  1060. item.response.data &&
  1061. item.response.data.length
  1062. ) {
  1063. picArr.push(item.response.data);
  1064. }
  1065. });
  1066. theorgCodeUrl = picArr.join(",");
  1067. }
  1068. return theorgCodeUrl;
  1069. },
  1070. sureOut() {
  1071. this.setState({
  1072. loading: true,
  1073. });
  1074. if (!this.state.companyName) {
  1075. message.warning("公司名称不能为空");
  1076. return;
  1077. }
  1078. if (!this.state.unitPrice) {
  1079. message.warning("单价不能为空");
  1080. return;
  1081. }
  1082. if (moneyVerify(this.state.unitPrice)) {
  1083. return;
  1084. }
  1085. if (!this.state.unitNumber) {
  1086. message.warning("数量不能为空");
  1087. return;
  1088. }
  1089. if (!this.state.amount) {
  1090. message.warning("总金额不能为空");
  1091. return;
  1092. }
  1093. if (moneyVerify(this.state.amount)) {
  1094. return;
  1095. }
  1096. if (!this.state.outsourceRemarks) {
  1097. message.warning("备注不能为空");
  1098. return;
  1099. }
  1100. if (this.state.pictureUrl.length === 0) {
  1101. message.warning("合同扫描件不能为空");
  1102. return;
  1103. }
  1104. $.ajax({
  1105. method: "POST",
  1106. dataType: "json",
  1107. crossDomain: false,
  1108. url: globalConfig.context + "/api/admin/outsourceOrg/auditOutsource",
  1109. data: {
  1110. id: this.state.id,
  1111. orderNo: this.state.orderNo,
  1112. companyName: this.state.companyName,
  1113. amount: this.state.amount,
  1114. outsourceRemarks: this.state.outsourceRemarks,
  1115. unitNumber: this.state.unitNumber,
  1116. unitPrice: this.state.unitPrice,
  1117. attachmentUrl: this.getUrl(this.state.attachmentUrl).length
  1118. ? this.getUrl(this.state.attachmentUrl)
  1119. : "",
  1120. orderStatus: 2,
  1121. pictureUrl: this.getUrl(this.state.pictureUrl).length
  1122. ? this.getUrl(this.state.pictureUrl)
  1123. : "",
  1124. },
  1125. }).done(
  1126. function (data) {
  1127. this.setState({
  1128. loading: false,
  1129. });
  1130. if (!data.error.length) {
  1131. message.success("发起成功!");
  1132. this.outReset();
  1133. this.visitCancel();
  1134. } else {
  1135. message.warning(data.error[0].message);
  1136. }
  1137. }.bind(this)
  1138. );
  1139. },
  1140. //关闭输入理由框
  1141. noCancel() {
  1142. this.setState({
  1143. noVisible: false,
  1144. aloading: false,
  1145. reason: "",
  1146. });
  1147. },
  1148. //搜索
  1149. search() {
  1150. this.setState({
  1151. //signBillVisible:false
  1152. });
  1153. this.loadData();
  1154. },
  1155. //重置
  1156. reset() {
  1157. this.setState({
  1158. signBillVisible: false,
  1159. });
  1160. this.state.orderNo = "";
  1161. this.state.customerName = "";
  1162. this.state.releaseDate[0] = undefined;
  1163. this.state.releaseDate[1] = undefined;
  1164. this.state.approval = undefined;
  1165. this.state.approvalSearch = undefined;
  1166. this.state.amountStatus = undefined;
  1167. this.loadData(1);
  1168. },
  1169. outReset() {
  1170. this.setState({
  1171. companyName: "",
  1172. amount: "",
  1173. unitPrice: "",
  1174. unitNumber: "",
  1175. outsourceRemarks: "",
  1176. attachmentUrl: [],
  1177. pictureUrl: [],
  1178. });
  1179. },
  1180. resets() {
  1181. this.state.orderNo = "";
  1182. this.state.customerName = "";
  1183. this.state.releaseDate[0] = undefined;
  1184. this.state.releaseDate[1] = undefined;
  1185. },
  1186. getOrgCodeUrl(e) {
  1187. this.setState({ pictureUrl: e });
  1188. },
  1189. //关闭详情
  1190. visitCancel() {
  1191. this.setState(
  1192. {
  1193. visible: false,
  1194. },
  1195. () => {
  1196. this.setState({
  1197. activeKey: "1",
  1198. });
  1199. }
  1200. );
  1201. this.resets();
  1202. this.loadData();
  1203. },
  1204. visitOk() {
  1205. this.setState({
  1206. visible: false,
  1207. });
  1208. this.resets();
  1209. },
  1210. showDeleteConfirm(fn) {
  1211. confirm({
  1212. title: <p style={{ fontSize: 16, fontWeight: 900 }}>注意</p>,
  1213. content: (
  1214. <p style={{ fontWeight: 900, color: "red" }}>
  1215. 当前订单为外包单,您确定修改为普通订单?
  1216. </p>
  1217. ),
  1218. okText: "确定",
  1219. okType: "danger",
  1220. cancelText: "取消",
  1221. onOk() {
  1222. fn();
  1223. },
  1224. onCancel() {},
  1225. });
  1226. },
  1227. downImg() {
  1228. let num = 0;
  1229. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1230. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1231. num = i;
  1232. }
  1233. }
  1234. if (num == this.state.orgCodeUrl.length - 1) {
  1235. return message.warning("已经是最后一张了哦");
  1236. }
  1237. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  1238. this.setState({
  1239. previewImage: this.state.previewImage,
  1240. rotateDeg: 0,
  1241. });
  1242. },
  1243. upImg() {
  1244. let num = 0;
  1245. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1246. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1247. num = i;
  1248. }
  1249. }
  1250. if (num == 0) {
  1251. return message.warning("已经是第一张了哦");
  1252. }
  1253. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  1254. this.setState({
  1255. previewImage: this.state.previewImage,
  1256. rotateDeg: 0,
  1257. });
  1258. },
  1259. rotate() {
  1260. let rotateDeg = this.state.rotateDeg + 90;
  1261. this.setState({
  1262. rotateDeg,
  1263. });
  1264. },
  1265. downImgs() {
  1266. let num = 0;
  1267. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1268. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1269. num = i;
  1270. }
  1271. }
  1272. if (num == this.state.replenishUrl.length - 1) {
  1273. return message.warning("已经是最后一张了哦");
  1274. }
  1275. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  1276. this.setState({
  1277. previewImage: this.state.previewImage,
  1278. rotateDeg: 0,
  1279. });
  1280. },
  1281. upImgs() {
  1282. let num = 0;
  1283. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1284. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1285. num = i;
  1286. }
  1287. }
  1288. if (num == 0) {
  1289. return message.warning("已经是第一张了哦");
  1290. }
  1291. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  1292. this.setState({
  1293. previewImage: this.state.previewImage,
  1294. rotateDeg: 0,
  1295. });
  1296. },
  1297. rotates() {
  1298. let rotateDeg = this.state.rotateDeg + 90;
  1299. this.setState({
  1300. rotateDeg,
  1301. });
  1302. },
  1303. render() {
  1304. const formItemLayout = {
  1305. labelCol: { span: 8 },
  1306. wrapperCol: { span: 14 },
  1307. };
  1308. const FormItem = Form.Item;
  1309. const { TabPane } = Tabs;
  1310. const { TextArea } = Input;
  1311. const { RangePicker } = DatePicker;
  1312. const cuiDataList = this.state.contactList || [];
  1313. return (
  1314. <div className="user-content">
  1315. {this.state.resVisible ? (
  1316. <ResolutionDetail
  1317. cancel={this.resCancel}
  1318. detail={this.state.resRecord}
  1319. visible={this.state.resVisible}
  1320. id={this.state.resRecord.orderNo}
  1321. />
  1322. ) : (
  1323. ""
  1324. )}
  1325. <ShowModalDiv ShowModal={this.state.showModal} />
  1326. <div className="content-title">
  1327. <span>订单审核</span>
  1328. </div>
  1329. <Tabs defaultActiveKey="1" onChange={this.callback} className="test">
  1330. <TabPane tab="搜索" key="1">
  1331. <div className="user-search">
  1332. <Input
  1333. placeholder="客户名称"
  1334. style={{
  1335. width: "150px",
  1336. marginBottom: "10px",
  1337. marginLeft: 10,
  1338. }}
  1339. value={this.state.customerName}
  1340. onChange={(e) => {
  1341. this.setState({ customerName: e.target.value });
  1342. }}
  1343. />
  1344. <Input
  1345. placeholder="订单编号"
  1346. style={{ width: "150px" }}
  1347. value={this.state.orderNoSearch}
  1348. onChange={(e) => {
  1349. this.setState({ orderNoSearch: e.target.value });
  1350. }}
  1351. />
  1352. <Select
  1353. style={{ width: 120 }}
  1354. placeholder="特批状态"
  1355. value={this.state.approvalSearch}
  1356. onChange={(e) => {
  1357. this.setState({
  1358. approvalSearch: e,
  1359. });
  1360. }}
  1361. >
  1362. <Option value="0">非特批</Option>
  1363. <Option value="1">特批</Option>
  1364. </Select>
  1365. <Select
  1366. style={{ width: 120 }}
  1367. placeholder="签单金额"
  1368. value={this.state.amountStatus}
  1369. onChange={(e) => {
  1370. this.setState({
  1371. amountStatus: e,
  1372. });
  1373. }}
  1374. >
  1375. <Option value="0">10万元以下</Option>
  1376. <Option value="1">10~20万元</Option>
  1377. <Option value="2">20~30万元</Option>
  1378. <Option value="3">30~40万元</Option>
  1379. <Option value="4">40万元以上</Option>
  1380. </Select>
  1381. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  1382. <RangePicker
  1383. value={[
  1384. this.state.releaseDate[0]
  1385. ? moment(this.state.releaseDate[0])
  1386. : null,
  1387. this.state.releaseDate[1]
  1388. ? moment(this.state.releaseDate[1])
  1389. : null,
  1390. ]}
  1391. onChange={(data, dataString) => {
  1392. this.setState({ releaseDate: dataString });
  1393. }}
  1394. />
  1395. <Button
  1396. type="primary"
  1397. onClick={this.search}
  1398. style={{ marginLeft: "10px" }}
  1399. >
  1400. 搜索
  1401. </Button>
  1402. <Button onClick={this.reset}>重置</Button>
  1403. </div>
  1404. </TabPane>
  1405. </Tabs>
  1406. <div className="patent-table">
  1407. <Spin spinning={this.state.loading}>
  1408. <Table
  1409. columns={this.state.columns}
  1410. dataSource={this.state.dataSource}
  1411. pagination={this.state.pagination}
  1412. onRowClick={this.tableRowClick}
  1413. bordered
  1414. size="small"
  1415. />
  1416. </Spin>
  1417. <Modal
  1418. className="customeDetails"
  1419. footer=""
  1420. width="900px"
  1421. visible={this.state.visible}
  1422. onOk={this.visitOk}
  1423. onCancel={this.visitCancel}
  1424. >
  1425. <Tabs activeKey={this.state.activeKey} onChange={this.callback}>
  1426. <TabPane tab="订单详情" key="1">
  1427. <Form
  1428. layout="horizontal"
  1429. onSubmit={this.handleSubmit}
  1430. id="demand-form"
  1431. style={{ paddingBottom: "40px" }}
  1432. >
  1433. <Spin spinning={this.state.loading}>
  1434. <div className="clearfix">
  1435. <FormItem
  1436. className="half-item"
  1437. {...formItemLayout}
  1438. label="订单编号"
  1439. >
  1440. <span>{this.state.orderNo}</span>
  1441. </FormItem>
  1442. <FormItem
  1443. className="half-item"
  1444. {...formItemLayout}
  1445. label="合同编号"
  1446. >
  1447. <span>{this.state.contractNo}</span>
  1448. </FormItem>
  1449. <FormItem
  1450. className="half-item"
  1451. {...formItemLayout}
  1452. label="客户名称"
  1453. >
  1454. <span>{this.state.userName}</span>
  1455. </FormItem>
  1456. <FormItem
  1457. className="half-item"
  1458. {...formItemLayout}
  1459. label="合同签订时间"
  1460. >
  1461. <span>{this.state.signDate}</span>
  1462. </FormItem>
  1463. <FormItem
  1464. className="half-item"
  1465. {...formItemLayout}
  1466. label="流程状态"
  1467. >
  1468. <span>
  1469. {getProcessStatus(this.state.processStatus)}
  1470. </span>
  1471. </FormItem>
  1472. <FormItem
  1473. className="half-item"
  1474. {...formItemLayout}
  1475. label="结算状态"
  1476. >
  1477. <span>
  1478. {getLiquidationStatus(this.state.liquidationStatus)}
  1479. </span>
  1480. </FormItem>
  1481. <FormItem
  1482. className="half-item"
  1483. {...formItemLayout}
  1484. label="企业联系人"
  1485. >
  1486. <span>{this.state.contacts}</span>
  1487. </FormItem>
  1488. <FormItem
  1489. className="half-item"
  1490. {...formItemLayout}
  1491. label="联系人电话"
  1492. >
  1493. <span>{this.state.contactMobile}</span>
  1494. </FormItem>
  1495. <FormItem
  1496. className="half-item"
  1497. {...formItemLayout}
  1498. label="企业法人"
  1499. >
  1500. <span>{this.state.legalPerson}</span>
  1501. </FormItem>
  1502. <FormItem
  1503. className="half-item"
  1504. {...formItemLayout}
  1505. label="法人电话"
  1506. >
  1507. <span>{this.state.legalPersonTel}</span>
  1508. </FormItem>
  1509. <FormItem
  1510. className="half-item"
  1511. {...formItemLayout}
  1512. label="签单金额(万元)"
  1513. >
  1514. <span>{this.state.totalAmount}</span>
  1515. </FormItem>
  1516. <FormItem
  1517. className="half-item"
  1518. {...formItemLayout}
  1519. label="首付金额(万元)"
  1520. >
  1521. <span>{this.state.firstAmount}</span>
  1522. </FormItem>
  1523. <FormItem
  1524. className="half-item"
  1525. {...formItemLayout}
  1526. label="特批立项"
  1527. >
  1528. <span>{getApprovedState(this.state.approval)}</span>
  1529. </FormItem>
  1530. <FormItem
  1531. className="half-item"
  1532. {...formItemLayout}
  1533. label="已收款项(万元)"
  1534. >
  1535. <span>{this.state.settlementAmount}</span>
  1536. </FormItem>
  1537. <FormItem
  1538. className="half-item"
  1539. {...formItemLayout}
  1540. label="订单部门"
  1541. >
  1542. <span>{this.state.depName}</span>
  1543. </FormItem>
  1544. <FormItem
  1545. className="half-item"
  1546. {...formItemLayout}
  1547. label="是否外包"
  1548. >
  1549. {this.state.outsource}
  1550. </FormItem>
  1551. <div className="clearfix">
  1552. <FormItem
  1553. labelCol={{ span: 4 }}
  1554. wrapperCol={{ span: 16 }}
  1555. label="订单留言"
  1556. >
  1557. <p style={{ width: 500, wordWrap: "break-word" }}>
  1558. {this.state.orderRemarks}
  1559. </p>
  1560. </FormItem>
  1561. </div>
  1562. <div className="clearfix">
  1563. <div>
  1564. <FormItem
  1565. labelCol={{ span: 4 }}
  1566. wrapperCol={{ span: 18 }}
  1567. label="合同扫描件"
  1568. >
  1569. {/*<Upload*/}
  1570. {/* className="demandDetailShow-upload"*/}
  1571. {/* listType="picture-card"*/}
  1572. {/* fileList={this.state.orgCodeUrl}*/}
  1573. {/* onPreview={(file) => {*/}
  1574. {/* this.setState({*/}
  1575. {/* previewImage: file.url || file.thumbUrl,*/}
  1576. {/* previewVisible: true,*/}
  1577. {/* });*/}
  1578. {/* }}*/}
  1579. {/*/>*/}
  1580. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  1581. <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'}/>
  1582. </div>
  1583. <Modal
  1584. maskClosable={false}
  1585. footer={null}
  1586. width={"50%"}
  1587. visible={this.state.previewVisible}
  1588. onCancel={() => {
  1589. this.setState({
  1590. previewVisible: false,
  1591. rotateDeg: 0,
  1592. });
  1593. }}
  1594. >
  1595. <img
  1596. alt=""
  1597. style={{
  1598. width: "100%",
  1599. transform: `rotate(${this.state.rotateDeg}deg)`,
  1600. }}
  1601. src={this.state.previewImage || ""}
  1602. />
  1603. <Button
  1604. onClick={this.rotate}
  1605. style={{
  1606. position: "relative",
  1607. left: "50%",
  1608. transform: "translateX(-50%)",
  1609. }}
  1610. >
  1611. 旋转
  1612. </Button>
  1613. <Button
  1614. onClick={this.upImg}
  1615. style={{
  1616. position: "absolute",
  1617. left: -81,
  1618. top: "50%",
  1619. transform: "translateY(-50%)",
  1620. }}
  1621. >
  1622. 上一张
  1623. </Button>
  1624. <Button
  1625. onClick={this.downImg}
  1626. style={{
  1627. position: "absolute",
  1628. right: -81,
  1629. top: "50%",
  1630. transform: "translateY(-50%)",
  1631. }}
  1632. >
  1633. 下一张
  1634. </Button>
  1635. </Modal>
  1636. <Button
  1637. style={{
  1638. float: "right",
  1639. marginRight: "140px",
  1640. marginTop: "20px",
  1641. }}
  1642. onClick={this.getOrderLog}
  1643. >
  1644. 查看订单日志
  1645. </Button>
  1646. </FormItem>
  1647. <FormItem
  1648. labelCol={{ span: 4 }}
  1649. wrapperCol={{ span: 18 }}
  1650. label="补充协议"
  1651. >
  1652. {/*<Upload*/}
  1653. {/* className="demandDetailShow-upload"*/}
  1654. {/* listType="picture-card"*/}
  1655. {/* fileList={this.state.replenishUrl}*/}
  1656. {/* onPreview={(file) => {*/}
  1657. {/* this.setState({*/}
  1658. {/* previewImage: file.url || file.thumbUrl,*/}
  1659. {/* previewVisibles: true,*/}
  1660. {/* });*/}
  1661. {/* }}*/}
  1662. {/*/>*/}
  1663. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  1664. <ImgList fileList={this.state.replenishUrl} ItemWidth={'96px'}/>
  1665. </div>
  1666. <Modal
  1667. maskClosable={false}
  1668. footer={null}
  1669. width={"50%"}
  1670. visible={this.state.previewVisibles}
  1671. onCancel={() => {
  1672. this.setState({
  1673. previewVisibles: false,
  1674. rotateDeg: 0,
  1675. });
  1676. }}
  1677. >
  1678. <img
  1679. alt=""
  1680. style={{
  1681. width: "100%",
  1682. transform: `rotate(${this.state.rotateDeg}deg)`,
  1683. }}
  1684. src={this.state.previewImage || ""}
  1685. />
  1686. <Button
  1687. onClick={this.rotate}
  1688. style={{
  1689. position: "relative",
  1690. left: "50%",
  1691. transform: "translateX(-50%)",
  1692. }}
  1693. >
  1694. 旋转
  1695. </Button>
  1696. <Button
  1697. onClick={this.upImgs}
  1698. style={{
  1699. position: "absolute",
  1700. left: -81,
  1701. top: "50%",
  1702. transform: "translateY(-50%)",
  1703. }}
  1704. >
  1705. 上一张
  1706. </Button>
  1707. <Button
  1708. onClick={this.downImgs}
  1709. style={{
  1710. position: "absolute",
  1711. right: -81,
  1712. top: "50%",
  1713. transform: "translateY(-50%)",
  1714. }}
  1715. >
  1716. 下一张
  1717. </Button>
  1718. </Modal>
  1719. </FormItem>
  1720. </div>
  1721. </div>
  1722. <div className="clearfix">
  1723. <FormItem
  1724. className="half-item"
  1725. {...formItemLayout}
  1726. label="订单负责人"
  1727. >
  1728. <span>{this.state.salesmanName}</span>
  1729. </FormItem>
  1730. <FormItem
  1731. className="half-item"
  1732. {...formItemLayout}
  1733. label="订单负责人电话"
  1734. >
  1735. <span>{this.state.salesmanMobile}</span>
  1736. </FormItem>
  1737. </div>
  1738. <div className="clearfix">
  1739. <FormItem
  1740. className="half-item"
  1741. {...formItemLayout}
  1742. label="当前财务负责人"
  1743. >
  1744. <span>{this.state.nowFinance}</span>
  1745. </FormItem>
  1746. <FormItem
  1747. className="half-item"
  1748. {...formItemLayout}
  1749. label="当前财务负责人电话"
  1750. >
  1751. <span>{this.state.nowFinanceMobile}</span>
  1752. </FormItem>
  1753. </div>
  1754. <div className="clearfix">
  1755. <FormItem
  1756. className="half-item"
  1757. {...formItemLayout}
  1758. style={{ opacity: ".5" }}
  1759. label="原订单负责人"
  1760. >
  1761. <span>{this.state.oldSalesmanName}</span>
  1762. </FormItem>
  1763. <FormItem
  1764. className="half-item"
  1765. {...formItemLayout}
  1766. style={{ opacity: ".5" }}
  1767. label="原订单负责人电话"
  1768. >
  1769. <span>{this.state.oldSalesmanMobile}</span>
  1770. </FormItem>
  1771. </div>
  1772. <div className="clearfix">
  1773. <FormItem
  1774. className="half-item"
  1775. style={{ opacity: ".5" }}
  1776. {...formItemLayout}
  1777. label="实际财务操作人"
  1778. >
  1779. <span>{this.state.financeName}</span>
  1780. </FormItem>
  1781. <FormItem
  1782. className="half-item"
  1783. {...formItemLayout}
  1784. style={{ opacity: ".5" }}
  1785. label="实际财务操作人电话"
  1786. >
  1787. <span>{this.state.financeMobile}</span>
  1788. </FormItem>
  1789. </div>
  1790. <div>
  1791. <span
  1792. style={{ marginLeft: "50px", fontSize: "20px" }}
  1793. >
  1794. 项目业务
  1795. </span>
  1796. {this.state.processStatus == 0 ? (
  1797. <Button
  1798. type="primary"
  1799. onClick={this.addDetailed}
  1800. style={{
  1801. float: "right",
  1802. marginRight: "50px",
  1803. marginBottom: "15px",
  1804. }}
  1805. >
  1806. 添加项目明细
  1807. </Button>
  1808. ) : (
  1809. ""
  1810. )}
  1811. </div>
  1812. <div className="patent-table">
  1813. <Spin spinning={this.state.loading}>
  1814. <Table
  1815. columns={this.state.columnsX}
  1816. dataSource={this.state.dataSourceX}
  1817. pagination={this.state.paginations}
  1818. onRowClick={this.tableRowClickX}
  1819. bordered
  1820. size="small"
  1821. />
  1822. </Spin>
  1823. </div>
  1824. <div>
  1825. <span
  1826. style={{ marginLeft: "50px", fontSize: "20px" }}
  1827. >
  1828. 催款节点
  1829. </span>
  1830. <span
  1831. style={{
  1832. display: cuiDataList.length
  1833. ? "none"
  1834. : "inline-block",
  1835. marginLeft: 10,
  1836. color: "red",
  1837. }}
  1838. >
  1839. 金额总计(万元): {this.state.totalCui}
  1840. </span>
  1841. {this.state.processStatus == 0 ? (
  1842. <Button
  1843. type="primary"
  1844. onClick={this.addcontact}
  1845. style={{
  1846. float: "right",
  1847. marginRight: "50px",
  1848. marginBottom: "15px",
  1849. }}
  1850. >
  1851. 添加催款节点
  1852. </Button>
  1853. ) : (
  1854. ""
  1855. )}
  1856. </div>
  1857. <div className="clearfix">
  1858. <Spin spinning={this.state.loading}>
  1859. <Form layout="horizontal" id="demand-form">
  1860. <Table
  1861. pagination={false}
  1862. bordered
  1863. size="small"
  1864. columns={
  1865. cuiDataList.length
  1866. ? this.state.ContactsLists
  1867. : this.state.ContactsListsNew
  1868. }
  1869. dataSource={
  1870. cuiDataList.length
  1871. ? this.state.contactList
  1872. : this.state.contactListNew
  1873. }
  1874. />
  1875. <Col
  1876. span={24}
  1877. offset={9}
  1878. style={{ marginTop: "15px" }}
  1879. ></Col>
  1880. </Form>
  1881. </Spin>
  1882. </div>
  1883. <div className="addSave" style={{ marginTop: "15px" }}>
  1884. <Button
  1885. type="primary"
  1886. // onClick={this.examOk}
  1887. onClick={() => {
  1888. // if (this.state.outsource == "是") {
  1889. // this.showDeleteConfirm(this.examOk);
  1890. // } else {
  1891. // this.examOk();
  1892. // }
  1893. this.setState({
  1894. agreeVisible: true,
  1895. reason: "",
  1896. });
  1897. }}
  1898. style={{ marginLeft: "200px" }}
  1899. htmlType="submit"
  1900. >
  1901. 通过
  1902. </Button>
  1903. <Button
  1904. type="primary"
  1905. onClick={this.examNo}
  1906. style={{ marginLeft: "50px" }}
  1907. htmlType="submit"
  1908. >
  1909. 驳回
  1910. </Button>
  1911. <Button
  1912. type="ghost"
  1913. onClick={this.visitCancel}
  1914. style={{ marginLeft: "50px" }}
  1915. >
  1916. 取消
  1917. </Button>
  1918. {/*<Button className='warn-button' type="primary" onClick={this.outsourcing} style={{marginLeft:"50px"}}>通过不走总部</Button>
  1919. <p className='hint'>提示:高于总部价格,费用个人承担!</p>*/}
  1920. </div>
  1921. </div>
  1922. </Spin>
  1923. </Form>
  1924. </TabPane>
  1925. {/* <TabPane tab="外包(不走总部)" key="2">
  1926. <Spin spinning={this.state.loading}>
  1927. <div className="clearfix" style={{ marginTop: 10 }}>
  1928. <FormItem
  1929. className="half-item"
  1930. {...formItemLayout}
  1931. label={
  1932. <span>
  1933. <strong style={{ color: "#f00" }}>*</strong>外包公司
  1934. </span>
  1935. }
  1936. >
  1937. <Input
  1938. value={this.state.companyName}
  1939. onChange={(e) => {
  1940. this.setState({
  1941. companyName: e.target.value,
  1942. });
  1943. }}
  1944. placeholder="请填写外包公司名称"
  1945. />
  1946. </FormItem>
  1947. <span className="tip">如多个公司,请用间隔</span>
  1948. </div>
  1949. <div className="clearfix">
  1950. <FormItem
  1951. className="half-item"
  1952. {...formItemLayout}
  1953. label={
  1954. <span>
  1955. <strong style={{ color: "#f00" }}>*</strong>
  1956. 单价(万元)
  1957. </span>
  1958. }
  1959. >
  1960. <Input
  1961. value={this.state.unitPrice}
  1962. onChange={(e) => {
  1963. this.setState({
  1964. unitPrice: e.target.value,
  1965. });
  1966. }}
  1967. placeholder="请填写单价"
  1968. />
  1969. </FormItem>
  1970. </div>
  1971. <div className="clearfix">
  1972. <FormItem
  1973. className="half-item"
  1974. {...formItemLayout}
  1975. label={
  1976. <span>
  1977. <strong style={{ color: "#f00" }}>*</strong>数量(个)
  1978. </span>
  1979. }
  1980. >
  1981. <Input
  1982. value={this.state.unitNumber}
  1983. onChange={(e) => {
  1984. this.setState({
  1985. unitNumber: e.target.value,
  1986. });
  1987. }}
  1988. placeholder="请填写数量"
  1989. />
  1990. </FormItem>
  1991. </div>
  1992. <div className="clearfix">
  1993. <FormItem
  1994. className="half-item"
  1995. {...formItemLayout}
  1996. label={
  1997. <span>
  1998. <strong style={{ color: "#f00" }}>*</strong>
  1999. 总金额(万元)
  2000. </span>
  2001. }
  2002. >
  2003. <Input
  2004. value={this.state.amount}
  2005. onChange={(e) => {
  2006. this.setState({
  2007. amount: e.target.value,
  2008. });
  2009. }}
  2010. placeholder="请填写本次外包公司的价格"
  2011. />
  2012. </FormItem>
  2013. </div>
  2014. <div className="clearfix">
  2015. <FormItem
  2016. className="half-item"
  2017. style={{ height: "auto" }}
  2018. {...formItemLayout}
  2019. label={
  2020. <span>
  2021. <strong style={{ color: "#f00" }}>*</strong>备注
  2022. </span>
  2023. }
  2024. >
  2025. <TextArea
  2026. rows={4}
  2027. value={this.state.outsourceRemarks}
  2028. onChange={(e) => {
  2029. this.setState({
  2030. outsourceRemarks: e.target.value,
  2031. });
  2032. }}
  2033. placeholder="请输入备注"
  2034. />
  2035. </FormItem>
  2036. </div>
  2037. <p
  2038. className="tip"
  2039. style={{
  2040. paddingBottom: "12px",
  2041. width: "240px",
  2042. marginLeft: "145px",
  2043. }}
  2044. >
  2045. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  2046. </p>
  2047. <div className="clearfix">
  2048. <FormItem
  2049. labelCol={{ span: 4 }}
  2050. wrapperCol={{ span: 18 }}
  2051. label={
  2052. <span>
  2053. <strong style={{ color: "#f00" }}>*</strong>
  2054. 合同/协议扫描件
  2055. <span style={{ color: "#f00" }}>(外包合同)</span>
  2056. </span>
  2057. }
  2058. >
  2059. <PicturesWall
  2060. fileList={this.getOrgCodeUrl}
  2061. pictureUrl={this.state.pictureUrl}
  2062. />
  2063. <p>请上传与外包公司签订的合同协议</p>
  2064. <p>图片建议:要清晰。</p>
  2065. </FormItem>
  2066. </div>
  2067. <div className="clearfix">
  2068. <div
  2069. style={{ display: "inline-black", textAlign: "center" }}
  2070. >
  2071. <Button type="primary" onClick={this.sureOut}>
  2072. 确认发起外包,不通过总部
  2073. </Button>
  2074. <p className="tip">提示:高于总部价格,费用个人承担</p>
  2075. </div>
  2076. </div>
  2077. </Spin>
  2078. </TabPane> */}
  2079. </Tabs>
  2080. </Modal>
  2081. <Modal
  2082. maskClosable={false}
  2083. visible={this.state.addnextVisible}
  2084. onOk={this.nextCancel}
  2085. onCancel={this.nextCancel}
  2086. confirmLoading={this.state.confirmLoading}
  2087. width="800px"
  2088. title={"项目任务详情"}
  2089. footer=""
  2090. className="admin-desc-content"
  2091. >
  2092. <Form layout="horizontal" id="demand-form">
  2093. <Spin spinning={this.state.loading}>
  2094. <div className="clearfix">
  2095. <FormItem
  2096. className="half-item"
  2097. {...formItemLayout}
  2098. label="项目名称"
  2099. >
  2100. <span>{this.state.commodityName}</span>
  2101. </FormItem>
  2102. <FormItem
  2103. className="half-item"
  2104. {...formItemLayout}
  2105. label="项目数量"
  2106. >
  2107. <span>{this.state.commodityQuantity}</span>
  2108. </FormItem>
  2109. <FormItem
  2110. className="half-item"
  2111. {...formItemLayout}
  2112. label="官费"
  2113. style={{ display: this.state.displayFees }}
  2114. >
  2115. <span>
  2116. {this.state.officialCost == 0 ? "无官费" : "有官费"}
  2117. </span>
  2118. </FormItem>
  2119. <FormItem
  2120. className="half-item"
  2121. {...formItemLayout}
  2122. label="费减"
  2123. style={{ display: this.state.displayFees }}
  2124. >
  2125. <span>
  2126. {this.state.costReduction == 0 ? "无费减" : "有费减"}
  2127. </span>
  2128. </FormItem>
  2129. <FormItem
  2130. className="half-item"
  2131. {...formItemLayout}
  2132. label="金额(万元)"
  2133. >
  2134. <span>{this.state.commodityPrice}</span>
  2135. </FormItem>
  2136. <FormItem
  2137. className="half-item"
  2138. {...formItemLayout}
  2139. label="主要项目"
  2140. >
  2141. <span>{getboutique(this.state.main)}</span>
  2142. </FormItem>
  2143. <div className="clearfix">
  2144. <FormItem
  2145. labelCol={{ span: 4 }}
  2146. wrapperCol={{ span: 16 }}
  2147. label="服务说明"
  2148. >
  2149. <span>{this.state.taskComment}</span>
  2150. </FormItem>
  2151. </div>
  2152. </div>
  2153. </Spin>
  2154. </Form>
  2155. </Modal>
  2156. <Modal
  2157. maskClosable={false}
  2158. visible={this.state.noVisible}
  2159. onOk={this.handleOk}
  2160. onCancel={this.noCancel}
  2161. width="400px"
  2162. title={"拒绝理由"}
  2163. footer=""
  2164. className="admin-desc-content"
  2165. confirmLoading={this.state.confirmLoading}
  2166. >
  2167. <Form layout="horizontal" id="demand-form">
  2168. <Spin spinning={this.state.loading}>
  2169. <div className="clearfix">
  2170. <FormItem
  2171. labelCol={{ span: 4 }}
  2172. wrapperCol={{ span: 16 }}
  2173. label="拒绝理由"
  2174. >
  2175. <Input
  2176. type="textarea"
  2177. placeholder="请输入拒绝理由"
  2178. rows={4}
  2179. value={this.state.reason}
  2180. onChange={(e) => {
  2181. this.setState({ reason: e.target.value });
  2182. }}
  2183. />
  2184. </FormItem>
  2185. </div>
  2186. <div className="clearfix">
  2187. <Button
  2188. className="cancel"
  2189. type="primary"
  2190. onClick={this.examOks}
  2191. style={{ marginLeft: "50px" }}
  2192. htmlType="submit"
  2193. loading={this.state.aloading}
  2194. >
  2195. 确定
  2196. </Button>
  2197. <Button
  2198. className="cancel"
  2199. type="ghost"
  2200. onClick={this.noCancel}
  2201. style={{ marginLeft: "50px" }}
  2202. >
  2203. 取消
  2204. </Button>
  2205. </div>
  2206. </Spin>
  2207. </Form>
  2208. </Modal>
  2209. <Modal
  2210. maskClosable={false}
  2211. visible={this.state.agreeVisible}
  2212. onOk={(e) => {
  2213. this.setState({
  2214. agreeVisible: false,
  2215. });
  2216. }}
  2217. onCancel={(e) => {
  2218. this.setState({
  2219. agreeVisible: false,
  2220. });
  2221. }}
  2222. width="400px"
  2223. title={"同意备注"}
  2224. footer=""
  2225. className="admin-desc-content"
  2226. confirmLoading={this.state.confirmLoading}
  2227. >
  2228. <Form layout="horizontal" id="demand-form">
  2229. <Spin spinning={this.state.loading}>
  2230. <div className="clearfix">
  2231. <FormItem
  2232. labelCol={{ span: 4 }}
  2233. wrapperCol={{ span: 16 }}
  2234. label="同意理由"
  2235. >
  2236. <Input
  2237. type="textarea"
  2238. placeholder="请输入同意理由"
  2239. rows={4}
  2240. value={this.state.reason}
  2241. onChange={(e) => {
  2242. this.setState({ reason: e.target.value });
  2243. }}
  2244. />
  2245. </FormItem>
  2246. </div>
  2247. <div className="clearfix">
  2248. <Button
  2249. className="cancel"
  2250. type="primary"
  2251. onClick={(e) => {
  2252. if (this.state.outsource == "是") {
  2253. this.showDeleteConfirm(this.examOk);
  2254. } else {
  2255. this.examOk();
  2256. }
  2257. }}
  2258. style={{ marginLeft: "50px" }}
  2259. htmlType="submit"
  2260. loading={this.state.aloading}
  2261. >
  2262. 确定
  2263. </Button>
  2264. <Button
  2265. className="cancel"
  2266. type="ghost"
  2267. onClick={(e) => {
  2268. this.setState({
  2269. agreeVisible: false,
  2270. });
  2271. }}
  2272. style={{ marginLeft: "50px" }}
  2273. >
  2274. 取消
  2275. </Button>
  2276. </div>
  2277. </Spin>
  2278. </Form>
  2279. </Modal>
  2280. {/* <Modal
  2281. visible={this.state.rizhivisible}
  2282. className="admin-desc-content"
  2283. width="800px"
  2284. maskClosable={false}
  2285. title="订单日志"
  2286. footer={null}
  2287. onCancel={this.closeOrderLog}
  2288. >
  2289. <div className="patent-table">
  2290. <Spin spinning={this.state.loading}>
  2291. <Table
  2292. columns={this.state.columnsrizhi}
  2293. dataSource={this.state.dataSourcerizhi}
  2294. pagination={false}
  2295. />
  2296. </Spin>
  2297. </div>
  2298. </Modal> */}
  2299. <OrderRiZi
  2300. dataSourcerizhi={this.state.dataSourcerizhi}
  2301. closeOrderLog={this.closeOrderLog}
  2302. visible={this.state.rizhivisible}
  2303. loading={this.state.loading}
  2304. />
  2305. </div>
  2306. </div>
  2307. );
  2308. },
  2309. })
  2310. );
  2311. export default IntentionCustomer;