examinejl.jsx 86 KB

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