outsourcingList.jsx 81 KB

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