import{_ as D,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{f as M}from"./index.1dd80bf2.js";import{d as R,e as $}from"./system_store_storage.e3eb82c6.js";import"./lodash.a2abcd4b.js";import"./edit.vue_vue_type_script_setup_true_name_systemStoreStorageEdit_lang.454606e7.js";import{d as E,s as q,r as _,a0 as O,am as U,o as s,c as W,P as d,u,M as l,O as a,a as f,W as t,T as m,S as g,j as z}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.3446e7c2.js";const G={class:"mt-4"},H={class:"flex mt-4 justify-end"},J=E({name:"systemStoreStorageLists"}),It=E({...J,setup(K){q(),_(!1);const h=O({store_id:"",admin_id:"",operating_id:"",status:""}),v=_([]),w=n=>{v.value=n.map(({id:i})=>i)},{pager:r,getLists:p,resetParams:Q,resetPage:X}=j({fetchFun:$,params:h}),C=async n=>{await M.confirm("\u786E\u5B9A\u8981\u5165\u5E93\u5417\uFF1F"),R({id:n.id}).then(i=>{p()})};return p(),(n,i)=>{const o=V,b=A,c=D,y=L,B=N,k=I,S=P,F=U("perms"),x=T;return s(),W("div",null,[d((s(),l(S,{class:"!border-none",shadow:"never"},{default:a(()=>[f("div",G,[t(B,{data:u(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(b,{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(()=>[m("\u5DF2\u5165\u5E93")]),_:1})):e.status===0?(s(),l(c,{key:1,type:"warning"},{default:a(()=>[m("\u5F85\u786E\u8BA4")]),_:1})):e.status===-1?(s(),l(c,{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(),l(y,{key:0,type:"success",link:"",onClick:Y=>C(e)},{default:a(()=>[m(" \u786E\u8BA4\u5165\u5E93 ")]),_:2},1032,["onClick"])),[[F,["system_store_storage.system_store_storage/edit"]]]):g("",!0)]),_:1})]),_:1},8,["data"])]),f("div",H,[t(k,{modelValue:u(r),"onUpdate:modelValue":i[0]||(i[0]=e=>z(r)?r.value=e:null),onChange:u(p)},null,8,["modelValue","onChange"])])]),_:1})),[[x,u(r).loading]])])}}});export{It as default};