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-LwlFn7Y4.js";import"./index-D2AmS0aU.js";import{useListPage as et}from"./useListPage-BEtybUiF.js";import ot from"./ViewWmsStockLocSkuModal-H7D0FkOg.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-6O5egm_D.js";import{ab as ut,a9 as dt,_ as ft}from"./index-B_2CoVdl.js";import{Q as _t}from"./componentMap-CzCGDP7x.js";import gt from"./BasicTable-Clbg3fHx.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./JAreaLinkage-CSgDAlrn.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JSelectDept-wKz_Qtmc.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./JCodeEditor-esTLnfS3.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-YFlAniYT.js";import"./index-CkL00Q0a.js";import"./depart.api-0qTriT9h.js";import"./JPopup-BJBYqoWe.js";import"./EasyCronInput-DclSHT47.js";import"./JEllipsis-Cn7GCKHR.js";import"./JDictSelectTag-CxpDdimB.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.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"])])}}})),Re=ft(wt,[["__scopeId","data-v-1790ab30"]]);export{Re as default};
