examine.jsx 81 KB

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