examinejl.jsx 89 KB

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