examine.jsx 77 KB

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