examine.jsx 80 KB

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