var O=Object.defineProperty,Y=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var D=(r,t,o)=>t in r?O(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o,T=(r,t)=>{for(var o in t||(t={}))H.call(t,o)&&D(r,o,t[o]);if(v)for(var o of v(t))K.call(t,o)&&D(r,o,t[o]);return r},M=(r,t)=>Y(r,z(t));var g=(r,t,o)=>new Promise((b,p)=>{var a=s=>{try{l(o.next(s))}catch(c){p(c)}},w=s=>{try{l(o.throw(s))}catch(c){p(c)}},l=s=>s.done?b(s.value):Promise.resolve(s.value).then(a,w);l((o=o.apply(r,t)).next())});import{d as B,r as F,f as P,o as X,U,v as j,a2 as d,a3 as h,k as f,af as _,u as n,q as W,ad as G,G as J,a4 as Z,F as $,ae as tt,a5 as R}from"./vue-vendor-CxLCUzY4.js";import"./index-KOQNKxnC.js";import"./index-XZKTTfG1.js";import{useListPage as et}from"./useListPage-CevWQ3ci.js";import ot from"./ViewWmsStockLocSkuModal-DcmVTCJJ.js";import{g as rt,s as it,c as st,l as nt,a as at,b as lt,d as mt,e as pt,f as ct}from"./ViewWmsStockLocSku.api-Bws9CM46.js";import{ab as ut,a9 as dt,_ as ft}from"./index-CLZzJyTP.js";import{Q as _t}from"./componentMap-DpsJvoqz.js";import gt from"./BasicTable-DUJWN3yz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./JAreaLinkage-M9TGy8nY.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JSelectDept-CaEHrQp6.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./JCodeEditor-CR57XeIe.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-B36c3B5x.js";import"./index-C7yPiS0L.js";import"./depart.api-DHG2p2Yd.js";import"./JPopup-BvqhHpPl.js";import"./EasyCronInput-CWOTSpxK.js";import"./JEllipsis-C_gT_vEQ.js";import"./JDictSelectTag-CfF54ALX.js";import"./JImageUpload-BFwNYdm5.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./injectionKey-DPVn4AgL.js";const ht={style:{"margin-left":"20px","font-size":"22px",color:"blue"}},bt=B({name:"wms-ware-view-list"}),wt=B(M(T({},bt),{setup(r){const t=F({}),o=P([]),b=ut(),[p,{openModal:a}]=dt(),{prefixCls:w,tableContext:l,onExportXls:s,onImportXls:c}=et({tableProps:{title:"库存信息",api:nt,columns:st,canResize:!1,size:"small",striped:!0,formConfig:{schemas:it,autoSubmitOnEnter:!0,showAdvancedButton:!0,fieldMapToNumber:[],fieldMapToTime:[["lastCheckedTime",["lastCheckedTime_begin","lastCheckedTime_end"],"YYYY-MM-DD HH:mm:ss"]]},actionColumn:{width:120,fixed:"right"},beforeFetch:e=>(y(e),Object.assign(e,t))},exportConfig:{name:"库存信息",url:lt,params:t},importConfig:{url:at,success:u}}),[E,{reload:k},{rowSelection:I,selectedRowKeys:x}]=l,L=F(mt);function Q(e){Object.keys(e).map(i=>{t[i]=e[i]}),k()}function kt(){a(!0,{isUpdate:!1,showFooter:!0})}function xt(e){a(!0,{record:e,isUpdate:!0,showFooter:!0})}function C(e){a(!0,{record:e,isUpdate:!0,showFooter:!1})}function Ct(e){return g(this,null,function*(){yield pt({id:e.id},u)})}function St(){return g(this,null,function*(){yield ct({ids:x.value},u)})}function u(){(x.value=[])&&k()}let S;function y(e){rt(e).then(i=>{S=i.records})}function V(e){return[{label:"详情",onClick:C.bind(null,e)}]}function yt(e){return[{label:"详情",onClick:C.bind(null,e)}]}return X(()=>{y(null)}),(e,i)=>{const q=U("a-button"),A=U("super-query"),N=j("auth");return d(),h("div",null,[f(n(gt),{onRegister:n(E),rowSelection:n(I)},{tableTitle:_(()=>[W((d(),G(q,{type:"primary",preIcon:"ant-design:export-outlined",onClick:n(s)},{default:_(()=>i[0]||(i[0]=[J(" 导出")])),_:1},8,["onClick"])),[[N,"wms:view_wms_stock_loc_sku:exportXls"]]),f(A,{config:L,onSearch:Q},null,8,["config"]),i[1]||(i[1]=Z("div",{style:{"margin-left":"50px"}},null,-1)),(d(!0),h($,null,tt(n(S),m=>(d(),h("span",ht,R(m.wareCode_dictText)+": "+R(m.totalQty),1))),256))]),action:_(({record:m})=>[f(n(_t),{actions:V(m)},null,8,["actions"])]),bodyCell:_(({column:m,record:vt,index:Dt,text:Tt})=>i[2]||(i[2]=[])),_:1},8,["onRegister","rowSelection"]),f(ot,{onRegister:n(p),onSuccess:u},null,8,["onRegister"])])}}})),Be=ft(wt,[["__scopeId","data-v-1790ab30"]]);export{Be as default};
