import{k as y}from"./index.Df8UJ10K.js";import{G as g}from"./api.w1hqyo_f.js";import{createCrudOptions as v}from"./crud.Baqd8pjO.js";import{h as C}from"./columnPermission.qmX6FdM9.js";import k from"./index.B8N86_Dl.js";import{_ as D}from"./index.vue_vue_type_script_setup_true_lang.X3rlVEdW.js";import{a as m,r as i,q as h,aj as f,J as O,o as R,K as x,S as n,H as w,u as r}from"./vue.D1BjjNmv.js";import"./_plugin-vue_export-helper.DlAUqK2U.js";const B=m({name:"Inventorycount"}),M=m({...B,setup(P){const t=i(),s=i(),{crudBinding:p,crudRef:c,crudExpose:e,crudOptions:u,resetCrudOptions:l}=y({createCrudOptions:o=>v({...o,inventoryDialog:t,inventoryDetailDialog:s})});return h(async()=>{const o=await C(g,u);l(o),e.doRefresh()}),(o,a)=>{const d=f("fs-crud"),_=f("fs-page");return R(),O(_,null,{default:x(()=>[n(d,w({ref_key:"crudRef",ref:c},r(p)),null,16),n(k,{ref_key:"inventoryDialog",ref:t,onCompleted:a[0]||(a[0]=G=>r(e)&&r(e).doRefresh&&r(e).doRefresh())},null,512),n(D,{ref_key:"inventoryDetailDialog",ref:s},null,512)]),_:1})}}});export{M as default};
