import{a1 as D,M as V,b as A,w as N,N as P,J as T,O as L}from"./element-plus.ab0703f2.js";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import{u as R}from"./usePaging.fff444fa.js";import{f as $}from"./index.5ab034a5.js";import{d as j,e as U}from"./system_store_storage.b7661476.js";import"./lodash.3d784a58.js";import"./edit.vue_vue_type_script_setup_true_name_systemStoreStorageEdit_lang.e2ed6f1e.js";import{d as E,s as q,r as _,$ as J,ap as M,o as s,c as O,R as d,u as p,P as l,Q as a,a as f,W as t,U as u,T as g,j as Q}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.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.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./index.5670c3d4.js";const W={class:"mt-4"},z={class:"flex mt-4 justify-end"},G=E({name:"systemStoreStorageLists"}),Rt=E({...G,setup(H){q(),_(!1);const h=J({store_id:"",admin_id:"",operating_id:"",status:"",type:1}),v=_([]),w=n=>{v.value=n.map(({id:i})=>i)},{pager:r,getLists:m,resetParams:K,resetPage:X}=R({fetchFun:U,params:h}),y=async n=>{await $.confirm("\u786E\u5B9A\u8981\u5165\u5E93\u5417\uFF1F"),j({id:n.id}).then(i=>{m()})};return m(),(n,i)=>{const o=V,C=A,c=D,b=N,B=P,k=I,F=T,S=M("perms"),x=L;return s(),O("div",null,[d((s(),l(F,{class:"!border-none",shadow:"never"},{default:a(()=>[f("div",W,[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(C,{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(),l(c,{key:0,type:"success"},{default:a(()=>[u("\u5DF2\u5165\u5E93")]),_:1})):e.status===0?(s(),l(c,{key:1,type:"warning"},{default:a(()=>[u("\u5F85\u786E\u8BA4")]),_:1})):e.status===-1?(s(),l(c,{key:2,type:"danger"},{default:a(()=>[u("\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(),l(b,{key:0,type:"success",link:"",onClick:Y=>y(e)},{default:a(()=>[u(" \u786E\u8BA4\u5165\u5E93 ")]),_:2},1032,["onClick"])),[[S,["system_store_storage.system_store_storage/edit"]]]):g("",!0)]),_:1})]),_:1},8,["data"])]),f("div",z,[t(k,{modelValue:p(r),"onUpdate:modelValue":i[0]||(i[0]=e=>Q(r)?r.value=e:null),onChange:p(m)},null,8,["modelValue","onChange"])])]),_:1})),[[x,p(r).loading]])])}}});export{Rt as default};