Files
qhmes/deploy-qhmes/frontend/js/MesXslCustomerList-CJIeY-Ly.js

2 lines
5.7 KiB
Java
Raw Normal View History

2026-05-15 11:34:12 +08:00
var K=Object.defineProperty,W=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var M=(r,e,n)=>e in r?K(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n,R=(r,e)=>{for(var n in e||(e={}))Z.call(e,n)&&M(r,n,e[n]);if(E)for(var n of E(e))$.call(e,n)&&M(r,n,e[n]);return r},A=(r,e)=>W(r,Y(e));var h=(r,e,n)=>new Promise((p,b)=>{var w=i=>{try{c(n.next(i))}catch(d){b(d)}},y=i=>{try{c(n.throw(i))}catch(d){b(d)}},c=i=>i.done?p(i.value):Promise.resolve(i.value).then(w,y);c((n=n.apply(r,e)).next())});import{d as X,ah as m,v as tt,ar as et,as as u,k as l,aF as s,u as a,q as C,aC as f,ag as ot,G as x,r as F}from"./vue-vendor-C7Zq48Yl.js";import"./index-BgJbdjPf.js";import"./index-Du0A3ksf.js";import{useListPage as nt}from"./useListPage-BWia52we.js";import{M as rt,s as it,a as st,c as at}from"./MesXslCustomerModal-Dz_x_H5b.js";import{b as lt,g as mt,a as ut,l as pt,d as ct,u as dt}from"./MesXslCustomer.api-CkDsRb9F.js";import{M as I,al as _t,d as ft}from"./index-BI6CMai0.js";import{J as xt}from"./componentMap-BBZeqR-K.js";import bt from"./BasicTable-DfLkrEeh.js";import"./antd-vue-vendor-BPnV8VqP.js";import"./BasicModal-0sAdFEk_.js";import"./ModalHeader-keHdAHWH.js";import"./useTimeout-DDl4l82I.js";import"./vxe-table-vendor-B88kchpX.js";import"./index-DeEq83Ov.js";import"./useWindowSizeFn-PRZSD86C.js";import"./index-pxs5MULf.js";import"./index-BgYCgfME.js";import"./index-f8O7TghW.js";import"./useIntersectionObserver-BMxdTqP3.js";import"./useMethods-DVip17X8.js";import"./index-Di-j2gt4.js";import"./BasicForm-BJnSRkIE.js";import"./useForm-BZtHZyx2.js";import"./JAreaLinkage-BeRUFHSB.js";import"./areaDataUtil-CbYCy3Ig.js";import"./JSelectUser-B71zikzw.js";import"./props-DAezUTeZ.js";import"./JSelectBiz-CnEaVMUF.js";import"./JSelectDept-DRDVeruW.js";import"./index-CUdllngZ.js";import"./bem-EhXRi4nW.js";import"./props-D4vdsy3J.js";import"./useContextMenu-Cwx1lIOK.js";import"./TreeIcon-DE4jdeZV.js";import"./JCodeEditor-CLVZA7Uj.js";import"./useFormItem-BdW6EoZe.js";import"./htmlmixed-NhwyF9-q.js";import"./vue-CgbRSACy.js";/* empty css */import"./JAddInput-D6qcyZjQ.js";import"./index-CNkz_PUv.js";import"./depart.api-DeMNV8zW.js";import"./JPopup-Bva6u6tk.js";import"./usePopBiz-CG0vVpgI.js";import"./index-Dg4HCEvo.js";import"./EasyCronInput-7xfJ3nBh.js";import"./JEllipsis-DqRFTSm0.js";import"./download-UE0L9Rfp.js";import"./base64Conver-24EVOS6V.js";import"./index-CIBZG4nR.js";import"./index-BhQEwnQQ.js";import"./useCountdown-DqnNWBp6.js";import"./useFormItemSingle-BbRhswfn.js";import"./JUpload-Cz9HN61B.js";import"./index-MGIrEF-A.js";import"./index-MREkPhsT.js";import"./injectionKey-DPVn4AgL.js";const gt=X({name:"xslmes-mesXslCustomer"}),ht=X(A(R({},gt),{setup(r){const e=F({}),[n,{openModal:p}]=_t(),{tableContext:b,onExportXls:w,onImportXls:y}=nt({tableProps:{title:"客户管理",api:pt,columns:at,canResize:!0,formConfig:{schemas:st,autoSubmitOnEnter:!0,showAdvancedButton:!0},actionColumn:{width:280,fixed:"right"},beforeFetch:t=>Object.assign(t,e)},exportConfig:{name:"客户管理",url:ut,params:e},importConfig:{url:mt,success:_}}),[c,{reload:i},{rowSelection:d,selectedRowKeys:k}]=b,B=F(it);function T(t){Object.keys(t).forEach(o=>{e[o]=t[o]}),i()}function U(){p(!0,{isUpdate:!1,showFooter:!0})}function j(t){p(!0,{record:t,isUpdate:!0,showFooter:!0})}function q(t){p(!0,{record:t,isUpdate:!0,showFooter:!1})}function O(t){return h(this,null,function*(){yield ct({id:t.id},_)})}function N(t){return t.status==="0"||t.status===0}function v(t,o){return h(this,null,function*(){yield dt({id:t.id,status:o},_)})}function P(){return h(this,null,function*(){yield lt({ids:k.value},_)})}function _(){k.value=[],i()}function Q(t){const o=N(t);return[{label:"编辑",onClick:j.bind(null,t),auth:"xslmes:mes_xsl_customer:edit"},{label:"启用",ifShow:!o,onClick:v.bind(null,t,"0"),auth:"xslmes:mes_xsl_customer:updateStatus"},{label:"停用",ifShow:o,onClick:v.bind(null,t,"1"),auth:"xslmes:mes_xsl_customer:updateStatus"