examinejl.jsx 86 KB

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