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-gyz1IdHU.js";import"./index-zKZnG1QC.js";import{useListPage as et}from"./useListPage-TMORxSEa.js";import ot from"./ViewWmsStockLocSkuModal-B8bQyQzr.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-aGoEQvjL.js";import{ab as ut,a9 as dt,_ as ft}from"./index-Cy4uayzW.js";import{Q as _t}from"./componentMap-0iK4HQBq.js";import gt from"./BasicTable-CgafrQwz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./JAreaLinkage-CTMEfTuh.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JSelectDept-D-TUaHvK.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./JCodeEditor-U9QIstNN.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-DP4caUmw.js";import"./index-tDBMxW9-.js";import"./depart.api-B8q8MC-j.js";import"./JPopup-CVHkQZFq.js";import"./EasyCronInput-CZdChTcP.js";import"./JEllipsis-TuDc52fh.js";import"./JDictSelectTag-CalJXNVe.js";import"./JImageUpload-C5OCTlCG.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.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};
