examine.jsx 80 KB

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