examine.jsx 85 KB

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