examine.jsx 89 KB

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