approveds.jsx 94 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037
  1. import React from 'react';
  2. import {
  3. Icon,
  4. Button,
  5. Input,
  6. Select,
  7. Spin,
  8. Table,
  9. message,
  10. DatePicker,
  11. Upload,
  12. Form,
  13. Modal,
  14. Col,
  15. Tag,
  16. Tabs, Tooltip
  17. } from "antd";
  18. import $ from 'jquery/src/ajax';
  19. import ResolutionDetail from "@/resolutionDetail";
  20. import ReactToPrint from "react-to-print";
  21. import moment from 'moment';
  22. import {
  23. getLiquidationStatus,
  24. getApprovedState,
  25. getProcessStatus,
  26. splitUrl,
  27. getjiedian,
  28. getboutique,
  29. getCuikuan,
  30. ShowModal,
  31. getApproval,
  32. getTaskStatus,
  33. getProjectStatus,
  34. getNewOrderStatus,
  35. getInvoiceStatus
  36. } from "@/tools.js";
  37. import './customer.less';
  38. import { ChooseList } from "../orderNew/chooseList";
  39. import ShowModalDiv from "@/showModal.jsx";
  40. import Project from "../../../../component/project";
  41. import ImgList from "../../../common/imgList";
  42. import {getProjectName} from "../../../tools";
  43. import ProjectDetailsReadOnly from "../../../common/projectDetailsReadOnly";
  44. import DepartmentList from "../../../common/departmentList";
  45. import OrderItemStatus from "../../../common/orderItemStatus";
  46. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  47. const { TabPane } = Tabs;
  48. const { TextArea } = Input;
  49. //图片组件
  50. const PicturesWall = React.createClass({
  51. getInitialState() {
  52. return {
  53. previewVisible: false,
  54. previewImage: '',
  55. fileList: [],
  56. }
  57. },
  58. handleCancel() {
  59. this.setState({
  60. previewVisible: false
  61. })
  62. },
  63. handlePreview(file) {
  64. this.setState({
  65. previewImage: file.url || file.thumbUrl,
  66. previewVisible: true,
  67. });
  68. },
  69. handleChange(info) {
  70. let fileList = info.fileList;
  71. this.setState({
  72. fileList
  73. });
  74. this.props.fileList(fileList);
  75. },
  76. componentWillReceiveProps(nextProps) {
  77. this.state.fileList = nextProps.pictureUrl;
  78. this.state.pojectApplicationUrl = undefined;
  79. },
  80. render() {
  81. const {
  82. fileList
  83. } = this.state;
  84. return (
  85. <div style={{ display: "inline-block" }}>
  86. <ImgList
  87. domId={this.props.domId}
  88. uploadConfig={{
  89. action:globalConfig.context + "/api/admin/customer/uploadCustomerImg",
  90. data:{ 'sign': '' },
  91. multiple:true,
  92. listType:"picture-card",
  93. }}
  94. onChange={(infor)=>{
  95. this.handleChange(infor)
  96. }}
  97. fileList={fileList}
  98. />
  99. </div>
  100. );
  101. }
  102. });
  103. const IntentionCustomer = Form.create()(
  104. React.createClass({
  105. loadData(pageNo, pageSize) {
  106. this.setState({
  107. visitModul: false,
  108. loading: true,
  109. ispage: pageNo,
  110. modalVisible: false,
  111. });
  112. $.ajax({
  113. method: "get",
  114. dataType: "json",
  115. crossDomain: false,
  116. url: globalConfig.context + "/api/admin/newOrder/orderNewList",
  117. data: {
  118. pageNo: pageNo || 1,
  119. pageSize: pageSize || this.state.pagination.pageSize,
  120. specially: 3, //审核列表
  121. name: this.state.nameSearch, //名称
  122. orderNo: this.state.orderNoSearch, //订单编号
  123. contractNo: this.state.contractNoSearch, //合同编号
  124. depId: this.state.departmenttList, //订单部门
  125. starTime: this.state.releaseDate[0], //开始时间
  126. endTime: this.state.releaseDate[1], //结束时间
  127. approval: this.state.approvalSearch ? this.state.approvalSearch : 0, //审批状态
  128. liquidationStatus: this.state.liquidationStatusSearch, //结算状态
  129. },
  130. success: function (data) {
  131. ShowModal(this);
  132. let theArr = [];
  133. if (data.error.length || data.data.list == "") {
  134. if (data.error && data.error.length) {
  135. message.warning(data.error[0].message);
  136. }
  137. } else {
  138. for (let i = 0; i < data.data.list.length; i++) {
  139. let thisdata = data.data.list[i];
  140. theArr.push({
  141. key: thisdata.orderNo,
  142. orderNo: thisdata.orderNo,
  143. orderType: thisdata.orderType,
  144. orderStatus: thisdata.orderStatus,
  145. salesmanName: thisdata.salesmanName,
  146. processStatus: thisdata.processStatus,
  147. liquidationStatus: thisdata.liquidationStatus,
  148. approval: thisdata.approval,
  149. settlementAmount: thisdata.settlementAmount,
  150. signDate: thisdata.signDate,
  151. companyId: thisdata.companyId,
  152. companyName: thisdata.companyName,
  153. buyerId: thisdata.buyerId,
  154. userName: thisdata.userName,
  155. contractNo: thisdata.contractNo,
  156. createDate: thisdata.createDate,
  157. depName: thisdata.depName,
  158. invoiceAmount: thisdata.invoiceAmount,
  159. totalAmount: thisdata.totalAmount,
  160. financeName: thisdata.financeName,
  161. });
  162. }
  163. this.state.pagination.total = data.data.totalCount;
  164. }
  165. if (data.data && data.data.list && !data.data.list.length) {
  166. this.state.pagination.total = 0;
  167. }
  168. this.setState({
  169. dataSource: theArr,
  170. pageNo: pageNo,
  171. pagination: this.state.pagination,
  172. selectedRowKeys: [],
  173. });
  174. }.bind(this),
  175. }).always(
  176. function () {
  177. this.setState({
  178. loading: false,
  179. });
  180. }.bind(this)
  181. );
  182. },
  183. getInitialState() {
  184. return {
  185. page: 1,
  186. declarationBatch: 1,
  187. dataInfor: {},
  188. releaseDate: [],
  189. selectedRowKeys: [],
  190. rotateDeg: 0,
  191. orgCodeUrl: [],
  192. approvalSearch: "1",
  193. paginations: false,
  194. pagination: {
  195. defaultCurrent: 1,
  196. defaultPageSize: 10,
  197. showQuickJumper: true,
  198. pageSize: 10,
  199. onChange: function (page) {
  200. this.loadData(page);
  201. }.bind(this),
  202. showTotal: function (total) {
  203. return "共" + total + "条数据";
  204. },
  205. },
  206. columnsDate: [
  207. {
  208. title: "编号",
  209. dataIndex: "id",
  210. key: "id",
  211. },
  212. {
  213. title: "订单编号",
  214. dataIndex: "orderno",
  215. key: "orderno",
  216. },
  217. {
  218. title: "开票金额(万元)",
  219. dataIndex: "amount",
  220. key: "amount",
  221. },
  222. {
  223. title: "申请时间",
  224. dataIndex: "createTime",
  225. key: "createTime",
  226. },
  227. {
  228. title: "开票状态",
  229. dataIndex: "status",
  230. key: "status",
  231. render: (text) => {
  232. return getInvoiceStatus(text);
  233. },
  234. },
  235. ],
  236. columns: [
  237. {
  238. title: "合同编号",
  239. dataIndex: "contractNo",
  240. key: "contractNo",
  241. className: "title-table",
  242. },
  243. {
  244. title: "订单编号",
  245. dataIndex: "orderNo",
  246. key: "orderNo",
  247. className: "title-table",
  248. // fixed: "left"
  249. },
  250. {
  251. title: "特批状态",
  252. dataIndex: "approval",
  253. key: "approval",
  254. className: "title-table",
  255. render: (text) => {
  256. if (text == 1) {
  257. return <Tag color="#f50">{getApproval(text)}</Tag>;
  258. }
  259. return getApproval(text);
  260. },
  261. },
  262. {
  263. title: "客户名称",
  264. dataIndex: "userName",
  265. key: "userName",
  266. className: "title-table",
  267. render: text => {
  268. return (
  269. <Tooltip title={text}>
  270. <div style={{
  271. maxWidth:'150px',
  272. overflow:'hidden',
  273. textOverflow: "ellipsis",
  274. whiteSpace:'nowrap',
  275. }}>{text}</div>
  276. </Tooltip>
  277. )
  278. }
  279. },
  280. {
  281. title: "订单部门",
  282. dataIndex: "depName",
  283. key: "depName",
  284. className: "title-table",
  285. },
  286. {
  287. title: "订单负责人",
  288. dataIndex: "salesmanName",
  289. key: "salesmanName",
  290. className: "title-table",
  291. },
  292. {
  293. title: "财务负责人",
  294. dataIndex: "financeName",
  295. key: "financeName",
  296. className: "title-table",
  297. },
  298. {
  299. title: "签单日期",
  300. dataIndex: "signDate",
  301. key: "signDate",
  302. className: "title-table",
  303. },
  304. {
  305. title: "下单日期",
  306. dataIndex: "createDate",
  307. key: "createDate",
  308. className: "title-table",
  309. },
  310. {
  311. title: "签单金额(万元)",
  312. dataIndex: "totalAmount",
  313. key: "totalAmount",
  314. className: "title-table",
  315. },
  316. {
  317. title: "开票金额(万元)",
  318. dataIndex: "invoiceAmount",
  319. key: "invoiceAmount",
  320. className: "title-table",
  321. },
  322. {
  323. title: "已收款(万元)",
  324. dataIndex: "settlementAmount",
  325. key: "settlementAmount",
  326. className: "title-table",
  327. },
  328. {
  329. title: "结算状态",
  330. dataIndex: "liquidationStatus",
  331. key: "liquidationStatus",
  332. className: "title-table",
  333. render: (text) => {
  334. return getLiquidationStatus(text);
  335. },
  336. },
  337. {
  338. title: "流程状态",
  339. dataIndex: "processStatus",
  340. key: "processStatus",
  341. className: "title-table",
  342. render: (text) => {
  343. return getProcessStatus(text);
  344. },
  345. },
  346. ],
  347. data: [],
  348. dataSource: [],
  349. columnsX: [
  350. {
  351. title: "业务项目名称",
  352. dataIndex: "commodityName",
  353. key: "commodityName",
  354. render: (text, record) => {
  355. return text + "-" + record.id
  356. }
  357. },
  358. {
  359. title: "项目类别",
  360. dataIndex: "cname",
  361. key: "cname",
  362. },
  363. {
  364. title: "项目数量",
  365. dataIndex: "commodityQuantity",
  366. key: "commodityQuantity",
  367. render: (text, record) => {
  368. if (record.splitStatus == 1) {
  369. return (
  370. <span>
  371. {text}{" "}
  372. <Tag
  373. color="#108ee9"
  374. onClick={(e) => {
  375. e.stopPropagation();
  376. this.showRes(record);
  377. }}
  378. >
  379. 已拆
  380. </Tag>
  381. </span>
  382. );
  383. } else {
  384. return text;
  385. }
  386. },
  387. },
  388. {
  389. title: "金额(万元)",
  390. dataIndex: "commodityPrice",
  391. key: "commodityPrice",
  392. },
  393. {
  394. title: "负责人",
  395. dataIndex: "contacts",
  396. key: "contacts",
  397. },
  398. {
  399. title: "负责人电话",
  400. dataIndex: "contactsMobile",
  401. key: "contactsMobile",
  402. },
  403. {
  404. title: "主要项目",
  405. dataIndex: "main",
  406. key: "main",
  407. render: (text) => {
  408. return text ? "是" : "否";
  409. },
  410. },
  411. {
  412. title: "项目说明",
  413. dataIndex: "taskComment",
  414. key: "taskComment",
  415. render: (text) => {
  416. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  417. },
  418. },
  419. ],
  420. columnsrizhi: [
  421. {
  422. title: "流程",
  423. dataIndex: "processName",
  424. key: "processName",
  425. },
  426. {
  427. title: "操作人",
  428. dataIndex: "adminName",
  429. key: "adminName",
  430. },
  431. {
  432. title: "时间",
  433. dataIndex: "createDate",
  434. key: "createDate",
  435. },
  436. {
  437. title: "备注",
  438. dataIndex: "remarks",
  439. key: "remarks",
  440. },
  441. ],
  442. dataSourceX: [],
  443. ContactsListsNew: [
  444. {
  445. title: "项目名称",
  446. dataIndex: "commodityName",
  447. key: "commodityName",
  448. render: (text, record) => {
  449. return <span>{text + "-" + record.tid}</span>;
  450. },
  451. },
  452. {
  453. title: "项目分类",
  454. dataIndex: "projectType",
  455. key: "projectType",
  456. render: (text) => {
  457. let arr = this.state.dataSourceX || [];
  458. let str = "";
  459. for (let i = 0; i < arr.length; i++) {
  460. if (this.state.dataSourceX[i].sort == text) {
  461. str = this.state.dataSourceX[i].cname;
  462. return <span>{str}</span>;
  463. }
  464. }
  465. },
  466. },
  467. {
  468. title: "催款科目",
  469. dataIndex: "dunTypeName",
  470. key: "dunTypeName",
  471. render: (text,record) => {
  472. if (record.customizeName) {
  473. return text + record.customizeName;
  474. }
  475. return <span>{text}</span>;
  476. },
  477. },
  478. {
  479. title: "时间(天)",
  480. dataIndex: "waitDay",
  481. key: "waitDay",
  482. render: (text, record) => {
  483. if (record.dunTypeName) {
  484. if (record.customizeTimes) {
  485. return record.customizeTimes;
  486. }
  487. return <span>{text}</span>;
  488. }
  489. },
  490. },
  491. {
  492. title: "金额(万元)",
  493. dataIndex: "money",
  494. key: "money",
  495. render: (text, record) => {
  496. if (record.dunTypeName) {
  497. if (record.appropriationRatio && !record.money) {
  498. return <span>{record.appropriationRatio}(拨款比例)</span>;
  499. } else if (record.appropriationRatio && record.money) {
  500. return (
  501. <span>
  502. {text}(比例:{record.appropriationRatio})
  503. </span>
  504. );
  505. } else {
  506. return <span>{text}</span>;
  507. }
  508. }
  509. },
  510. },
  511. {
  512. title: "服务年限",
  513. dataIndex: "startDate",
  514. key: "startDate",
  515. render: (text, record) => {
  516. if (record.dunTypeName) {
  517. return <span>{text}</span>;
  518. }
  519. },
  520. },
  521. {
  522. title: "催款状态",
  523. dataIndex: "status",
  524. key: "status",
  525. render: (text) => {
  526. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  527. },
  528. },
  529. ],
  530. ContactsLists: [
  531. {
  532. title: "催款科目",
  533. dataIndex: "dunSubject",
  534. key: "dunSubject",
  535. render: (text) => {
  536. return getjiedian(text);
  537. },
  538. },
  539. {
  540. title: "金额(万元)",
  541. dataIndex: "money",
  542. key: "money",
  543. },
  544. {
  545. title: "催款状态",
  546. dataIndex: "dunStatus",
  547. key: "dunStatus",
  548. render: (text) => {
  549. return getCuikuan(text);
  550. },
  551. },
  552. ],
  553. waterlistDate: [
  554. {
  555. title: "订单编号",
  556. dataIndex: "orderNo",
  557. key: "orderNo",
  558. },
  559. {
  560. title: "平台流水号",
  561. dataIndex: "billNo",
  562. key: "billNo",
  563. // fixed: "left"
  564. },
  565. {
  566. title: "收款金额(万元)",
  567. dataIndex: "transactionAmount",
  568. key: "transactionAmount",
  569. },
  570. {
  571. title: "收款方",
  572. dataIndex: "payeeName",
  573. key: "payeeName",
  574. },
  575. {
  576. title: "付款方",
  577. dataIndex: "payerName",
  578. key: "payerName",
  579. },
  580. {
  581. title: "流水科目",
  582. dataIndex: "transactionSubject",
  583. key: "transactionSubject",
  584. render: (text) => {
  585. return getTransactionProject(text);
  586. },
  587. },
  588. {
  589. title: "收款类型",
  590. dataIndex: "type",
  591. key: "type",
  592. },
  593. {
  594. title: "财务流水时间",
  595. dataIndex: "financialPayTimes",
  596. key: "financialPayTimes",
  597. },
  598. {
  599. title: "财务流水号",
  600. dataIndex: "financialPayNo",
  601. key: "financialPayNo",
  602. },
  603. {
  604. title: "订单负责人",
  605. dataIndex: "saleName",
  606. key: "saleName",
  607. },
  608. {
  609. title: "创建时间",
  610. dataIndex: "createTimes",
  611. key: "createTimes",
  612. },
  613. ],
  614. timeColumns: [
  615. {
  616. title: "合同编号",
  617. dataIndex: "contractNo",
  618. key: "contractNo",
  619. },
  620. {
  621. title: "订单编号",
  622. dataIndex: "orderNo",
  623. key: "orderNo",
  624. },
  625. {
  626. title: "客户名称",
  627. dataIndex: "userName",
  628. key: "userName",
  629. render: text => {
  630. return (
  631. <Tooltip title={text}>
  632. <div style={{
  633. maxWidth:'150px',
  634. overflow:'hidden',
  635. textOverflow: "ellipsis",
  636. whiteSpace:'nowrap',
  637. }}>{text}</div>
  638. </Tooltip>
  639. )
  640. }
  641. },
  642. {
  643. title: "订单部门",
  644. dataIndex: "depName",
  645. key: "depName",
  646. },
  647. {
  648. title: "订单负责人",
  649. dataIndex: "salesmanName",
  650. key: "salesmanName",
  651. },
  652. {
  653. title: "项目类别",
  654. dataIndex: "cname",
  655. key: "cname",
  656. },
  657. {
  658. title: "项目编号",
  659. dataIndex: "id",
  660. key: "id",
  661. },
  662. {
  663. title: "项目名称",
  664. dataIndex: "taskName",
  665. key: "taskName",
  666. },
  667. {
  668. title: "项目负责人",
  669. dataIndex: "receiverName",
  670. key: "receiverName",
  671. },
  672. {
  673. title: "项目价格(万元)",
  674. dataIndex: "commodityPrice",
  675. key: "commodityPrice",
  676. },
  677. {
  678. title: "数量(个)",
  679. dataIndex: "commodityQuantity",
  680. key: "commodityQuantity",
  681. },
  682. {
  683. title: "任务状态",
  684. dataIndex: "taskStatus",
  685. key: "taskStatus",
  686. render: (text) => {
  687. return getTaskStatus(text);
  688. },
  689. },
  690. {
  691. title: "项目状态",
  692. dataIndex: "projectStatus",
  693. key: "projectStatus",
  694. render: (text) => {
  695. return getProjectName(text);
  696. },
  697. },
  698. {
  699. title: "工时",
  700. dataIndex: "hours",
  701. key: "hours",
  702. },
  703. {
  704. title: "是否外包",
  705. dataIndex: "outsource",
  706. key: "outsource",
  707. render: (text) => {
  708. if (text == 0) {
  709. return "否";
  710. } else if (text == 1) {
  711. return "是";
  712. }
  713. },
  714. },
  715. {
  716. title: "签单日期",
  717. dataIndex: "signTime",
  718. key: "signTime",
  719. },
  720. {
  721. title: "派单日期",
  722. dataIndex: "creteTime",
  723. key: "creteTime",
  724. },
  725. {
  726. title: "分配时间",
  727. dataIndex: "taskDistributionTime",
  728. key: "taskDistributionTime",
  729. },
  730. {
  731. title: "完成时间",
  732. dataIndex: "taskEndTime",
  733. key: "taskEndTime",
  734. },
  735. ],
  736. resVisible: false,
  737. cuiColumns: [
  738. {
  739. title: "序号",
  740. dataIndex: "key",
  741. key: "key",
  742. },
  743. {
  744. title: "合同编号",
  745. dataIndex: "contractNo",
  746. key: "contractNo",
  747. },
  748. {
  749. title: "订单编号",
  750. dataIndex: "orderNo",
  751. key: "orderNo",
  752. },
  753. {
  754. title: "客户名称",
  755. dataIndex: "userName",
  756. key: "userName",
  757. render: text => {
  758. return (
  759. <Tooltip title={text}>
  760. <div style={{
  761. maxWidth:'150px',
  762. overflow:'hidden',
  763. textOverflow: "ellipsis",
  764. whiteSpace:'nowrap',
  765. }}>{text}</div>
  766. </Tooltip>
  767. )
  768. }
  769. },
  770. {
  771. title: "订单负责人",
  772. dataIndex: "salesmanName",
  773. key: "salesmanName",
  774. },
  775. {
  776. title: "订单部门",
  777. dataIndex: "depName",
  778. key: "depName",
  779. },
  780. {
  781. title: "订单状态",
  782. dataIndex: "orderStatus",
  783. key: "orderStatus",
  784. render: (text) => {
  785. return getNewOrderStatus(text);
  786. },
  787. },
  788. {
  789. title: "项目状态",
  790. dataIndex: "projectStatus",
  791. key: "projectStatus",
  792. render: (text) => {
  793. return getProjectName(text);
  794. },
  795. },
  796. {
  797. title: "签单金额",
  798. dataIndex: "totalAmount",
  799. key: "totalAmount",
  800. },
  801. {
  802. title: "结算状态",
  803. dataIndex: "liquidationStatus",
  804. key: "liquidationStatus",
  805. render: (text) => {
  806. return getLiquidationStatus(text);
  807. },
  808. },
  809. {
  810. title: "已收款",
  811. dataIndex: "settlementAmount",
  812. key: "settlementAmount",
  813. },
  814. {
  815. title: "应收款",
  816. dataIndex: "accountsReceivable",
  817. key: "accountsReceivable",
  818. },
  819. {
  820. title: "催收科目",
  821. dataIndex: "dunSubject",
  822. key: "dunSubject",
  823. // render: text => {
  824. // return getjiedian(text);
  825. // }
  826. },
  827. {
  828. title: "催款状态",
  829. dataIndex: "dunStatus",
  830. key: "dunStatus",
  831. },
  832. {
  833. title: "催收启动时间",
  834. dataIndex: "startDate",
  835. key: "startDate",
  836. },
  837. ],
  838. proColumns: [
  839. {
  840. title: "序号",
  841. dataIndex: "key",
  842. key: "key",
  843. },
  844. {
  845. title: "合同编号",
  846. dataIndex: "contractNo",
  847. key: "contractNo",
  848. },
  849. {
  850. title: "订单编号",
  851. dataIndex: "orderNo",
  852. key: "orderNo",
  853. },
  854. // {
  855. // title: "项目编号",
  856. // dataIndex: "id",
  857. // key: "id"
  858. // },
  859. {
  860. title: "客户名称",
  861. dataIndex: "userName",
  862. key: "userName",
  863. render: text => {
  864. return (
  865. <Tooltip title={text}>
  866. <div style={{
  867. maxWidth:'150px',
  868. overflow:'hidden',
  869. textOverflow: "ellipsis",
  870. whiteSpace:'nowrap',
  871. }}>{text}</div>
  872. </Tooltip>
  873. )
  874. }
  875. },
  876. {
  877. title: "订单负责人",
  878. dataIndex: "salesmanName",
  879. key: "salesmanName",
  880. },
  881. {
  882. title: "是否主项目",
  883. dataIndex: "main",
  884. key: "main",
  885. render: (text) => {
  886. return text == 0 ? "否" : "是";
  887. },
  888. },
  889. {
  890. title: "项目类别",
  891. dataIndex: "cname",
  892. key: "cname",
  893. },
  894. {
  895. title: "项目名称",
  896. dataIndex: "commodityName",
  897. key: "commodityName",
  898. },
  899. {
  900. title: "项目数量",
  901. dataIndex: "commodityQuantity",
  902. key: "commodityQuantity",
  903. render: (text, record) => {
  904. if (record.splitStatus == 1) {
  905. return (
  906. <span>
  907. {text}{" "}
  908. <Tag
  909. color="#108ee9"
  910. onClick={(e) => {
  911. e.stopPropagation();
  912. this.showRes(record);
  913. }}
  914. >
  915. 已拆
  916. </Tag>
  917. </span>
  918. );
  919. } else {
  920. return text;
  921. }
  922. },
  923. },
  924. {
  925. title: "服务市价",
  926. dataIndex: "commodityPrice",
  927. key: "commodityPrice",
  928. },
  929. {
  930. title: "证书编号",
  931. dataIndex: "certificateNumber",
  932. key: "certificateNumber",
  933. },
  934. {
  935. title: "项目状态",
  936. dataIndex: "projectStatus",
  937. key: "projectStatus",
  938. render: (text) => {
  939. return getProjectName(text);
  940. },
  941. },
  942. {
  943. title: "项目说明",
  944. dataIndex: "taskComment",
  945. key: "taskComment",
  946. },
  947. // {
  948. // title: "外包(内部)公司",
  949. // dataIndex: "outsourceName",
  950. // key: "outsourceName",
  951. // },
  952. // {
  953. // title: "外包(内部)价格",
  954. // dataIndex: "outsourcePrice",
  955. // key: "outsourcePrice",
  956. // },
  957. ],
  958. };
  959. },
  960. //页面加载函数
  961. componentWillMount() {
  962. this.loadData();
  963. },
  964. //整行点击
  965. tableRowClick(record) {
  966. this.setState({
  967. visible: true,
  968. });
  969. this.xiangqing(record.orderNo);
  970. this.xiangmu(record.orderNo);
  971. this.jiedian(record.orderNo);
  972. this.jiedianNew(record.orderNo);
  973. },
  974. //点击打卡项目详情
  975. tableRowClickX(record) {
  976. console.log(record);
  977. this.setState({
  978. jid: record.id, //项目ID
  979. kid: record.commodityId, //商品ID
  980. commodityName: record.commodityName, //金额
  981. commodityPrice: record.commodityPrice, //金额
  982. commodityQuantity: record.commodityQuantity, //数量
  983. taskComment: record.taskComment, //备注
  984. main: record.main.toString(), //是否为主要
  985. addnextVisible: true,
  986. dataInfor:record,
  987. addState: 0,
  988. });
  989. },
  990. //项目详情关闭
  991. nextCancel() {
  992. this.setState({
  993. addnextVisible: false,
  994. });
  995. },
  996. //订单详情
  997. xiangqing(orderNos) {
  998. $.ajax({
  999. method: "get",
  1000. dataType: "json",
  1001. crossDomain: false,
  1002. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  1003. data: {
  1004. orderNo: orderNos,
  1005. },
  1006. success: function (data) {
  1007. if (data.error.length || data.data.list == "") {
  1008. if (data.error && data.error.length) {
  1009. message.warning(data.error[0].message);
  1010. }
  1011. } else {
  1012. let thisdata = data.data;
  1013. this.setState({
  1014. orderUid: thisdata.uid,
  1015. orderNo: thisdata.orderNo, //订单编号
  1016. contractNo: thisdata.contractNo, //合同编号
  1017. userName: thisdata.userName, //客户名称
  1018. signDate: thisdata.signDate, //签单时间
  1019. processStatus: thisdata.processStatus, //流程状态
  1020. liquidationStatus: thisdata.liquidationStatus, //结算状态
  1021. contacts: thisdata.contacts, //企业联系人
  1022. contactMobile: thisdata.contactMobile, //联系人电话
  1023. legalPerson: thisdata.legalPerson, //法人
  1024. legalPersonTel: thisdata.legalPersonTel, //法人电话
  1025. firstAmount: thisdata.firstAmount, //签单金额
  1026. totalAmount: thisdata.totalAmount, //首付金额
  1027. approval: thisdata.approval, //特批状态
  1028. settlementAmount: thisdata.settlementAmount, //已收款项
  1029. orderRemarks: thisdata.orderRemarks, //订单留言
  1030. orgCodeUrl: thisdata.contractPictureUrl
  1031. ? splitUrl(
  1032. thisdata.contractPictureUrl,
  1033. ",",
  1034. globalConfig.avatarHost + "/upload"
  1035. )
  1036. : [], //图片地址
  1037. replenishUrl: thisdata.agreementUrl
  1038. ? splitUrl(
  1039. thisdata.agreementUrl,
  1040. ",",
  1041. globalConfig.avatarHost + "/upload"
  1042. )
  1043. : [],
  1044. salesmanName: thisdata.salesmanName, //营销员名称
  1045. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  1046. financeName: thisdata.financeName, //财务名称
  1047. financeMobile: thisdata.financeMobile, //财务电话
  1048. outsource: thisdata.outsource == 0 ? "否" : "是",
  1049. deleteSign:thisdata.deleteSign,
  1050. });
  1051. }
  1052. }.bind(this),
  1053. }).always(
  1054. function () {
  1055. this.setState({
  1056. loading: false,
  1057. });
  1058. }.bind(this)
  1059. );
  1060. },
  1061. //项目列表
  1062. xiangmu(orderNos) {
  1063. $.ajax({
  1064. method: "get",
  1065. dataType: "json",
  1066. crossDomain: false,
  1067. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1068. data: {
  1069. orderNo: orderNos,
  1070. },
  1071. success: function (data) {
  1072. let theArr = [];
  1073. if (data.error.length || data.data.list == "") {
  1074. if (data.error && data.error.length) {
  1075. message.warning(data.error[0].message);
  1076. }
  1077. } else {
  1078. for (let i = 0; i < data.data.length; i++) {
  1079. let thisdata = data.data[i];
  1080. thisdata.key = i;
  1081. theArr.push(thisdata);
  1082. }
  1083. }
  1084. this.setState({
  1085. dataSourceX: theArr,
  1086. });
  1087. }.bind(this),
  1088. }).always(
  1089. function () {
  1090. this.setState({
  1091. loading: false,
  1092. });
  1093. }.bind(this)
  1094. );
  1095. },
  1096. rizhi() {
  1097. console.log(this.state.orderNo);
  1098. this.setState({
  1099. loading: true,
  1100. });
  1101. $.ajax({
  1102. method: "get",
  1103. dataType: "json",
  1104. crossDomain: false,
  1105. url: "/api/admin/newOrder/selectOrderLog",
  1106. data: {
  1107. orderNo: this.state.orderNo,
  1108. },
  1109. success: function (data) {
  1110. let theArr = [];
  1111. let thisData = data.data;
  1112. if (thisData && !thisData.length) {
  1113. if (data.error && data.error.length) {
  1114. message.warning(data.error[0].message);
  1115. }
  1116. thisData = {};
  1117. } else {
  1118. for (let i = 0; i < data.data.length; i++) {
  1119. let thisdata = data.data[i];
  1120. theArr.push({
  1121. processName: thisdata.processName,
  1122. adminName: thisdata.adminName,
  1123. createDate: thisdata.createDate,
  1124. remarks: thisdata.remarks,
  1125. });
  1126. }
  1127. }
  1128. this.setState({
  1129. dataSourcerizhi: theArr,
  1130. });
  1131. }.bind(this),
  1132. }).always(
  1133. function () {
  1134. this.setState({
  1135. loading: false,
  1136. });
  1137. }.bind(this)
  1138. );
  1139. },
  1140. //查看订单日志
  1141. getOrderLog() {
  1142. this.setState({
  1143. rizhivisible: true,
  1144. });
  1145. this.rizhi();
  1146. },
  1147. closeOrderLog() {
  1148. this.setState({
  1149. rizhivisible: false,
  1150. });
  1151. },
  1152. //节点列表
  1153. jiedian(orderNos) {
  1154. $.ajax({
  1155. method: "get",
  1156. dataType: "json",
  1157. crossDomain: false,
  1158. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  1159. data: {
  1160. orderNo: orderNos,
  1161. },
  1162. success: function (data) {
  1163. let theArr = [];
  1164. let thisData = [];
  1165. if (data.error.length || data.data.list == "") {
  1166. if (data.error && data.error.length) {
  1167. message.warning(data.error[0].message);
  1168. }
  1169. } else {
  1170. for (let i = 0; i < data.data.length; i++) {
  1171. thisData = data.data[i];
  1172. theArr.push({
  1173. key: i,
  1174. dunSubject: thisData.dunSubject
  1175. ? thisData.dunSubject.toString()
  1176. : "", //催款科目
  1177. id: thisData.id, //节点Id
  1178. money: thisData.money, //催款金额
  1179. dunStatus: thisData.dunStatus, //催款状态
  1180. });
  1181. }
  1182. this.setState({
  1183. contactList: theArr,
  1184. });
  1185. }
  1186. }.bind(this),
  1187. }).always(
  1188. function () {
  1189. this.setState({
  1190. loading: false,
  1191. });
  1192. }.bind(this)
  1193. );
  1194. },
  1195. //查看催款节点
  1196. jiedianNew(orderNos) {
  1197. $.ajax({
  1198. method: "get",
  1199. dataType: "json",
  1200. crossDomain: false,
  1201. url:
  1202. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  1203. data: {
  1204. orderNo: orderNos,
  1205. },
  1206. success: function (data) {
  1207. if (data.error && data.error.length) {
  1208. message.warning(data.error[0].message);
  1209. } else {
  1210. let theArr = [];
  1211. let thisData = [];
  1212. let arr = data.data || [];
  1213. let totalCui = 0;
  1214. for (let i = 0; i < arr.length; i++) {
  1215. thisData = arr[i];
  1216. totalCui += +thisData.money;
  1217. theArr.push({
  1218. key: i,
  1219. dunSubject: thisData.dunSubject
  1220. ? thisData.dunSubject.toString()
  1221. : "", //催款科目
  1222. id: thisData.id, //节点Id
  1223. money: thisData.money, //催款金额
  1224. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  1225. commodityName: thisData.commodityName,
  1226. projectType: thisData.projectType,
  1227. dunTypeName: thisData.dunTypeName,
  1228. status: thisData.status,
  1229. waitDay: thisData.waitDay,
  1230. effectiveCount: thisData.effectiveCount,
  1231. startDate: thisData.startDate,
  1232. dunType: thisData.dunType,
  1233. appropriationRatio: thisData.appropriationRatio,
  1234. customizeName: thisData.customizeName,
  1235. customizeTimes: thisData.customizeTimes,
  1236. tid: thisData.tid,
  1237. });
  1238. }
  1239. if (!totalCui) {
  1240. totalCui = 0;
  1241. }
  1242. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  1243. this.setState({
  1244. contactListNew: theArr,
  1245. totalCui,
  1246. });
  1247. }
  1248. }.bind(this),
  1249. }).always(
  1250. function () {
  1251. this.setState({
  1252. loading: false,
  1253. });
  1254. }.bind(this)
  1255. );
  1256. },
  1257. //审核通过
  1258. examOk() {
  1259. if (!this.state.reason) {
  1260. message.warning("请填写备注");
  1261. return;
  1262. }
  1263. this.setState({
  1264. loading: true,
  1265. });
  1266. $.ajax({
  1267. method: "post",
  1268. dataType: "json",
  1269. crossDomain: false,
  1270. url: globalConfig.context + "/api/admin/newOrder/approvalOrder",
  1271. data: {
  1272. orderNo: this.state.orderNo,
  1273. confirm: 2,
  1274. reason: this.state.reason,
  1275. },
  1276. success: function (data) {
  1277. if (data.error.length || data.data.list == "") {
  1278. if (data.error && data.error.length) {
  1279. message.warning(data.error[0].message);
  1280. }
  1281. } else {
  1282. message.success("该特批订单已通过审核~");
  1283. this.setState({
  1284. visible: false,
  1285. });
  1286. this.passCancel();
  1287. this.reset();
  1288. }
  1289. }.bind(this),
  1290. }).always(
  1291. function () {
  1292. this.setState({
  1293. loading: false,
  1294. });
  1295. }.bind(this)
  1296. );
  1297. },
  1298. //审核不通过
  1299. examOks() {
  1300. if (!this.state.reason) {
  1301. message.warning("请填写备注");
  1302. return;
  1303. }
  1304. this.setState({
  1305. loading: true,
  1306. });
  1307. $.ajax({
  1308. method: "post",
  1309. dataType: "json",
  1310. crossDomain: false,
  1311. url: globalConfig.context + "/api/admin/newOrder/approvalOrder",
  1312. data: {
  1313. orderNo: this.state.orderNo,
  1314. confirm: 3,
  1315. reason: this.state.reason,
  1316. },
  1317. success: function (data) {
  1318. if (data.error.length || data.data.list == "") {
  1319. if (data.error && data.error.length) {
  1320. message.warning(data.error[0].message);
  1321. }
  1322. } else {
  1323. message.success("该特批订单已被驳回~");
  1324. this.setState({
  1325. visible: false,
  1326. noVisible: false,
  1327. reason: "",
  1328. });
  1329. this.loadData();
  1330. this.resets();
  1331. }
  1332. }.bind(this),
  1333. }).always(
  1334. function () {
  1335. this.setState({
  1336. loading: false,
  1337. });
  1338. }.bind(this)
  1339. );
  1340. },
  1341. //点击拒绝
  1342. examNo() {
  1343. this.setState({
  1344. noVisible: true,
  1345. });
  1346. },
  1347. //关闭输入理由框
  1348. noCancel() {
  1349. this.setState({
  1350. noVisible: false,
  1351. reason: "",
  1352. });
  1353. },
  1354. //搜索
  1355. search() {
  1356. this.setState({
  1357. //signBillVisible:false
  1358. });
  1359. this.loadData();
  1360. },
  1361. //重置
  1362. reset() {
  1363. this.setState({
  1364. signBillVisible: false,
  1365. });
  1366. this.state.orderNoSearch = undefined;
  1367. this.state.contractNoSearch = undefined;
  1368. this.state.nameSearch = undefined;
  1369. this.state.liquidationStatusSearch = [];
  1370. this.state.departmenttList = undefined;
  1371. this.state.releaseDate[0] = undefined;
  1372. this.state.releaseDate[1] = undefined;
  1373. this.state.approvalSearch = "1";
  1374. this.loadData();
  1375. },
  1376. resets() {
  1377. this.state.orderNo = "";
  1378. this.state.customerName = "";
  1379. this.state.departmenttSearch = undefined;
  1380. this.state.releaseDate[0] = undefined;
  1381. this.state.releaseDate[1] = undefined;
  1382. },
  1383. getOrgCodeUrl(e) {
  1384. this.setState({ orgCodeUrl: e });
  1385. },
  1386. getReplenishUrl(e) {
  1387. this.setState({ replenishUrl: e });
  1388. },
  1389. downImg() {
  1390. let num = 0;
  1391. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1392. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1393. num = i;
  1394. }
  1395. }
  1396. if (num == this.state.orgCodeUrl.length - 1) {
  1397. return message.warning("已经是最后一张了哦");
  1398. }
  1399. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  1400. this.setState({
  1401. previewImage: this.state.previewImage,
  1402. rotateDeg: 0,
  1403. });
  1404. },
  1405. upImg() {
  1406. let num = 0;
  1407. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1408. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1409. num = i;
  1410. }
  1411. }
  1412. if (num == 0) {
  1413. return message.warning("已经是第一张了哦");
  1414. }
  1415. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  1416. this.setState({
  1417. previewImage: this.state.previewImage,
  1418. rotateDeg: 0,
  1419. });
  1420. },
  1421. rotate() {
  1422. let rotateDeg = this.state.rotateDeg + 90;
  1423. this.setState({
  1424. rotateDeg,
  1425. });
  1426. },
  1427. downImgs() {
  1428. let num = 0;
  1429. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1430. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1431. num = i;
  1432. }
  1433. }
  1434. if (num == this.state.replenishUrl.length - 1) {
  1435. return message.warning("已经是最后一张了哦");
  1436. }
  1437. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  1438. this.setState({
  1439. previewImage: this.state.previewImage,
  1440. rotateDeg: 0,
  1441. });
  1442. },
  1443. upImgs() {
  1444. let num = 0;
  1445. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1446. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1447. num = i;
  1448. }
  1449. }
  1450. if (num == 0) {
  1451. return message.warning("已经是第一张了哦");
  1452. }
  1453. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  1454. this.setState({
  1455. previewImage: this.state.previewImage,
  1456. rotateDeg: 0,
  1457. });
  1458. },
  1459. rotates() {
  1460. let rotateDeg = this.state.rotateDeg + 90;
  1461. this.setState({
  1462. rotateDeg,
  1463. });
  1464. },
  1465. changeList(arr) {
  1466. const newArr = [];
  1467. this.state.columns.forEach((item) => {
  1468. arr.forEach((val) => {
  1469. if (val === item.title) {
  1470. newArr.push(item);
  1471. }
  1472. });
  1473. });
  1474. this.setState({
  1475. changeList: newArr,
  1476. });
  1477. },
  1478. //关闭详情
  1479. visitCancel() {
  1480. this.setState({
  1481. visible: false,
  1482. });
  1483. this.resets();
  1484. },
  1485. visitOk() {
  1486. this.setState({
  1487. visible: false,
  1488. });
  1489. this.resets();
  1490. },
  1491. waterData() {
  1492. this.state.data = [];
  1493. this.setState({
  1494. loading: true,
  1495. });
  1496. $.ajax({
  1497. method: "get",
  1498. dataType: "json",
  1499. crossDomain: false,
  1500. url: globalConfig.context + "/api/admin/financial/myBillList",
  1501. data: {
  1502. orderNo: this.state.selectedRowKeys[0],
  1503. pageSize: 9999,
  1504. whoType: 1,
  1505. },
  1506. success: function (data) {
  1507. let theArr = [];
  1508. let waterSum = 0;
  1509. if (!data.data || !data.data.list) {
  1510. if (data.error && data.error.length) {
  1511. message.warning(data.error[0].message);
  1512. }
  1513. } else {
  1514. for (let i = 0; i < data.data.list.length; i++) {
  1515. let thisdata = data.data.list[i];
  1516. waterSum += parseFloat(thisdata.transactionAmount);
  1517. theArr.push({
  1518. key: i,
  1519. orderNo: thisdata.orderNo,
  1520. billNo: thisdata.billNo,
  1521. transactionAmount: thisdata.transactionAmount,
  1522. payeeName: thisdata.payeeName,
  1523. payerName: thisdata.payerName,
  1524. transactionSubject: thisdata.transactionSubject,
  1525. transactionChannel: thisdata.transactionChannel,
  1526. financialPayTimes: thisdata.financialPayTimes,
  1527. financialPayNo: thisdata.financialPayNo,
  1528. createrName: thisdata.createrName,
  1529. saleName: thisdata.saleName,
  1530. createTimes: thisdata.createTimes,
  1531. type: thisdata.type == 0 ? "手工" : "批量",
  1532. });
  1533. }
  1534. }
  1535. this.setState({
  1536. waterData: theArr,
  1537. waterSum: (Math.round(waterSum * 1000000) / 1000000).toFixed(6),
  1538. });
  1539. }.bind(this),
  1540. }).always(
  1541. function () {
  1542. this.setState({
  1543. loading: false,
  1544. });
  1545. }.bind(this)
  1546. );
  1547. },
  1548. waterCanl() {
  1549. this.setState({
  1550. cvisible: false,
  1551. });
  1552. },
  1553. // 拆分详细
  1554. showRes(record) {
  1555. this.setState({
  1556. resVisible: true,
  1557. resRecord: record,
  1558. });
  1559. },
  1560. resCancel() {
  1561. this.setState({
  1562. resVisible: false,
  1563. });
  1564. },
  1565. exportKaip() {
  1566. window.location.href =
  1567. globalConfig.context +
  1568. "/api/admin/receivables/exportInvoice?" +
  1569. `orderNo=${this.state.selectedRowKeys}`;
  1570. },
  1571. exportAll() {
  1572. window.location.href =
  1573. globalConfig.context +
  1574. "/api/admin/receivables/exportReceivables?" +
  1575. `orderNo=${
  1576. this.state.orderNoSearch ? this.state.orderNoSearch : ""
  1577. }&buyerName=${
  1578. this.state.nameSearch ? this.state.nameSearch : ""
  1579. }&departmentId=${
  1580. this.state.departmenttList ? this.state.departmenttList : ""
  1581. }&contractNo=${
  1582. this.state.contractNoSearch ? this.state.contractNoSearch : ""
  1583. }&processStatus=${this.state.processStatusSearch}`;
  1584. },
  1585. exportWater() {
  1586. window.location.href =
  1587. globalConfig.context +
  1588. "/api/admin/receivables/exportMyBill?" +
  1589. `orderNo=${this.state.selectedRowKeys}&whoType=1`;
  1590. },
  1591. timeData() {
  1592. this.setState({
  1593. loading: true,
  1594. });
  1595. $.ajax({
  1596. method: "get",
  1597. dataType: "json",
  1598. crossDomain: false,
  1599. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  1600. data: {
  1601. orderNo: this.state.selectedRowKeys[0],
  1602. pageSize: 9999,
  1603. },
  1604. success: function (data) {
  1605. let theArr = [];
  1606. if (!data.data || !data.data.list) {
  1607. if (data.error && data.error.length) {
  1608. message.warning(data.error[0].message);
  1609. }
  1610. } else {
  1611. for (let i = 0; i < data.data.list.length; i++) {
  1612. let thisdata = data.data.list[i];
  1613. theArr.push({
  1614. key: i + 1,
  1615. id: thisdata.id, //ID
  1616. orderNo: thisdata.orderNo, //订单编号
  1617. taskName: thisdata.taskName, //任务名称
  1618. userName: thisdata.userName, //客户名称
  1619. cname: thisdata.cname, //项目品类
  1620. taskStatus: thisdata.taskStatus, //任务状态
  1621. receiverName: thisdata.receiverName, //负责人
  1622. hours: thisdata.hours, //任务工时
  1623. depName: thisdata.depName, //派单公司
  1624. contractNo: thisdata.contractNo,
  1625. signTime: thisdata.signTime,
  1626. creteTime: thisdata.creteTime,
  1627. projectStatus: thisdata.projectStatus,
  1628. commodityPrice: thisdata.commodityPrice, //价格
  1629. commodityQuantity: thisdata.commodityQuantity, //数量
  1630. salesmanName: thisdata.salesmanName, //订单负责人
  1631. taskDistributionTime: thisdata.taskDistributionTime,
  1632. taskEndTime: thisdata.taskEndTime,
  1633. outsource: thisdata.outsource,
  1634. });
  1635. }
  1636. }
  1637. this.setState({
  1638. timeDataList: theArr,
  1639. });
  1640. }.bind(this),
  1641. }).always(
  1642. function () {
  1643. this.setState({
  1644. loading: false,
  1645. });
  1646. }.bind(this)
  1647. );
  1648. },
  1649. exportTime() {
  1650. const data = {
  1651. orderNo: this.state.selectedRowKeys[0],
  1652. pageSize: 9999,
  1653. };
  1654. window.location.href =
  1655. globalConfig.context +
  1656. "/api/admin/orderProject/exportMyTaskList?" +
  1657. $.param(data);
  1658. },
  1659. exportPro() {
  1660. const data = {
  1661. orderNo: this.state.selectedRowKeys[0],
  1662. };
  1663. window.location.href =
  1664. globalConfig.context +
  1665. "/api/admin/newOrder/exportOrderTaskData?" +
  1666. $.param(data);
  1667. },
  1668. exportCui() {
  1669. var data = {
  1670. orderNo: this.state.selectedRowKeys[0]
  1671. ? this.state.selectedRowKeys[0]
  1672. : undefined, //订单编号
  1673. // specially: 1,
  1674. pageSize: 9999,
  1675. };
  1676. window.location.href =
  1677. globalConfig.context +
  1678. "/api/admin/newOrder/exportOrderDunData?" +
  1679. $.param(data);
  1680. },
  1681. cuiData() {
  1682. this.setState({
  1683. loading: true,
  1684. });
  1685. $.ajax({
  1686. method: "get",
  1687. dataType: "json",
  1688. crossDomain: false,
  1689. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  1690. data: {
  1691. orderNo: this.state.selectedRowKeys[0],
  1692. pageSize: 9999,
  1693. },
  1694. success: function (data) {
  1695. let theArr = [];
  1696. if (!data.data || !data.data.list) {
  1697. if (data.error && data.error.length) {
  1698. message.warning(data.error[0].message);
  1699. }
  1700. } else {
  1701. for (let i = 0; i < data.data.list.length; i++) {
  1702. let thisdata = data.data.list[i];
  1703. theArr.push({
  1704. key: i + 1,
  1705. orderNo: thisdata.orderNo,
  1706. contractNo: thisdata.contractNo,
  1707. userName: thisdata.userName,
  1708. buyerName: thisdata.buyerName,
  1709. departmentName: thisdata.departmentName,
  1710. salesmanName: thisdata.salesmanName,
  1711. depName: thisdata.depName,
  1712. orderStatus: thisdata.orderStatus,
  1713. projectStatus: thisdata.projectStatus,
  1714. totalAmount: thisdata.totalAmount,
  1715. liquidationStatus: thisdata.liquidationStatus,
  1716. settlementAmount: thisdata.settlementAmount,
  1717. accountsReceivable: thisdata.accountsReceivable,
  1718. dunSubject: thisdata.dunSubject,
  1719. startDate: thisdata.startDate,
  1720. taskStatus: thisdata.taskStatus,
  1721. cname: thisdata.cname,
  1722. id: thisdata.id,
  1723. taskName: thisdata.taskName,
  1724. hours: thisdata.hours,
  1725. taskDistributionTime: thisdata.taskDistributionTime,
  1726. taskEndTime: thisdata.taskEndTime,
  1727. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
  1728. });
  1729. }
  1730. }
  1731. this.setState({
  1732. cuiDataList: theArr,
  1733. });
  1734. }.bind(this),
  1735. }).always(
  1736. function () {
  1737. this.setState({
  1738. loading: false,
  1739. });
  1740. }.bind(this)
  1741. );
  1742. },
  1743. proData() {
  1744. this.setState({
  1745. loading: true,
  1746. });
  1747. $.ajax({
  1748. method: "get",
  1749. dataType: "json",
  1750. crossDomain: false,
  1751. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1752. data: {
  1753. orderNo: this.state.selectedRowKeys[0],
  1754. pageSize: 9999,
  1755. },
  1756. success: function (data) {
  1757. let theArr = [];
  1758. let totalWaibao = 0;
  1759. if (!data.data) {
  1760. if (data.error && data.error.length) {
  1761. message.warning(data.error[0].message);
  1762. }
  1763. } else {
  1764. for (let i = 0; i < data.data.length; i++) {
  1765. let thisdata = data.data[i];
  1766. totalWaibao += thisdata.outsourcePrice;
  1767. thisdata.key = i + 1;
  1768. theArr.push(thisdata);
  1769. }
  1770. }
  1771. totalWaibao = (Math.round(totalWaibao * 1000000) / 1000000).toFixed(6);
  1772. this.setState({
  1773. proDataList: theArr,
  1774. totalWaibao,
  1775. });
  1776. }.bind(this),
  1777. }).always(
  1778. function () {
  1779. this.setState({
  1780. loading: false,
  1781. });
  1782. }.bind(this)
  1783. );
  1784. },
  1785. inRecordCanl() {
  1786. this.setState({
  1787. bvisible: false,
  1788. });
  1789. },
  1790. inRecordData() {
  1791. this.setState({
  1792. loading: true,
  1793. });
  1794. $.ajax({
  1795. method: "get",
  1796. dataType: "json",
  1797. crossDomain: false,
  1798. url:
  1799. globalConfig.context +
  1800. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  1801. data: {
  1802. orderNo: this.state.selectedRowKeys[0],
  1803. pageSize: 9999,
  1804. },
  1805. success: function (data) {
  1806. let theArr = [];
  1807. let sum = 0;
  1808. if (!data.data) {
  1809. if (data.error && data.error.length) {
  1810. message.warning(data.error[0].message);
  1811. }
  1812. } else {
  1813. for (let i = 0; i < data.data.list.length; i++) {
  1814. let thisdata = data.data.list[i];
  1815. sum += parseFloat(thisdata.amount);
  1816. theArr.push({
  1817. id: thisdata.id,
  1818. orderno: thisdata.orderno, //订单编号
  1819. amount: thisdata.amount, //签单金额
  1820. createTime: thisdata.createTime, //流程状态
  1821. status: thisdata.status, //结算状态
  1822. rejectReason: thisdata.rejectReason,
  1823. });
  1824. }
  1825. }
  1826. this.setState({
  1827. recordData: theArr,
  1828. sum: sum.toFixed(6),
  1829. });
  1830. }.bind(this),
  1831. }).done(
  1832. function () {
  1833. this.setState({
  1834. loading: false,
  1835. });
  1836. }.bind(this)
  1837. );
  1838. },
  1839. // 通过弹出备注框
  1840. pass() {
  1841. this.setState({
  1842. reason: "",
  1843. passVisible: true,
  1844. });
  1845. },
  1846. passCancel() {
  1847. this.setState({
  1848. reason: "",
  1849. passVisible: false,
  1850. });
  1851. },
  1852. printAll() {
  1853. this.setState({
  1854. dvisible: true,
  1855. });
  1856. this.loadData(1, 9999);
  1857. },
  1858. render() {
  1859. const formItemLayout = {
  1860. labelCol: { span: 8 },
  1861. wrapperCol: { span: 14 },
  1862. };
  1863. const FormItem = Form.Item;
  1864. const { RangePicker } = DatePicker;
  1865. const cuiDataList = this.state.contactList || [];
  1866. const rowSelection = {
  1867. selectedRowKeys: this.state.selectedRowKeys,
  1868. onChange: (selectedRowKeys, selectedRows) => {
  1869. this.setState({
  1870. modalVisible: false,
  1871. selectedRows: selectedRows.slice(-1),
  1872. selectedRowKeys: selectedRowKeys.slice(-1),
  1873. });
  1874. },
  1875. onSelect: (recordt) => {
  1876. this.setState({
  1877. modalVisible: false,
  1878. recordt: recordt.id,
  1879. });
  1880. },
  1881. };
  1882. return (
  1883. <div className="user-content">
  1884. {this.state.resVisible ? (
  1885. <ResolutionDetail
  1886. cancel={this.resCancel}
  1887. detail={this.state.resRecord}
  1888. visible={this.state.resVisible}
  1889. id={this.state.resRecord.orderNo}
  1890. />
  1891. ) : (
  1892. ""
  1893. )}
  1894. <ShowModalDiv ShowModal={this.state.showModal} />
  1895. <div className="content-title" style={{ marginBottom: 10 }}>
  1896. <span style={{ fontWeight: 900, fontSize: 16 }}>特批订单审核</span>
  1897. </div>
  1898. <Tabs defaultActiveKey="2" onChange={this.callback} className="test">
  1899. <TabPane tab="更改表格显示数据" key="1">
  1900. <div style={{ marginLeft: 10 }}>
  1901. <ChooseList
  1902. columns={this.state.columns}
  1903. changeFn={this.changeList}
  1904. changeList={this.state.changeList}
  1905. top={55}
  1906. margin={11}
  1907. />
  1908. </div>
  1909. </TabPane>
  1910. <TabPane tab="搜索" key="2">
  1911. <div className="user-search" style={{ marginLeft: 10 }}>
  1912. <Input
  1913. placeholder="订单编号"
  1914. value={this.state.orderNoSearch}
  1915. onChange={(e) => {
  1916. this.setState({ orderNoSearch: e.target.value });
  1917. }}
  1918. />
  1919. <Input
  1920. placeholder="客户名称"
  1921. value={this.state.nameSearch}
  1922. onChange={(e) => {
  1923. this.setState({ nameSearch: e.target.value });
  1924. }}
  1925. />
  1926. <DepartmentList
  1927. value={this.state.departmenttList}
  1928. onChange={e => {
  1929. this.setState({ departmenttList: e });
  1930. }}/>
  1931. <Input
  1932. placeholder="合同编号"
  1933. value={this.state.contractNoSearch}
  1934. onChange={(e) => {
  1935. this.setState({
  1936. contractNoSearch: e.target.value,
  1937. });
  1938. }}
  1939. />
  1940. <Select
  1941. placeholder="特批状态"
  1942. onChange={(e) => {
  1943. this.setState({ approvalSearch: e });
  1944. }}
  1945. style={{ width: 160, marginRight: 5 }}
  1946. value={this.state.approvalSearch}
  1947. >
  1948. <Option value="1">特批待审核</Option>
  1949. <Option value="2">特批(通过以及驳回)</Option>
  1950. </Select>
  1951. <Select
  1952. placeholder="结算状态"
  1953. onChange={(e) => {
  1954. this.setState({ liquidationStatusSearch: e });
  1955. }}
  1956. style={{ width: 160, marginRight: 5 }}
  1957. value={this.state.liquidationStatusSearch}
  1958. >
  1959. <Option value="0">首付待付清</Option>
  1960. <Option value="1">尾款待付清</Option>
  1961. <Option value="2">已付清</Option>
  1962. </Select>
  1963. <span style={{}}>下单日期:</span>
  1964. <RangePicker
  1965. value={[
  1966. this.state.releaseDate[0]
  1967. ? moment(this.state.releaseDate[0])
  1968. : null,
  1969. this.state.releaseDate[1]
  1970. ? moment(this.state.releaseDate[1])
  1971. : null,
  1972. ]}
  1973. onChange={(data, dataString) => {
  1974. this.setState({ releaseDate: dataString });
  1975. }}
  1976. />
  1977. <Button
  1978. type="primary"
  1979. onClick={this.search}
  1980. style={{ marginLeft: 10 }}
  1981. disabled={this.state.loadingA ? true : false}
  1982. >
  1983. 搜索
  1984. </Button>
  1985. <Button onClick={this.reset}>重置</Button>
  1986. </div>
  1987. </TabPane>
  1988. <TabPane tab="打印" key="3">
  1989. <Button
  1990. type="primary"
  1991. style={{ margin: "11px 0px 10px 10px" }}
  1992. onClick={this.printAll}
  1993. disabled={!this.state.dataSource.length}
  1994. >
  1995. 打印所有列表信息
  1996. </Button>
  1997. <Button
  1998. type="primary"
  1999. disabled={this.state.selectedRowKeys.length != 1}
  2000. style={{ margin: "11px 0px 10px 10px" }}
  2001. onClick={() => {
  2002. this.inRecordData();
  2003. this.setState({
  2004. bvisible: true,
  2005. });
  2006. }}
  2007. >
  2008. 打印开票详情
  2009. </Button>
  2010. <Button
  2011. type="primary"
  2012. disabled={this.state.selectedRowKeys.length != 1}
  2013. style={{ margin: "11px 0px 10px 10px" }}
  2014. onClick={() => {
  2015. this.waterData();
  2016. this.setState({
  2017. cvisible: true,
  2018. });
  2019. }}
  2020. >
  2021. 打印收款流水
  2022. </Button>
  2023. <Button
  2024. type="primary"
  2025. disabled={this.state.selectedRowKeys.length != 1}
  2026. style={{ margin: "11px 0px 10px 10px" }}
  2027. onClick={() => {
  2028. this.timeData();
  2029. this.setState({
  2030. timeVisible: true,
  2031. });
  2032. }}
  2033. >
  2034. 打印工时信息
  2035. </Button>
  2036. <Button
  2037. type="primary"
  2038. disabled={this.state.selectedRowKeys.length != 1}
  2039. style={{ margin: "11px 0px 10px 10px" }}
  2040. onClick={() => {
  2041. this.cuiData();
  2042. this.setState({
  2043. cuiVisible: true,
  2044. });
  2045. }}
  2046. >
  2047. 打印催款信息
  2048. </Button>
  2049. <Button
  2050. type="primary"
  2051. disabled={this.state.selectedRowKeys.length != 1}
  2052. style={{ margin: "11px 0px 10px 10px" }}
  2053. onClick={() => {
  2054. this.proData();
  2055. this.setState({
  2056. proVisible: true,
  2057. });
  2058. }}
  2059. >
  2060. 打印项目信息
  2061. </Button>
  2062. </TabPane>
  2063. <TabPane tab="导出Excel" key="4">
  2064. {/* <Button
  2065. type="primary"
  2066. style={{ margin: "11px 0px 10px 10px" }}
  2067. onClick={this.exportAll}
  2068. >
  2069. 导出当前列表
  2070. </Button> */}
  2071. <Button
  2072. type="primary"
  2073. disabled={this.state.selectedRowKeys.length != 1}
  2074. style={{ margin: "11px 0px 10px 10px" }}
  2075. onClick={this.exportKaip}
  2076. >
  2077. 导出所选开票详情
  2078. </Button>
  2079. <Button
  2080. type="primary"
  2081. disabled={this.state.selectedRowKeys.length != 1}
  2082. style={{ margin: "11px 0px 10px 10px" }}
  2083. onClick={this.exportWater}
  2084. >
  2085. 导出所选收款详情流水
  2086. </Button>
  2087. <Button
  2088. type="primary"
  2089. disabled={this.state.selectedRowKeys.length != 1}
  2090. style={{ margin: "11px 0px 10px 10px" }}
  2091. onClick={this.exportTime}
  2092. >
  2093. 导出所选工时信息
  2094. </Button>
  2095. <Button
  2096. type="primary"
  2097. disabled={this.state.selectedRowKeys.length != 1}
  2098. style={{ margin: "11px 0px 10px 10px" }}
  2099. onClick={this.exportCui}
  2100. >
  2101. 导出催款信息
  2102. </Button>
  2103. <Button
  2104. type="primary"
  2105. disabled={this.state.selectedRowKeys.length != 1}
  2106. style={{ margin: "11px 0px 10px 10px" }}
  2107. onClick={this.exportPro}
  2108. >
  2109. 导出项目详情
  2110. </Button>
  2111. </TabPane>
  2112. <TabPane tab="查看" key="5">
  2113. <Button
  2114. type="primary"
  2115. disabled={this.state.selectedRowKeys.length != 1}
  2116. style={{ margin: "11px 0px 10px 10px" }}
  2117. onClick={() => {
  2118. this.inRecordData();
  2119. this.setState({
  2120. bvisible: true,
  2121. });
  2122. }}
  2123. >
  2124. 查看开票详情
  2125. </Button>
  2126. <Button
  2127. type="primary"
  2128. disabled={this.state.selectedRowKeys.length != 1}
  2129. style={{ margin: "11px 0px 10px 10px" }}
  2130. onClick={() => {
  2131. this.waterData();
  2132. this.setState({
  2133. cvisible: true,
  2134. });
  2135. }}
  2136. >
  2137. 详情收款流水
  2138. </Button>
  2139. <Button
  2140. type="primary"
  2141. disabled={this.state.selectedRowKeys.length != 1}
  2142. style={{ margin: "11px 0px 10px 10px" }}
  2143. onClick={() => {
  2144. this.timeData();
  2145. this.setState({
  2146. timeVisible: true,
  2147. });
  2148. }}
  2149. >
  2150. 工时信息
  2151. </Button>
  2152. <Button
  2153. type="primary"
  2154. disabled={this.state.selectedRowKeys.length != 1}
  2155. style={{ margin: "11px 0px 10px 10px" }}
  2156. onClick={() => {
  2157. this.cuiData();
  2158. this.setState({
  2159. cuiVisible: true,
  2160. });
  2161. }}
  2162. >
  2163. 催款信息
  2164. </Button>
  2165. <Button
  2166. type="primary"
  2167. disabled={this.state.selectedRowKeys.length != 1}
  2168. style={{ margin: "11px 0px 10px 10px" }}
  2169. onClick={() => {
  2170. this.proData();
  2171. this.setState({
  2172. proVisible: true,
  2173. });
  2174. }}
  2175. >
  2176. 项目信息
  2177. </Button>
  2178. </TabPane>
  2179. {/* <TabPane tab="批量操作" key="6">
  2180. <Button
  2181. type="primary"
  2182. disabled={this.state.selectedRowKeys.length == 0}
  2183. style={{ margin: "0px 0px 10px 10px" }}
  2184. onClick={e => {
  2185. e.stopPropagation(),
  2186. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  2187. }}
  2188. >
  2189. 转交
  2190. </Button>
  2191. </TabPane> */}
  2192. </Tabs>
  2193. <div className="user-search">
  2194. <div className="patent-table">
  2195. <Spin spinning={this.state.loading}>
  2196. <Table
  2197. columns={
  2198. this.state.changeList == undefined
  2199. ? this.state.columns
  2200. : this.state.changeList
  2201. }
  2202. dataSource={this.state.dataSource}
  2203. rowSelection={rowSelection}
  2204. pagination={this.state.pagination}
  2205. onRowClick={this.tableRowClick}
  2206. bordered
  2207. size="small"
  2208. />
  2209. </Spin>
  2210. </div>
  2211. {this.state.visible ? <Modal
  2212. maskClosable={false}
  2213. className="customeDetails"
  2214. footer=""
  2215. title="订单详情"
  2216. width="900px"
  2217. visible={this.state.visible}
  2218. onOk={this.visitOk}
  2219. onCancel={this.visitCancel}
  2220. >
  2221. <Form
  2222. layout="horizontal"
  2223. onSubmit={this.handleSubmit}
  2224. id="demand-form"
  2225. style={{ paddingBottom: "40px" }}
  2226. >
  2227. <Spin spinning={this.state.loading}>
  2228. <div className="clearfix">
  2229. <div style={{position:"absolute",top:'-52px',left:'81px',zIndex:10000}}>
  2230. <OrderItemStatus deleteSign={this.state.deleteSign}/>
  2231. </div>
  2232. <FormItem
  2233. className="half-item"
  2234. {...formItemLayout}
  2235. label="订单编号"
  2236. >
  2237. <span>{this.state.orderNo}</span>
  2238. </FormItem>
  2239. <FormItem
  2240. className="half-item"
  2241. {...formItemLayout}
  2242. label="合同编号"
  2243. >
  2244. <span>{this.state.contractNo}</span>
  2245. </FormItem>
  2246. <FormItem
  2247. className="half-item"
  2248. {...formItemLayout}
  2249. label="客户名称"
  2250. >
  2251. <span>
  2252. {this.state.userName}
  2253. <EnterpriseNameChange
  2254. type='journal'
  2255. style={{ marginLeft: 10 }}
  2256. enterpriseId={this.state.orderUid}/>
  2257. </span>
  2258. </FormItem>
  2259. <FormItem
  2260. className="half-item"
  2261. {...formItemLayout}
  2262. label="合同签订时间"
  2263. >
  2264. <span>{this.state.signDate}</span>
  2265. </FormItem>
  2266. <FormItem
  2267. className="half-item"
  2268. {...formItemLayout}
  2269. label="流程状态"
  2270. >
  2271. <span>{getProcessStatus(this.state.processStatus)}</span>
  2272. </FormItem>
  2273. <FormItem
  2274. className="half-item"
  2275. {...formItemLayout}
  2276. label="结算状态"
  2277. >
  2278. <span>
  2279. {getLiquidationStatus(this.state.liquidationStatus)}
  2280. </span>
  2281. </FormItem>
  2282. <FormItem
  2283. className="half-item"
  2284. {...formItemLayout}
  2285. label="企业联系人"
  2286. >
  2287. <span>{this.state.contacts}</span>
  2288. </FormItem>
  2289. <FormItem
  2290. className="half-item"
  2291. {...formItemLayout}
  2292. label="联系人电话"
  2293. >
  2294. <span>{this.state.contactMobile}</span>
  2295. </FormItem>
  2296. <FormItem
  2297. className="half-item"
  2298. {...formItemLayout}
  2299. label="企业法人"
  2300. >
  2301. <span>{this.state.legalPerson}</span>
  2302. </FormItem>
  2303. <FormItem
  2304. className="half-item"
  2305. {...formItemLayout}
  2306. label="法人电话"
  2307. >
  2308. <span>{this.state.legalPersonTel}</span>
  2309. </FormItem>
  2310. <FormItem
  2311. className="half-item"
  2312. {...formItemLayout}
  2313. label="签单金额(万元)"
  2314. >
  2315. <span>{this.state.totalAmount}</span>
  2316. </FormItem>
  2317. <FormItem
  2318. className="half-item"
  2319. {...formItemLayout}
  2320. label="首付金额(万元)"
  2321. >
  2322. <span>{this.state.firstAmount}</span>
  2323. </FormItem>
  2324. <FormItem
  2325. className="half-item"
  2326. {...formItemLayout}
  2327. label="特批立项"
  2328. >
  2329. <span>{getApprovedState(this.state.approval)}</span>
  2330. </FormItem>
  2331. <FormItem
  2332. className="half-item"
  2333. {...formItemLayout}
  2334. label="已收款项(万元)"
  2335. >
  2336. <span>{this.state.settlementAmount}</span>
  2337. </FormItem>
  2338. <FormItem
  2339. className="half-item"
  2340. {...formItemLayout}
  2341. label="是否外包"
  2342. >
  2343. <span>{this.state.outsource}</span>
  2344. </FormItem>
  2345. <div className="clearfix">
  2346. <FormItem
  2347. labelCol={{ span: 4 }}
  2348. wrapperCol={{ span: 16 }}
  2349. label="订单留言"
  2350. >
  2351. <span>{this.state.orderRemarks}</span>
  2352. </FormItem>
  2353. </div>
  2354. <div className="clearfix">
  2355. <FormItem
  2356. labelCol={{ span: 4 }}
  2357. wrapperCol={{ span: 18 }}
  2358. label={
  2359. <span>
  2360. <strong style={{ color: "#f00" }}>*</strong>
  2361. 合同扫描件
  2362. </span>
  2363. }
  2364. >
  2365. <PicturesWall
  2366. domId={'approveds1'}
  2367. fileList={this.getOrgCodeUrl}
  2368. pictureUrl={this.state.orgCodeUrl}
  2369. />
  2370. <p>图片建议:要清晰。</p>
  2371. <Button
  2372. style={{
  2373. float: "right",
  2374. marginRight: "140px",
  2375. marginTop: "20px",
  2376. }}
  2377. onClick={this.getOrderLog}
  2378. >
  2379. 查看订单 日志
  2380. </Button>
  2381. </FormItem>
  2382. <FormItem
  2383. labelCol={{ span: 4 }}
  2384. wrapperCol={{ span: 18 }}
  2385. label={
  2386. <span>
  2387. 补充协议
  2388. </span>
  2389. }
  2390. >
  2391. <PicturesWall
  2392. domId={'approveds2'}
  2393. fileList={this.getReplenishUrl}
  2394. pictureUrl={this.state.replenishUrl}
  2395. url="/api/admin/order/uploadOrderImg"
  2396. sign=""
  2397. />
  2398. <p>图片建议:要清晰。</p>
  2399. </FormItem>
  2400. </div>
  2401. <div className="clearfix">
  2402. <FormItem
  2403. className="half-item"
  2404. {...formItemLayout}
  2405. label="订单负责人"
  2406. >
  2407. <span>{this.state.salesmanName}</span>
  2408. </FormItem>
  2409. <FormItem
  2410. className="half-item"
  2411. {...formItemLayout}
  2412. label="订单负责人电话"
  2413. >
  2414. <span>{this.state.salesmanMobile}</span>
  2415. </FormItem>
  2416. </div>
  2417. <div className="clearfix">
  2418. <FormItem
  2419. className="half-item"
  2420. {...formItemLayout}
  2421. label="财务负责人"
  2422. >
  2423. <span>{this.state.financeName}</span>
  2424. </FormItem>
  2425. <FormItem
  2426. className="half-item"
  2427. {...formItemLayout}
  2428. label="财务负责人电话"
  2429. >
  2430. <span>{this.state.financeMobile}</span>
  2431. </FormItem>
  2432. </div>
  2433. <div>
  2434. <span style={{ marginLeft: "50px", fontSize: "18px" }}>
  2435. 项目业务
  2436. </span>
  2437. {this.state.processStatus == 0 ? (
  2438. <Button
  2439. type="primary"
  2440. onClick={this.addDetailed}
  2441. style={{
  2442. float: "right",
  2443. marginRight: "50px",
  2444. marginBottom: "15px",
  2445. }}
  2446. >
  2447. 添加项目明细
  2448. </Button>
  2449. ) : (
  2450. ""
  2451. )}
  2452. </div>
  2453. <div className="patent-table">
  2454. <Spin spinning={this.state.loading}>
  2455. <Table
  2456. columns={this.state.columnsX}
  2457. dataSource={this.state.dataSourceX}
  2458. pagination={this.state.paginations}
  2459. onRowClick={this.tableRowClickX}
  2460. bordered
  2461. size="small"
  2462. />
  2463. </Spin>
  2464. </div>
  2465. <div style={{ marginTop: 10 }}>
  2466. <span style={{ marginLeft: 50, fontSize: "18px" }}>
  2467. 催款节点
  2468. </span>
  2469. <span
  2470. style={{
  2471. display: cuiDataList.length ? "none" : "inline-block",
  2472. marginLeft: 10,
  2473. color: "red",
  2474. }}
  2475. >
  2476. 金额总计(万元): {this.state.totalCui}
  2477. </span>
  2478. </div>
  2479. <div className="clearfix">
  2480. <Spin spinning={this.state.loading}>
  2481. <Form layout="horizontal" id="demand-form">
  2482. <Table
  2483. pagination={false}
  2484. bordered
  2485. size="small"
  2486. columns={
  2487. cuiDataList.length
  2488. ? this.state.ContactsLists
  2489. : this.state.ContactsListsNew
  2490. }
  2491. dataSource={
  2492. cuiDataList.length
  2493. ? this.state.contactList
  2494. : this.state.contactListNew
  2495. }
  2496. />
  2497. <Col
  2498. span={24}
  2499. offset={9}
  2500. style={{ marginTop: "15px" }}
  2501. ></Col>
  2502. </Form>
  2503. </Spin>
  2504. </div>
  2505. <div className="addSave" style={{ marginTop: "15px" }}>
  2506. <Button
  2507. className="cancel"
  2508. type="primary"
  2509. onClick={this.pass}
  2510. style={{ marginLeft: "200px" }}
  2511. htmlType="submit"
  2512. >
  2513. 通过
  2514. </Button>
  2515. <Button
  2516. className="cancel"
  2517. type="primary"
  2518. onClick={this.examNo}
  2519. style={{ marginLeft: "50px" }}
  2520. htmlType="submit"
  2521. >
  2522. 驳回
  2523. </Button>
  2524. <Button
  2525. className="cancel"
  2526. type="ghost"
  2527. onClick={this.visitCancel}
  2528. style={{ marginLeft: "50px" }}
  2529. >
  2530. 取消
  2531. </Button>
  2532. </div>
  2533. </div>
  2534. </Spin>
  2535. </Form>
  2536. </Modal> : <div/>}
  2537. {this.state.noVisible ? <Modal
  2538. maskClosable={false}
  2539. visible={this.state.noVisible}
  2540. onOk={this.noCancel}
  2541. onCancel={this.noCancel}
  2542. width="400px"
  2543. title={"拒绝理由"}
  2544. footer=""
  2545. className="admin-desc-content"
  2546. >
  2547. <Form layout="horizontal" id="demand-form">
  2548. <Spin spinning={this.state.loading}>
  2549. <div className="clearfix">
  2550. <FormItem
  2551. labelCol={{ span: 4 }}
  2552. wrapperCol={{ span: 16 }}
  2553. label="拒绝理由"
  2554. >
  2555. <Input
  2556. type="textarea"
  2557. placeholder="请输入拒绝理由"
  2558. rows={4}
  2559. value={this.state.reason}
  2560. onChange={(e) => {
  2561. this.setState({ reason: e.target.value });
  2562. }}
  2563. />
  2564. </FormItem>
  2565. </div>
  2566. <div className="clearfix">
  2567. <Button
  2568. className="cancel"
  2569. type="primary"
  2570. onClick={this.examOks}
  2571. style={{ marginLeft: "50px" }}
  2572. htmlType="submit"
  2573. >
  2574. 确定
  2575. </Button>
  2576. <Button
  2577. className="cancel"
  2578. type="ghost"
  2579. onClick={this.noCancel}
  2580. style={{ marginLeft: "50px" }}
  2581. >
  2582. 取消
  2583. </Button>
  2584. </div>
  2585. </Spin>
  2586. </Form>
  2587. </Modal> : <div/>}
  2588. {this.state.passVisible ? <Modal
  2589. maskClosable={false}
  2590. visible={this.state.passVisible}
  2591. onOk={this.passCancel}
  2592. onCancel={this.passCancel}
  2593. width="400px"
  2594. title={"同意理由"}
  2595. footer=""
  2596. className="admin-desc-content"
  2597. >
  2598. <Form layout="horizontal">
  2599. <Spin spinning={this.state.loading}>
  2600. <div className="clearfix">
  2601. <FormItem
  2602. labelCol={{ span: 4 }}
  2603. wrapperCol={{ span: 16 }}
  2604. label="同意备注"
  2605. >
  2606. <Input
  2607. type="textarea"
  2608. placeholder="请输入备注"
  2609. rows={4}
  2610. value={this.state.reason}
  2611. onChange={(e) => {
  2612. this.setState({ reason: e.target.value });
  2613. }}
  2614. />
  2615. </FormItem>
  2616. </div>
  2617. <div className="clearfix">
  2618. <Button
  2619. className="cancel"
  2620. type="primary"
  2621. onClick={this.examOk}
  2622. style={{ marginLeft: "50px" }}
  2623. htmlType="submit"
  2624. >
  2625. 确定
  2626. </Button>
  2627. <Button
  2628. className="cancel"
  2629. type="ghost"
  2630. onClick={this.passCancel}
  2631. style={{ marginLeft: "50px" }}
  2632. >
  2633. 取消
  2634. </Button>
  2635. </div>
  2636. </Spin>
  2637. </Form>
  2638. </Modal> : <div/>}
  2639. {this.state.rizhivisible ? <Modal
  2640. visible={this.state.rizhivisible}
  2641. className="admin-desc-content"
  2642. width="800px"
  2643. maskClosable={false}
  2644. title="订单日志"
  2645. footer={null}
  2646. onCancel={this.closeOrderLog}
  2647. >
  2648. <div className="patent-table">
  2649. <Spin spinning={this.state.loading}>
  2650. <Table
  2651. columns={this.state.columnsrizhi}
  2652. dataSource={this.state.dataSourcerizhi}
  2653. pagination={false}
  2654. bordered
  2655. size="small"
  2656. />
  2657. </Spin>
  2658. </div>
  2659. </Modal> : <div/>}
  2660. {this.state.dvisible ? <Modal
  2661. maskClosable={false}
  2662. visible={this.state.dvisible}
  2663. footer=""
  2664. title="所有列表信息"
  2665. className="admin-desc-content"
  2666. width="1400px"
  2667. onCancel={() => {
  2668. // this.loadData();
  2669. this.setState({
  2670. dvisible: false,
  2671. });
  2672. }}
  2673. >
  2674. <Spin spinning={this.state.loading}>
  2675. <div
  2676. className="patent-table"
  2677. style={{
  2678. // width: 900,
  2679. // position: "relative",
  2680. // left: "50%",
  2681. // transform: "translate(-50%)",
  2682. padding: "25px 0 30px 30px",
  2683. }}
  2684. ref={(e) => {
  2685. this.refs.all = e;
  2686. }}
  2687. >
  2688. <Table
  2689. columns={this.state.columns}
  2690. dataSource={this.state.dataSource}
  2691. pagination={false}
  2692. bordered
  2693. size="small"
  2694. />
  2695. </div>
  2696. </Spin>
  2697. <ReactToPrint
  2698. trigger={() => (
  2699. <Button
  2700. type="primary"
  2701. style={{
  2702. float: "right",
  2703. marginTop: 10,
  2704. position: "absolute",
  2705. top: 0,
  2706. right: 30,
  2707. }}
  2708. >
  2709. 打印
  2710. </Button>
  2711. )}
  2712. content={() => this.refs.all}
  2713. />
  2714. </Modal> : <div/>}
  2715. {this.state.bvisible ? <Modal
  2716. maskClosable={false}
  2717. visible={this.state.bvisible}
  2718. footer=""
  2719. title="开票历史记录"
  2720. className="admin-desc-content"
  2721. width="900px"
  2722. onCancel={this.inRecordCanl}
  2723. >
  2724. <Spin spinning={this.state.loading}>
  2725. <div
  2726. className="patent-table"
  2727. ref={(e) => {
  2728. this.refs.kaiPiao = e;
  2729. }}
  2730. >
  2731. <Table
  2732. columns={this.state.columnsDate}
  2733. dataSource={this.state.recordData}
  2734. pagination={false}
  2735. bordered
  2736. size="small"
  2737. />
  2738. <div className="clearfix" style={{ marginTop: "20px" }}>
  2739. <FormItem
  2740. className="half-item"
  2741. {...formItemLayout}
  2742. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  2743. >
  2744. <span>{this.state.sum + "(万元)"}</span>
  2745. </FormItem>
  2746. </div>
  2747. <ReactToPrint
  2748. trigger={() => (
  2749. <Button
  2750. type="primary"
  2751. style={{
  2752. float: "right",
  2753. // marginTop: 10,
  2754. position: "absolute",
  2755. top: -54,
  2756. right: 30,
  2757. }}
  2758. >
  2759. 打印
  2760. </Button>
  2761. )}
  2762. content={() => this.refs.kaiPiao}
  2763. />
  2764. </div>
  2765. </Spin>
  2766. </Modal> : <div/>}
  2767. {this.state.cvisible ? <Modal
  2768. maskClosable={false}
  2769. visible={this.state.cvisible}
  2770. footer=""
  2771. title="详细收款流水"
  2772. className="admin-desc-content"
  2773. width="1300px"
  2774. onCancel={this.waterCanl}
  2775. >
  2776. <Spin spinning={this.state.loading}>
  2777. <div
  2778. className="patent-table"
  2779. ref={(e) => {
  2780. this.refs.shouKuan = e;
  2781. }}
  2782. >
  2783. <Table
  2784. columns={this.state.waterlistDate}
  2785. dataSource={this.state.waterData}
  2786. pagination={false}
  2787. bordered
  2788. size="small"
  2789. />
  2790. <div className="clearfix" style={{ marginTop: "20px" }}>
  2791. <FormItem
  2792. className="half-item"
  2793. {...formItemLayout}
  2794. label={<span style={{ fontSize: "14px" }}>总计金额</span>}
  2795. >
  2796. <span>{this.state.waterSum + "(万元)"}</span>
  2797. </FormItem>
  2798. </div>
  2799. <ReactToPrint
  2800. trigger={() => (
  2801. <Button
  2802. type="primary"
  2803. style={{
  2804. float: "right",
  2805. position: "absolute",
  2806. top: -54,
  2807. right: 30,
  2808. }}
  2809. >
  2810. 打印
  2811. </Button>
  2812. )}
  2813. content={() => this.refs.shouKuan}
  2814. />
  2815. </div>
  2816. </Spin>
  2817. </Modal> : <div/>}
  2818. {this.state.timeVisible ? <Modal
  2819. maskClosable={false}
  2820. visible={this.state.timeVisible}
  2821. footer=""
  2822. title="工时详情"
  2823. className="admin-desc-content"
  2824. width="1300px"
  2825. pagination={false}
  2826. onCancel={() => {
  2827. // this.loadData();
  2828. this.setState({
  2829. timeVisible: false,
  2830. });
  2831. }}
  2832. >
  2833. <Spin spinning={this.state.loading}>
  2834. <div
  2835. className="patent-table"
  2836. style={
  2837. {
  2838. // width: 900,
  2839. // position: "relative",
  2840. // left: "50%",
  2841. // transform: "translate(-50%)",
  2842. // padding: "25px 0 30px 30px"
  2843. }
  2844. }
  2845. ref={(e) => {
  2846. this.refs.all = e;
  2847. }}
  2848. >
  2849. <Table
  2850. columns={this.state.timeColumns}
  2851. dataSource={this.state.timeDataList}
  2852. scroll={{ x: "max-content", y: 0 }}
  2853. pagination={false}
  2854. bordered
  2855. size="small"
  2856. />
  2857. </div>
  2858. </Spin>
  2859. <ReactToPrint
  2860. trigger={() => (
  2861. <Button
  2862. type="primary"
  2863. style={{
  2864. float: "right",
  2865. marginTop: 10,
  2866. position: "absolute",
  2867. top: 0,
  2868. right: 30,
  2869. }}
  2870. >
  2871. 打印
  2872. </Button>
  2873. )}
  2874. content={() => this.refs.all}
  2875. />
  2876. </Modal> : <div/>}
  2877. {this.state.cuiVisible ? <Modal
  2878. maskClosable={false}
  2879. visible={this.state.cuiVisible}
  2880. footer=""
  2881. title="催款详情"
  2882. className="admin-desc-content"
  2883. width="1300px"
  2884. pagination={false}
  2885. onCancel={() => {
  2886. // this.loadData();
  2887. this.setState({
  2888. cuiVisible: false,
  2889. });
  2890. }}
  2891. >
  2892. <Spin spinning={this.state.loading}>
  2893. <div
  2894. className="patent-table"
  2895. style={
  2896. {
  2897. // width: 900,
  2898. // position: "relative",
  2899. // left: "50%",
  2900. // transform: "translate(-50%)",
  2901. // padding: "25px 0 30px 30px"
  2902. }
  2903. }
  2904. ref={(e) => {
  2905. this.refs.all = e;
  2906. }}
  2907. >
  2908. <Table
  2909. columns={this.state.cuiColumns}
  2910. dataSource={this.state.cuiDataList}
  2911. scroll={{ x: "max-content", y: 0 }}
  2912. pagination={false}
  2913. bordered
  2914. size="small"
  2915. />
  2916. </div>
  2917. </Spin>
  2918. <ReactToPrint
  2919. trigger={() => (
  2920. <Button
  2921. type="primary"
  2922. style={{
  2923. float: "right",
  2924. marginTop: 10,
  2925. position: "absolute",
  2926. top: 0,
  2927. right: 30,
  2928. }}
  2929. >
  2930. 打印
  2931. </Button>
  2932. )}
  2933. content={() => this.refs.all}
  2934. />
  2935. </Modal> : <div/>}
  2936. {this.state.proVisible ? <Modal
  2937. maskClosable={false}
  2938. visible={this.state.proVisible}
  2939. footer=""
  2940. title="项目详情"
  2941. className="admin-desc-content"
  2942. width="1300px"
  2943. pagination={false}
  2944. onCancel={() => {
  2945. // this.loadData();
  2946. this.setState({
  2947. proVisible: false,
  2948. });
  2949. }}
  2950. >
  2951. <Spin spinning={this.state.loading}>
  2952. <Project
  2953. record={this.state.record}
  2954. visible={this.state.pvisible}
  2955. cancel={() => {
  2956. this.setState({ pvisible: false });
  2957. }}
  2958. />
  2959. <div
  2960. className="patent-table"
  2961. style={
  2962. {
  2963. // width: 900,
  2964. // position: "relative",
  2965. // left: "50%",
  2966. // transform: "translate(-50%)",
  2967. // padding: "25px 0 30px 30px"
  2968. }
  2969. }
  2970. ref={(e) => {
  2971. this.refs.all = e;
  2972. }}
  2973. >
  2974. <Table
  2975. columns={this.state.proColumns}
  2976. dataSource={this.state.proDataList}
  2977. // onRowClick={this.tableRowClickPro}
  2978. pagination={false}
  2979. bordered
  2980. size="small"
  2981. />
  2982. </div>
  2983. <span style={{ display: "block", marginTop: 10, color: "red" }}>
  2984. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  2985. </span>
  2986. </Spin>
  2987. <ReactToPrint
  2988. trigger={() => (
  2989. <Button
  2990. type="primary"
  2991. style={{
  2992. float: "right",
  2993. marginTop: 10,
  2994. position: "absolute",
  2995. top: 0,
  2996. right: 30,
  2997. }}
  2998. >
  2999. 打印
  3000. </Button>
  3001. )}
  3002. content={() => this.refs.all}
  3003. />
  3004. </Modal> : <div/>}
  3005. </div>
  3006. {this.state.addnextVisible && <ProjectDetailsReadOnly
  3007. infor={this.state.dataInfor}
  3008. visible={this.state.addnextVisible}
  3009. onCancel={this.nextCancel}
  3010. />}
  3011. </div>
  3012. );
  3013. },
  3014. })
  3015. );
  3016. export default IntentionCustomer;