import{_ as F,L as V,b as A,w as L,M as N,I as P,N as T}from"./element-plus.61695454.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.33ea11c1.js";import{u as j}from"./usePaging.d25ebf19.js";import"./index.aab340cd.js";import{d as M,e as R}from"./system_store_storage.1baeb0b7.js";import"./lodash.a2abcd4b.js";import"./edit.vue_vue_type_script_setup_true_name_systemStoreStorageEdit_lang.16cb20af.js";import{d as h,s as $,r as c,a0 as q,am as O,o as s,c as U,P as d,u as p,M as i,O as a,a as f,W as t,T as m,S as g,j as W}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";import"./index.81b5eba5.js";const z={class:"mt-4"},G={class:"flex mt-4 justify-end"},H=h({name:"systemStoreStorageLists"}),Tt=h({...H,setup(J){$(),c(!1);const E=q({store_id:"",admin_id:"",operating_id:"",status:""}),v=c([]),w=n=>{v.value=n.map(({id:l})=>l)},{pager:r,getLists:u,resetParams:K,resetPage:Q}=j({fetchFun:R,params:E}),C=async n=>{M({id:n.id}).then(l=>{u()})};return u(),(n,l)=>{const o=V,y=A,_=F,b=L,B=N,k=I,S=P,x=O("perms"),D=T;return s(),U("div",null,[d((s(),i(S,{class:"!border-none",shadow:"never"},{default:a(()=>[f("div",z,[t(B,{data:p(r).lists,onSelectionChange:w},{default:a(()=>[t(o,{label:"\u95E8\u5E97",prop:"system_store_name","show-overflow-tooltip":""}),t(o,{label:"\u5BFC\u5165\u4EBA\u5458",prop:"admin_name","show-overflow-tooltip":""}),t(o,{label:"\u95E8\u5E97\u786E\u8BA4\u4EBA\u5458",prop:"staff_name","show-overflow-tooltip":""}),t(o,{label:"\u5546\u54C1\u56FE",prop:"image","show-overflow-tooltip":""},{default:a(({row:e})=>[t(y,{class:"w-[40px] h-[40px]",src:e.image},null,8,["src"])]),_:1}),t(o,{label:"\u5546\u54C1",prop:"store_name","show-overflow-tooltip":""}),t(o,{label:"\u6570\u91CF",prop:"nums","show-overflow-tooltip":""}),t(o,{label:"\u72B6\u6001",prop:"status","show-overflow-tooltip":""},{default:a(({row:e})=>[e.status===1?(s(),i(_,{key:0,type:"success"},{default:a(()=>[m("\u5DF2\u5165\u5E93")]),_:1})):e.status===0?(s(),i(_,{key:1,type:"warning"},{default:a(()=>[m("\u5F85\u786E\u8BA4")]),_:1})):e.status===-1?(s(),i(_,{key:2,type:"danger"},{default:a(()=>[m("\u5E93\u5B58\u4E0D\u8DB3")]),_:1})):g("",!0)]),_:1}),t(o,{label:"\u5907\u6CE8",prop:"mark","show-overflow-tooltip":""}),t(o,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:a(({row:e})=>[e.status==0?d((s(),i(b,{key:0,type:"success",link:"",onClick:X=>C(e)},{default:a(()=>[m(" \u786E\u8BA4\u5165\u5E93 ")]),_:2},1032,["onClick"])),[[x,["system_store_storage.system_store_storage/edit"]]]):g("",!0)]),_:1})]),_:1},8,["data"])]),f("div",G,[t(k,{modelValue:p(r),"onUpdate:modelValue":l[0]||(l[0]=e=>W(r)?r.value=e:null),onChange:p(u)},null,8,["modelValue","onChange"])])]),_:1})),[[D,p(r).loading]])])}}});export{Tt as default};