examine.jsx 78 KB

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