examine.jsx 79 KB

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