examine.jsx 77 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293
  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. Tooltip,
  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. import ProjectDetailsReadOnly from "../../../common/projectDetailsReadOnly";
  41. import OrderItemStatus from "../../../common/orderItemStatus";
  42. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  43. const confirm = Modal.confirm;
  44. const { Option } = Select;
  45. //图片组件
  46. const PicturesWall = React.createClass({
  47. getInitialState() {
  48. return {
  49. previewVisible: false,
  50. previewImage: "",
  51. declarationBatch: 1,
  52. dataInfor: {},
  53. fileList: this.props.pictureUrl
  54. };
  55. },
  56. handleCancel() {
  57. this.setState({
  58. previewVisible: false
  59. });
  60. },
  61. handlePreview(file) {
  62. this.setState({
  63. previewImage: file.url || file.thumbUrl,
  64. previewVisible: true
  65. });
  66. },
  67. handleChange(info) {
  68. let fileList = info.fileList;
  69. this.setState({
  70. fileList
  71. });
  72. this.props.fileList(fileList);
  73. },
  74. componentWillReceiveProps(nextProps) {
  75. this.state.fileList = nextProps.pictureUrl;
  76. this.state.pojectApplicationUrl = undefined;
  77. },
  78. render() {
  79. const { previewVisible, previewImage, fileList } = this.state;
  80. const uploadButton = (
  81. <div>
  82. <Icon type="plus" />
  83. <div className="ant-upload-text">点击上传</div>
  84. </div>
  85. );
  86. return (
  87. <div style={{ display: "inline-block" }}>
  88. <Upload
  89. action={
  90. globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"
  91. }
  92. data={{ sign: "order_outsource" }}
  93. listType="picture-card"
  94. fileList={fileList}
  95. multiple
  96. onPreview={this.handlePreview}
  97. onChange={this.handleChange}
  98. >
  99. {uploadButton}
  100. </Upload>
  101. {previewVisible ? <Modal
  102. maskClosable={false}
  103. width={"70px"}
  104. visible={previewVisible}
  105. footer={null}
  106. onCancel={this.handleCancel}
  107. >
  108. <img alt="example" style={{ width: "100%" }} src={previewImage} />
  109. </Modal> : <div/>}
  110. </div>
  111. );
  112. }
  113. });
  114. const IntentionCustomer = Form.create()(
  115. React.createClass({
  116. loadData(pageNo) {
  117. this.setState({
  118. visitModul: false,
  119. loading: true,
  120. ispage: pageNo,
  121. modalVisible: false,
  122. });
  123. $.ajax({
  124. method: "get",
  125. dataType: "json",
  126. crossDomain: false,
  127. url: globalConfig.context + "/api/admin/newOrder/orderNewList",
  128. data: {
  129. pageNo: pageNo || 1,
  130. pageSize: this.state.pagination.pageSize,
  131. specially: 1, //审核列表
  132. name: this.state.customerName, //名称
  133. orderNo: this.state.orderNoSearch, //订单编号
  134. starTime: this.state.releaseDate[0], //开始时间
  135. endTime: this.state.releaseDate[1], //结束时间
  136. approval: this.state.approvalSearch, //特批状态搜索
  137. amountStatus: this.state.amountStatus,
  138. },
  139. success: function (data) {
  140. ShowModal(this);
  141. let theArr = [];
  142. if (data.error.length || data.data.list == "") {
  143. if (data.error && data.error.length) {
  144. message.warning(data.error[0].message);
  145. }
  146. } else {
  147. for (let i = 0; i < data.data.list.length; i++) {
  148. let thisdata = data.data.list[i];
  149. theArr.push({
  150. key: i,
  151. id: thisdata.id, //用户ID
  152. orderNo: thisdata.orderNo, //订单编号
  153. totalAmount: thisdata.totalAmount, //签单金额
  154. processStatus: thisdata.processStatus, //流程状态
  155. liquidationStatus: thisdata.liquidationStatus, //结算状态
  156. approval: thisdata.approval, //特批状态
  157. signDate: thisdata.signDate, //签单时间
  158. userName: thisdata.userName, //客户名称
  159. salesmanName: thisdata.salesmanName, //营销员名称
  160. financeName: thisdata.financeName, //财务名称
  161. createDate: thisdata.createDate, //下单时间
  162. depName: thisdata.depName,
  163. orderStatus: thisdata.orderStatus,
  164. });
  165. }
  166. this.state.pagination.total = data.data.totalCount;
  167. this.state.pagination.current = data.data.pageNo;
  168. }
  169. if (data.data && data.data.list && !data.data.list.length) {
  170. this.state.pagination.total = 0;
  171. }
  172. this.setState({
  173. dataSource: theArr,
  174. pageNo: pageNo,
  175. pagination: this.state.pagination,
  176. selectedRowKeys: [],
  177. });
  178. }.bind(this),
  179. }).always(
  180. function () {
  181. this.setState({
  182. loading: false,
  183. });
  184. }.bind(this)
  185. );
  186. },
  187. getInitialState() {
  188. return {
  189. rotateDeg: 0,
  190. page: 1,
  191. resVisible: false,
  192. releaseDate: [],
  193. selectedRowKeys: [],
  194. pictureUrl: [],
  195. attachmentUrl: [],
  196. paginations: false,
  197. activeKey: "1",
  198. confirmLoading: false,
  199. approvalSearch: undefined,
  200. aloading: false,
  201. pagination: {
  202. defaultCurrent: 1,
  203. defaultPageSize: 10,
  204. showQuickJumper: true,
  205. pageSize: 10,
  206. onChange: function (page) {
  207. this.loadData(page);
  208. }.bind(this),
  209. showTotal: function (total) {
  210. return "共" + total + "条数据";
  211. },
  212. },
  213. columns: [
  214. {
  215. title: "订单编号",
  216. dataIndex: "orderNo",
  217. key: "orderNo",
  218. },
  219. {
  220. title: "下单时间",
  221. dataIndex: "createDate",
  222. key: "createTime",
  223. },
  224. {
  225. title: "合同签订时间",
  226. dataIndex: "signDate",
  227. key: "signDate",
  228. },
  229. {
  230. title: "客户名称",
  231. dataIndex: "userName",
  232. key: "userName",
  233. render: (text) => {
  234. return (
  235. <Tooltip title={text}>
  236. <div style={{
  237. maxWidth:'150px',
  238. overflow:'hidden',
  239. textOverflow: "ellipsis",
  240. whiteSpace:'nowrap',
  241. }}>{text}</div>
  242. </Tooltip>
  243. )
  244. },
  245. },
  246. {
  247. title: "流程状态",
  248. dataIndex: "processStatus",
  249. key: "processStatus",
  250. render: (text) => {
  251. return getProcessStatus(text);
  252. },
  253. },
  254. {
  255. title: "订单部门",
  256. dataIndex: "depName",
  257. key: "depName",
  258. },
  259. {
  260. title: "签单金额(万元)",
  261. dataIndex: "totalAmount",
  262. key: "totalAmount",
  263. },
  264. {
  265. title: "结算状态",
  266. dataIndex: "liquidationStatus",
  267. key: "liquidationStatus",
  268. render: (text) => {
  269. return getLiquidationStatus(text);
  270. },
  271. },
  272. {
  273. title: "是否特批",
  274. dataIndex: "approval",
  275. key: "approval",
  276. render: (text) => {
  277. return getApprovedState(text);
  278. },
  279. },
  280. {
  281. title: "订单负责人",
  282. dataIndex: "salesmanName",
  283. key: "salesmanName",
  284. },
  285. {
  286. title: "财务负责人",
  287. dataIndex: "financeName",
  288. key: "financeName",
  289. },
  290. ],
  291. data: [],
  292. dataSource: [],
  293. columnsX: [
  294. {
  295. title: "业务项目名称",
  296. dataIndex: "commodityName",
  297. key: "commodityName",
  298. render: (text, record) => {
  299. return text + "-" + record.id
  300. }
  301. },
  302. {
  303. title: "项目类别",
  304. dataIndex: "cname",
  305. key: "cname",
  306. },
  307. {
  308. title: "项目数量",
  309. dataIndex: "commodityQuantity",
  310. key: "commodityQuantity",
  311. render: (text, record) => {
  312. if (record.splitStatus == 1) {
  313. return (
  314. <span>
  315. {text}{" "}
  316. <Tag
  317. color="#108ee9"
  318. onClick={(e) => {
  319. e.stopPropagation();
  320. this.showRes(record);
  321. }}
  322. >
  323. 已拆
  324. </Tag>
  325. </span>
  326. );
  327. } else {
  328. return text;
  329. }
  330. },
  331. },
  332. {
  333. title: "金额(万元)",
  334. dataIndex: "commodityPrice",
  335. key: "commodityPrice",
  336. },
  337. {
  338. title: "负责人",
  339. dataIndex: "contacts",
  340. key: "contacts",
  341. },
  342. {
  343. title: "负责人电话",
  344. dataIndex: "contactsMobile",
  345. key: "contactsMobile",
  346. },
  347. {
  348. title: "项目状态",
  349. dataIndex: "projectStatus",
  350. key: "projectStatus",
  351. render: (text) => {
  352. return getProjectName(text);
  353. },
  354. },
  355. {
  356. title: "主要项目",
  357. dataIndex: "main",
  358. key: "main",
  359. render: (text) => {
  360. return text ? "是" : "否";
  361. },
  362. },
  363. {
  364. title: "项目说明",
  365. dataIndex: "taskComment",
  366. key: "taskComment",
  367. render: (text) => {
  368. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  369. },
  370. },
  371. ],
  372. columnsrizhi: [
  373. {
  374. title: "流程",
  375. dataIndex: "processName",
  376. key: "processName",
  377. },
  378. {
  379. title: "操作人",
  380. dataIndex: "adminName",
  381. key: "adminName",
  382. },
  383. {
  384. title: "时间",
  385. dataIndex: "createDate",
  386. key: "createDate",
  387. },
  388. ],
  389. dataSourceX: [],
  390. ContactsListsNew: [
  391. {
  392. title: "项目名称",
  393. dataIndex: "commodityName",
  394. key: "commodityName",
  395. render: (text, record) => {
  396. return <span>{text + "-" + record.tid}</span>;
  397. },
  398. },
  399. {
  400. title: "项目分类",
  401. dataIndex: "projectType",
  402. key: "projectType",
  403. render: (text) => {
  404. let arr = this.state.dataSourceX || [];
  405. let str = "";
  406. for (let i = 0; i < arr.length; i++) {
  407. if (this.state.dataSourceX[i].sort == text) {
  408. str = this.state.dataSourceX[i].cname;
  409. return <span>{str}</span>;
  410. }
  411. }
  412. },
  413. },
  414. {
  415. title: "催款科目",
  416. dataIndex: "dunTypeName",
  417. key: "dunTypeName",
  418. render: (text,record) => {
  419. if (record.customizeName) {
  420. return text + record.customizeName;
  421. }
  422. return <span>{text}</span>;
  423. },
  424. },
  425. {
  426. title: "时间(天)",
  427. dataIndex: "waitDay",
  428. key: "waitDay",
  429. render: (text, record) => {
  430. if (record.dunTypeName) {
  431. if (record.customizeTimes) {
  432. return record.customizeTimes;
  433. }
  434. if (text == 0) {
  435. var str = "当天";
  436. } else if (!text) {
  437. var str = "";
  438. } else {
  439. var str = text + "天";
  440. }
  441. return <span>{str}</span>;
  442. }
  443. },
  444. },
  445. {
  446. title: "金额(万元)",
  447. dataIndex: "money",
  448. key: "money",
  449. render: (text, record) => {
  450. if (record.dunTypeName) {
  451. if (record.appropriationRatio && !record.money) {
  452. return <span>{record.appropriationRatio}(拨款比例)</span>;
  453. } else if (record.appropriationRatio && record.money) {
  454. return (
  455. <span>
  456. {text}(比例:{record.appropriationRatio})
  457. </span>
  458. );
  459. } else {
  460. return <span>{text}</span>;
  461. }
  462. }
  463. },
  464. },
  465. {
  466. title: "服务年限",
  467. dataIndex: "startDate",
  468. key: "startDate",
  469. render: (text, record) => {
  470. if (record.dunTypeName) {
  471. return <span>{text}</span>;
  472. }
  473. },
  474. },
  475. {
  476. title: "催款状态",
  477. dataIndex: "status",
  478. key: "status",
  479. render: (text) => {
  480. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  481. },
  482. },
  483. ],
  484. ContactsLists: [
  485. {
  486. title: "催款科目",
  487. dataIndex: "dunSubject",
  488. key: "dunSubject",
  489. render: (text) => {
  490. return getjiedian(text);
  491. },
  492. },
  493. {
  494. title: "金额(万元)",
  495. dataIndex: "money",
  496. key: "money",
  497. },
  498. {
  499. title: "催款状态",
  500. dataIndex: "dunStatus",
  501. key: "dunStatus",
  502. render: (text) => {
  503. return getCuikuan(text);
  504. },
  505. },
  506. ],
  507. };
  508. },
  509. //页面加载函数
  510. componentWillMount() {
  511. this.loadData();
  512. },
  513. //整行点击
  514. tableRowClick(record) {
  515. this.setState({
  516. visible: true,
  517. orderStatus: record.orderStatus,
  518. id: record.id,
  519. });
  520. this.xiangqing(record.orderNo);
  521. this.xiangmu(record.orderNo);
  522. this.jiedian(record.orderNo);
  523. this.jiedianNew(record.orderNo);
  524. },
  525. //点击打卡项目详情
  526. tableRowClickX(record) {
  527. if (record.type == "1") {
  528. this.setState({
  529. displayFees: "block",
  530. costReduction: record.costReduction,
  531. officialCost: record.officialCost,
  532. });
  533. }else{
  534. this.setState({
  535. displayFees: "none",
  536. });
  537. }
  538. this.setState({
  539. jid: record.id, //项目ID
  540. kid: record.commodityId, //商品ID
  541. commodityName: record.commodityName, //金额
  542. commodityPrice: record.commodityPrice, //金额
  543. commodityQuantity: record.commodityQuantity, //数量
  544. taskComment: record.taskComment, //备注
  545. main: record.main.toString(), //是否为主要
  546. addnextVisible: true,
  547. dataInfor:record,
  548. addState: 0,
  549. });
  550. },
  551. //项目详情关闭
  552. nextCancel() {
  553. this.setState({
  554. addnextVisible: false,
  555. displayFees: "none",
  556. officialCost: "", //是否有官费
  557. costReduction: "", //是否有费减
  558. });
  559. },
  560. //订单详情
  561. xiangqing(orderNos) {
  562. $.ajax({
  563. method: "get",
  564. dataType: "json",
  565. crossDomain: false,
  566. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  567. data: {
  568. orderNo: orderNos,
  569. },
  570. success: function (data) {
  571. if (data.error.length || data.data.list == "") {
  572. if (data.error && data.error.length) {
  573. message.warning(data.error[0].message);
  574. }
  575. } else {
  576. let thisdata = data.data;
  577. this.setState({
  578. orderUid: thisdata.uid,
  579. orderNo: thisdata.orderNo, //订单编号
  580. contractNo: thisdata.contractNo, //合同编号
  581. userName: thisdata.userName, //客户名称
  582. signDate: thisdata.signDate, //签单时间
  583. processStatus: thisdata.processStatus, //流程状态
  584. liquidationStatus: thisdata.liquidationStatus, //结算状态
  585. contacts: thisdata.contacts, //企业联系人
  586. contactMobile: thisdata.contactMobile, //联系人电话
  587. legalPerson: thisdata.legalPerson, //法人
  588. legalPersonTel: thisdata.legalPersonTel, //法人电话
  589. firstAmount: thisdata.firstAmount, //签单金额
  590. totalAmount: thisdata.totalAmount, //首付金额
  591. approval: thisdata.approval, //特批状态
  592. settlementAmount: thisdata.settlementAmount, //已收款项
  593. orderRemarks: thisdata.orderRemarks, //订单留言
  594. orgCodeUrl: thisdata.contractPictureUrl
  595. ? splitUrl(
  596. thisdata.contractPictureUrl,
  597. ",",
  598. globalConfig.avatarHost + "/upload"
  599. )
  600. : [], //图片地址
  601. replenishUrl: thisdata.agreementUrl
  602. ? splitUrl(
  603. thisdata.agreementUrl,
  604. ",",
  605. globalConfig.avatarHost + "/upload"
  606. )
  607. : [], //图片地址
  608. salesmanName: thisdata.salesmanName, //营销员名称
  609. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  610. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  611. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  612. financeName: thisdata.financeName, //财务名称
  613. financeMobile: thisdata.financeMobile, //财务电话
  614. nowFinance: thisdata.nowFinance, //财务名称
  615. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  616. depName: thisdata.depName,
  617. outsource: thisdata.outsource == 0 ? "否" : "是",
  618. deleteSign:thisdata.deleteSign,
  619. });
  620. }
  621. }.bind(this),
  622. }).always(
  623. function () {
  624. this.setState({
  625. loading: false,
  626. });
  627. }.bind(this)
  628. );
  629. },
  630. //项目列表
  631. xiangmu(orderNos) {
  632. $.ajax({
  633. method: "get",
  634. dataType: "json",
  635. crossDomain: false,
  636. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  637. data: {
  638. orderNo: orderNos,
  639. },
  640. success: function (data) {
  641. let theArr = [];
  642. if (data.error.length || data.data.list == "") {
  643. if (data.error && data.error.length) {
  644. message.warning(data.error[0].message);
  645. }
  646. } else {
  647. for (let i = 0; i < data.data.length; i++) {
  648. let thisdata = data.data[i];
  649. thisdata.key = i;
  650. thisdata.sort = thisdata.cSort;
  651. theArr.push(thisdata);
  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. <div style={{position:"absolute",top:'-30px',left:'92px',zIndex:10000}}>
  1471. <OrderItemStatus deleteSign={this.state.deleteSign}/>
  1472. </div>
  1473. <FormItem
  1474. className="half-item"
  1475. {...formItemLayout}
  1476. label="订单编号"
  1477. >
  1478. <span>{this.state.orderNo}</span>
  1479. </FormItem>
  1480. <FormItem
  1481. className="half-item"
  1482. {...formItemLayout}
  1483. label="合同编号"
  1484. >
  1485. <span>{this.state.contractNo}</span>
  1486. </FormItem>
  1487. <FormItem
  1488. className="half-item"
  1489. {...formItemLayout}
  1490. label="客户名称"
  1491. >
  1492. <span>{this.state.userName}</span>
  1493. <EnterpriseNameChange
  1494. type='journal'
  1495. style={{ marginLeft: 10 }}
  1496. enterpriseId={this.state.orderUid}/>
  1497. </FormItem>
  1498. <FormItem
  1499. className="half-item"
  1500. {...formItemLayout}
  1501. label="合同签订时间"
  1502. >
  1503. <span>{this.state.signDate}</span>
  1504. </FormItem>
  1505. <FormItem
  1506. className="half-item"
  1507. {...formItemLayout}
  1508. label="流程状态"
  1509. >
  1510. <span>
  1511. {getProcessStatus(this.state.processStatus)}
  1512. </span>
  1513. </FormItem>
  1514. <FormItem
  1515. className="half-item"
  1516. {...formItemLayout}
  1517. label="结算状态"
  1518. >
  1519. <span>
  1520. {getLiquidationStatus(this.state.liquidationStatus)}
  1521. </span>
  1522. </FormItem>
  1523. <FormItem
  1524. className="half-item"
  1525. {...formItemLayout}
  1526. label="企业联系人"
  1527. >
  1528. <span>{this.state.contacts}</span>
  1529. </FormItem>
  1530. <FormItem
  1531. className="half-item"
  1532. {...formItemLayout}
  1533. label="联系人电话"
  1534. >
  1535. <span>{this.state.contactMobile}</span>
  1536. </FormItem>
  1537. <FormItem
  1538. className="half-item"
  1539. {...formItemLayout}
  1540. label="企业法人"
  1541. >
  1542. <span>{this.state.legalPerson}</span>
  1543. </FormItem>
  1544. <FormItem
  1545. className="half-item"
  1546. {...formItemLayout}
  1547. label="法人电话"
  1548. >
  1549. <span>{this.state.legalPersonTel}</span>
  1550. </FormItem>
  1551. <FormItem
  1552. className="half-item"
  1553. {...formItemLayout}
  1554. label="签单金额(万元)"
  1555. >
  1556. <span>{this.state.totalAmount}</span>
  1557. </FormItem>
  1558. <FormItem
  1559. className="half-item"
  1560. {...formItemLayout}
  1561. label="首付金额(万元)"
  1562. >
  1563. <span>{this.state.firstAmount}</span>
  1564. </FormItem>
  1565. <FormItem
  1566. className="half-item"
  1567. {...formItemLayout}
  1568. label="特批立项"
  1569. >
  1570. <span>{getApprovedState(this.state.approval)}</span>
  1571. </FormItem>
  1572. <FormItem
  1573. className="half-item"
  1574. {...formItemLayout}
  1575. label="已收款项(万元)"
  1576. >
  1577. <span>{this.state.settlementAmount}</span>
  1578. </FormItem>
  1579. <FormItem
  1580. className="half-item"
  1581. {...formItemLayout}
  1582. label="订单部门"
  1583. >
  1584. <span>{this.state.depName}</span>
  1585. </FormItem>
  1586. <FormItem
  1587. className="half-item"
  1588. {...formItemLayout}
  1589. label="是否外包"
  1590. >
  1591. {this.state.outsource}
  1592. </FormItem>
  1593. <div className="clearfix">
  1594. <FormItem
  1595. labelCol={{ span: 4 }}
  1596. wrapperCol={{ span: 16 }}
  1597. label="订单留言"
  1598. >
  1599. <p style={{ width: 500, wordWrap: "break-word" }}>
  1600. {this.state.orderRemarks}
  1601. </p>
  1602. </FormItem>
  1603. </div>
  1604. <div className="clearfix">
  1605. <div>
  1606. <FormItem
  1607. labelCol={{ span: 4 }}
  1608. wrapperCol={{ span: 18 }}
  1609. label="合同扫描件"
  1610. >
  1611. {/*<Upload*/}
  1612. {/* className="demandDetailShow-upload"*/}
  1613. {/* listType="picture-card"*/}
  1614. {/* fileList={this.state.orgCodeUrl}*/}
  1615. {/* onPreview={(file) => {*/}
  1616. {/* this.setState({*/}
  1617. {/* previewImage: file.url || file.thumbUrl,*/}
  1618. {/* previewVisible: true,*/}
  1619. {/* });*/}
  1620. {/* }}*/}
  1621. {/*/>*/}
  1622. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  1623. {this.state.orgCodeUrl && this.state.visible ? <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'}/> : <div/>}
  1624. </div>
  1625. {this.state.previewVisible ? <Modal
  1626. maskClosable={false}
  1627. footer={null}
  1628. width={"50%"}
  1629. visible={this.state.previewVisible}
  1630. onCancel={() => {
  1631. this.setState({
  1632. previewVisible: false,
  1633. rotateDeg: 0,
  1634. });
  1635. }}
  1636. >
  1637. <img
  1638. alt=""
  1639. style={{
  1640. width: "100%",
  1641. transform: `rotate(${this.state.rotateDeg}deg)`,
  1642. }}
  1643. src={this.state.previewImage || ""}
  1644. />
  1645. <Button
  1646. onClick={this.rotate}
  1647. style={{
  1648. position: "relative",
  1649. left: "50%",
  1650. transform: "translateX(-50%)",
  1651. }}
  1652. >
  1653. 旋转
  1654. </Button>
  1655. <Button
  1656. onClick={this.upImg}
  1657. style={{
  1658. position: "absolute",
  1659. left: -81,
  1660. top: "50%",
  1661. transform: "translateY(-50%)",
  1662. }}
  1663. >
  1664. 上一张
  1665. </Button>
  1666. <Button
  1667. onClick={this.downImg}
  1668. style={{
  1669. position: "absolute",
  1670. right: -81,
  1671. top: "50%",
  1672. transform: "translateY(-50%)",
  1673. }}
  1674. >
  1675. 下一张
  1676. </Button>
  1677. </Modal> : <div/>}
  1678. <Button
  1679. style={{
  1680. float: "right",
  1681. marginRight: "140px",
  1682. marginTop: "20px",
  1683. }}
  1684. onClick={this.getOrderLog}
  1685. >
  1686. 查看订单日志
  1687. </Button>
  1688. </FormItem>
  1689. <FormItem
  1690. labelCol={{ span: 4 }}
  1691. wrapperCol={{ span: 18 }}
  1692. label="补充协议"
  1693. >
  1694. {/*<Upload*/}
  1695. {/* className="demandDetailShow-upload"*/}
  1696. {/* listType="picture-card"*/}
  1697. {/* fileList={this.state.replenishUrl}*/}
  1698. {/* onPreview={(file) => {*/}
  1699. {/* this.setState({*/}
  1700. {/* previewImage: file.url || file.thumbUrl,*/}
  1701. {/* previewVisibles: true,*/}
  1702. {/* });*/}
  1703. {/* }}*/}
  1704. {/*/>*/}
  1705. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  1706. {this.state.replenishUrl && this.state.visible ? <ImgList domId={'examine1'} fileList={this.state.replenishUrl} ItemWidth={'96px'}/> : <div/>}
  1707. </div>
  1708. {this.state.previewVisibles ? <Modal
  1709. maskClosable={false}
  1710. footer={null}
  1711. width={"50%"}
  1712. visible={this.state.previewVisibles}
  1713. onCancel={() => {
  1714. this.setState({
  1715. previewVisibles: false,
  1716. rotateDeg: 0,
  1717. });
  1718. }}
  1719. >
  1720. <img
  1721. alt=""
  1722. style={{
  1723. width: "100%",
  1724. transform: `rotate(${this.state.rotateDeg}deg)`,
  1725. }}
  1726. src={this.state.previewImage || ""}
  1727. />
  1728. <Button
  1729. onClick={this.rotate}
  1730. style={{
  1731. position: "relative",
  1732. left: "50%",
  1733. transform: "translateX(-50%)",
  1734. }}
  1735. >
  1736. 旋转
  1737. </Button>
  1738. <Button
  1739. onClick={this.upImgs}
  1740. style={{
  1741. position: "absolute",
  1742. left: -81,
  1743. top: "50%",
  1744. transform: "translateY(-50%)",
  1745. }}
  1746. >
  1747. 上一张
  1748. </Button>
  1749. <Button
  1750. onClick={this.downImgs}
  1751. style={{
  1752. position: "absolute",
  1753. right: -81,
  1754. top: "50%",
  1755. transform: "translateY(-50%)",
  1756. }}
  1757. >
  1758. 下一张
  1759. </Button>
  1760. </Modal> : <div/>}
  1761. </FormItem>
  1762. </div>
  1763. </div>
  1764. <div className="clearfix">
  1765. <FormItem
  1766. className="half-item"
  1767. {...formItemLayout}
  1768. label="订单负责人"
  1769. >
  1770. <span>{this.state.salesmanName}</span>
  1771. </FormItem>
  1772. <FormItem
  1773. className="half-item"
  1774. {...formItemLayout}
  1775. label="订单负责人电话"
  1776. >
  1777. <span>{this.state.salesmanMobile}</span>
  1778. </FormItem>
  1779. </div>
  1780. <div className="clearfix">
  1781. <FormItem
  1782. className="half-item"
  1783. {...formItemLayout}
  1784. label="当前财务负责人"
  1785. >
  1786. <span>{this.state.nowFinance}</span>
  1787. </FormItem>
  1788. <FormItem
  1789. className="half-item"
  1790. {...formItemLayout}
  1791. label="当前财务负责人电话"
  1792. >
  1793. <span>{this.state.nowFinanceMobile}</span>
  1794. </FormItem>
  1795. </div>
  1796. <div className="clearfix">
  1797. <FormItem
  1798. className="half-item"
  1799. {...formItemLayout}
  1800. style={{ opacity: ".5" }}
  1801. label="原订单负责人"
  1802. >
  1803. <span>{this.state.oldSalesmanName}</span>
  1804. </FormItem>
  1805. <FormItem
  1806. className="half-item"
  1807. {...formItemLayout}
  1808. style={{ opacity: ".5" }}
  1809. label="原订单负责人电话"
  1810. >
  1811. <span>{this.state.oldSalesmanMobile}</span>
  1812. </FormItem>
  1813. </div>
  1814. <div className="clearfix">
  1815. <FormItem
  1816. className="half-item"
  1817. style={{ opacity: ".5" }}
  1818. {...formItemLayout}
  1819. label="实际财务操作人"
  1820. >
  1821. <span>{this.state.financeName}</span>
  1822. </FormItem>
  1823. <FormItem
  1824. className="half-item"
  1825. {...formItemLayout}
  1826. style={{ opacity: ".5" }}
  1827. label="实际财务操作人电话"
  1828. >
  1829. <span>{this.state.financeMobile}</span>
  1830. </FormItem>
  1831. </div>
  1832. <div>
  1833. <span
  1834. style={{ marginLeft: "50px", fontSize: "20px" }}
  1835. >
  1836. 项目业务
  1837. </span>
  1838. {this.state.processStatus == 0 ? (
  1839. <Button
  1840. type="primary"
  1841. onClick={this.addDetailed}
  1842. style={{
  1843. float: "right",
  1844. marginRight: "50px",
  1845. marginBottom: "15px",
  1846. }}
  1847. >
  1848. 添加项目明细
  1849. </Button>
  1850. ) : (
  1851. ""
  1852. )}
  1853. </div>
  1854. <div className="patent-table">
  1855. <Spin spinning={this.state.loading}>
  1856. <Table
  1857. columns={this.state.columnsX}
  1858. dataSource={this.state.dataSourceX}
  1859. pagination={this.state.paginations}
  1860. onRowClick={this.tableRowClickX}
  1861. bordered
  1862. size="small"
  1863. />
  1864. </Spin>
  1865. </div>
  1866. <div>
  1867. <span
  1868. style={{ marginLeft: "50px", fontSize: "20px" }}
  1869. >
  1870. 催款节点
  1871. </span>
  1872. <span
  1873. style={{
  1874. display: cuiDataList.length
  1875. ? "none"
  1876. : "inline-block",
  1877. marginLeft: 10,
  1878. color: "red",
  1879. }}
  1880. >
  1881. 金额总计(万元): {this.state.totalCui}
  1882. </span>
  1883. {this.state.processStatus == 0 ? (
  1884. <Button
  1885. type="primary"
  1886. onClick={this.addcontact}
  1887. style={{
  1888. float: "right",
  1889. marginRight: "50px",
  1890. marginBottom: "15px",
  1891. }}
  1892. >
  1893. 添加催款节点
  1894. </Button>
  1895. ) : (
  1896. ""
  1897. )}
  1898. </div>
  1899. <div className="clearfix">
  1900. <Spin spinning={this.state.loading}>
  1901. <Form layout="horizontal" id="demand-form">
  1902. <Table
  1903. pagination={false}
  1904. bordered
  1905. size="small"
  1906. columns={
  1907. cuiDataList.length
  1908. ? this.state.ContactsLists
  1909. : this.state.ContactsListsNew
  1910. }
  1911. dataSource={
  1912. cuiDataList.length
  1913. ? this.state.contactList
  1914. : this.state.contactListNew
  1915. }
  1916. />
  1917. <Col
  1918. span={24}
  1919. offset={9}
  1920. style={{ marginTop: "15px" }}
  1921. ></Col>
  1922. </Form>
  1923. </Spin>
  1924. </div>
  1925. <div className="addSave" style={{ marginTop: "15px" }}>
  1926. <Button
  1927. type="primary"
  1928. // onClick={this.examOk}
  1929. onClick={() => {
  1930. // if (this.state.outsource == "是") {
  1931. // this.showDeleteConfirm(this.examOk);
  1932. // } else {
  1933. // this.examOk();
  1934. // }
  1935. this.setState({
  1936. agreeVisible: true,
  1937. reason: "",
  1938. });
  1939. }}
  1940. style={{ marginLeft: "200px" }}
  1941. htmlType="submit"
  1942. >
  1943. 通过
  1944. </Button>
  1945. <Button
  1946. type="primary"
  1947. onClick={this.examNo}
  1948. style={{ marginLeft: "50px" }}
  1949. htmlType="submit"
  1950. >
  1951. 驳回
  1952. </Button>
  1953. <Button
  1954. type="ghost"
  1955. onClick={this.visitCancel}
  1956. style={{ marginLeft: "50px" }}
  1957. >
  1958. 取消
  1959. </Button>
  1960. {/*<Button className='warn-button' type="primary" onClick={this.outsourcing} style={{marginLeft:"50px"}}>通过不走总部</Button>
  1961. <p className='hint'>提示:高于总部价格,费用个人承担!</p>*/}
  1962. </div>
  1963. </div>
  1964. </Spin>
  1965. </Form>
  1966. </TabPane>
  1967. {/* <TabPane tab="外包(不走总部)" key="2">
  1968. <Spin spinning={this.state.loading}>
  1969. <div className="clearfix" style={{ marginTop: 10 }}>
  1970. <FormItem
  1971. className="half-item"
  1972. {...formItemLayout}
  1973. label={
  1974. <span>
  1975. <strong style={{ color: "#f00" }}>*</strong>外包公司
  1976. </span>
  1977. }
  1978. >
  1979. <Input
  1980. value={this.state.companyName}
  1981. onChange={(e) => {
  1982. this.setState({
  1983. companyName: e.target.value,
  1984. });
  1985. }}
  1986. placeholder="请填写外包公司名称"
  1987. />
  1988. </FormItem>
  1989. <span className="tip">如多个公司,请用间隔</span>
  1990. </div>
  1991. <div className="clearfix">
  1992. <FormItem
  1993. className="half-item"
  1994. {...formItemLayout}
  1995. label={
  1996. <span>
  1997. <strong style={{ color: "#f00" }}>*</strong>
  1998. 单价(万元)
  1999. </span>
  2000. }
  2001. >
  2002. <Input
  2003. value={this.state.unitPrice}
  2004. onChange={(e) => {
  2005. this.setState({
  2006. unitPrice: e.target.value,
  2007. });
  2008. }}
  2009. placeholder="请填写单价"
  2010. />
  2011. </FormItem>
  2012. </div>
  2013. <div className="clearfix">
  2014. <FormItem
  2015. className="half-item"
  2016. {...formItemLayout}
  2017. label={
  2018. <span>
  2019. <strong style={{ color: "#f00" }}>*</strong>数量(个)
  2020. </span>
  2021. }
  2022. >
  2023. <Input
  2024. value={this.state.unitNumber}
  2025. onChange={(e) => {
  2026. this.setState({
  2027. unitNumber: e.target.value,
  2028. });
  2029. }}
  2030. placeholder="请填写数量"
  2031. />
  2032. </FormItem>
  2033. </div>
  2034. <div className="clearfix">
  2035. <FormItem
  2036. className="half-item"
  2037. {...formItemLayout}
  2038. label={
  2039. <span>
  2040. <strong style={{ color: "#f00" }}>*</strong>
  2041. 总金额(万元)
  2042. </span>
  2043. }
  2044. >
  2045. <Input
  2046. value={this.state.amount}
  2047. onChange={(e) => {
  2048. this.setState({
  2049. amount: e.target.value,
  2050. });
  2051. }}
  2052. placeholder="请填写本次外包公司的价格"
  2053. />
  2054. </FormItem>
  2055. </div>
  2056. <div className="clearfix">
  2057. <FormItem
  2058. className="half-item"
  2059. style={{ height: "auto" }}
  2060. {...formItemLayout}
  2061. label={
  2062. <span>
  2063. <strong style={{ color: "#f00" }}>*</strong>备注
  2064. </span>
  2065. }
  2066. >
  2067. <TextArea
  2068. rows={4}
  2069. value={this.state.outsourceRemarks}
  2070. onChange={(e) => {
  2071. this.setState({
  2072. outsourceRemarks: e.target.value,
  2073. });
  2074. }}
  2075. placeholder="请输入备注"
  2076. />
  2077. </FormItem>
  2078. </div>
  2079. <p
  2080. className="tip"
  2081. style={{
  2082. paddingBottom: "12px",
  2083. width: "240px",
  2084. marginLeft: "145px",
  2085. }}
  2086. >
  2087. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  2088. </p>
  2089. <div className="clearfix">
  2090. <FormItem
  2091. labelCol={{ span: 4 }}
  2092. wrapperCol={{ span: 18 }}
  2093. label={
  2094. <span>
  2095. <strong style={{ color: "#f00" }}>*</strong>
  2096. 合同/协议扫描件
  2097. <span style={{ color: "#f00" }}>(外包合同)</span>
  2098. </span>
  2099. }
  2100. >
  2101. <PicturesWall
  2102. fileList={this.getOrgCodeUrl}
  2103. pictureUrl={this.state.pictureUrl}
  2104. />
  2105. <p>请上传与外包公司签订的合同协议</p>
  2106. <p>图片建议:要清晰。</p>
  2107. </FormItem>
  2108. </div>
  2109. <div className="clearfix">
  2110. <div
  2111. style={{ display: "inline-black", textAlign: "center" }}
  2112. >
  2113. <Button type="primary" onClick={this.sureOut}>
  2114. 确认发起外包,不通过总部
  2115. </Button>
  2116. <p className="tip">提示:高于总部价格,费用个人承担</p>
  2117. </div>
  2118. </div>
  2119. </Spin>
  2120. </TabPane> */}
  2121. </Tabs>
  2122. </Modal> : <div/>}
  2123. {this.state.noVisible ? <Modal
  2124. maskClosable={false}
  2125. visible={this.state.noVisible}
  2126. onOk={this.handleOk}
  2127. onCancel={this.noCancel}
  2128. width="400px"
  2129. title={"拒绝理由"}
  2130. footer=""
  2131. className="admin-desc-content"
  2132. confirmLoading={this.state.confirmLoading}
  2133. >
  2134. <Form layout="horizontal" id="demand-form">
  2135. <Spin spinning={this.state.loading}>
  2136. <div className="clearfix">
  2137. <FormItem
  2138. labelCol={{ span: 4 }}
  2139. wrapperCol={{ span: 16 }}
  2140. label="拒绝理由"
  2141. >
  2142. <Input
  2143. type="textarea"
  2144. placeholder="请输入拒绝理由"
  2145. rows={4}
  2146. value={this.state.reason}
  2147. onChange={(e) => {
  2148. this.setState({ reason: e.target.value });
  2149. }}
  2150. />
  2151. </FormItem>
  2152. </div>
  2153. <div className="clearfix">
  2154. <Button
  2155. className="cancel"
  2156. type="primary"
  2157. onClick={this.examOks}
  2158. style={{ marginLeft: "50px" }}
  2159. htmlType="submit"
  2160. loading={this.state.aloading}
  2161. >
  2162. 确定
  2163. </Button>
  2164. <Button
  2165. className="cancel"
  2166. type="ghost"
  2167. onClick={this.noCancel}
  2168. style={{ marginLeft: "50px" }}
  2169. >
  2170. 取消
  2171. </Button>
  2172. </div>
  2173. </Spin>
  2174. </Form>
  2175. </Modal> : <div/>}
  2176. {this.state.agreeVisible ? <Modal
  2177. maskClosable={false}
  2178. visible={this.state.agreeVisible}
  2179. onOk={(e) => {
  2180. this.setState({
  2181. agreeVisible: false,
  2182. });
  2183. }}
  2184. onCancel={(e) => {
  2185. this.setState({
  2186. agreeVisible: false,
  2187. });
  2188. }}
  2189. width="400px"
  2190. title={"同意备注"}
  2191. footer=""
  2192. className="admin-desc-content"
  2193. confirmLoading={this.state.confirmLoading}
  2194. >
  2195. <Form layout="horizontal" id="demand-form">
  2196. <Spin spinning={this.state.loading}>
  2197. <div className="clearfix">
  2198. <FormItem
  2199. labelCol={{ span: 4 }}
  2200. wrapperCol={{ span: 16 }}
  2201. label="同意理由"
  2202. >
  2203. <Input
  2204. type="textarea"
  2205. placeholder="请输入同意理由"
  2206. rows={4}
  2207. value={this.state.reason}
  2208. onChange={(e) => {
  2209. this.setState({ reason: e.target.value });
  2210. }}
  2211. />
  2212. </FormItem>
  2213. </div>
  2214. <div className="clearfix">
  2215. <Button
  2216. className="cancel"
  2217. type="primary"
  2218. onClick={(e) => {
  2219. if (this.state.outsource == "是") {
  2220. this.showDeleteConfirm(this.examOk);
  2221. } else {
  2222. this.examOk();
  2223. }
  2224. }}
  2225. style={{ marginLeft: "50px" }}
  2226. htmlType="submit"
  2227. loading={this.state.aloading}
  2228. >
  2229. 确定
  2230. </Button>
  2231. <Button
  2232. className="cancel"
  2233. type="ghost"
  2234. onClick={(e) => {
  2235. this.setState({
  2236. agreeVisible: false,
  2237. });
  2238. }}
  2239. style={{ marginLeft: "50px" }}
  2240. >
  2241. 取消
  2242. </Button>
  2243. </div>
  2244. </Spin>
  2245. </Form>
  2246. </Modal> : <div/>}
  2247. {/* <Modal
  2248. visible={this.state.rizhivisible}
  2249. className="admin-desc-content"
  2250. width="800px"
  2251. maskClosable={false}
  2252. title="订单日志"
  2253. footer={null}
  2254. onCancel={this.closeOrderLog}
  2255. >
  2256. <div className="patent-table">
  2257. <Spin spinning={this.state.loading}>
  2258. <Table
  2259. columns={this.state.columnsrizhi}
  2260. dataSource={this.state.dataSourcerizhi}
  2261. pagination={false}
  2262. />
  2263. </Spin>
  2264. </div>
  2265. </Modal> */}
  2266. <OrderRiZi
  2267. dataSourcerizhi={this.state.dataSourcerizhi}
  2268. closeOrderLog={this.closeOrderLog}
  2269. visible={this.state.rizhivisible}
  2270. loading={this.state.loading}
  2271. />
  2272. </div>
  2273. {this.state.addnextVisible && <ProjectDetailsReadOnly
  2274. infor={this.state.dataInfor}
  2275. visible={this.state.addnextVisible}
  2276. onCancel={this.nextCancel}
  2277. />}
  2278. </div>
  2279. );
  2280. },
  2281. })
  2282. );
  2283. export default IntentionCustomer;