outsourcingList.jsx 79 KB

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