examine.jsx 80 KB

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