import{P as w}from"./page.3b4d44cb.js";import{Q as k,R as x}from"./storeActivity.634c4426.js";import{d as L,b as E,b7 as M,c as a,at as N,e as i,k as c,i as e,g as P,h as t,w as T,u as f,m as n,E as p,N as V,_ as $}from"./index.0308b213.js";const q={class:"container"},I=n("\u521B\u5EFA\u6D3B\u52A8"),R=n("\u5F00\u542F"),Q=n("\u5173\u95ED"),j=n("\u7F16\u8F91"),z=n("\u5220\u9664"),G=L({setup(H){const l=E({loading:!0,delLoading:!1,tableData:[],selectIds:[]}),y=E({title:"",status:"",page:1,limit:10}),g=()=>{l.loading=!0,k(y).then(u=>{console.log("\u8BF7\u6C42\u7ED3\u679C\uFF1A",u),l.tableData=u.list}).finally(()=>{l.loading=!1})};g();const A=M(),m=u=>{if(!u&&l.tableData.length>0){p.info("\u6BCF\u4E2A\u95E8\u5E97\u6700\u591A\u652F\u6301\u4E0A\u67B6\u4E00\u4E2A\u6D3B\u52A8\u3002");return}A.push({path:"editMultipleDeliveryFee",query:{id:u}})},B=u=>{V.confirm("\u786E\u5B9A\u5220\u9664\u8BE5\u6D3B\u52A8\u5417\uFF1F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{l.delLoading=!0,x({id:u}).then(()=>{p.success("\u5220\u9664\u6210\u529F"),g()}).finally(()=>{l.delLoading=!1})}).catch(()=>{p.info("\u5DF2\u53D6\u6D88\u5220\u9664")})};return(u,F)=>{const _=a("el-button"),r=a("el-col"),d=a("el-row"),b=a("el-alert"),s=a("el-table-column"),D=a("el-tag"),v=a("el-table"),h=N("loading");return i(),c(w,{showBorder:!1,loading:f(l).loading},{main:e(()=>[P("div",q,[t(d,null,{default:e(()=>[t(r,null,{default:e(()=>[t(_,{type:"primary",onClick:F[0]||(F[0]=o=>m(0))},{default:e(()=>[I]),_:1})]),_:1})]),_:1}),t(d,null,{default:e(()=>[t(r,null,{default:e(()=>[t(b,{title:"\u6BCF\u4E2A\u95E8\u5E97\u6700\u591A\u652F\u6301\u4E0A\u67B6\u4E00\u4E2A\u6D3B\u52A8\u3002",type:"warning",closable:!1,"show-icon":""})]),_:1})]),_:1}),t(d,null,{default:e(()=>[t(r,null,{default:e(()=>[T((i(),c(v,{border:"",data:f(l).tableData,style:{width:"100%"}},{default:e(()=>[t(s,{align:"center",prop:"base_free_num",label:"\u57FA\u7840"}),t(s,{align:"center",prop:"add_delivery_fee",label:"\u53E0\u52A0"}),t(s,{align:"center",label:"\u72B6\u6001"},{default:e(o=>[o.row.is_open?(i(),c(D,{key:0,type:"success"},{default:e(()=>[R]),_:1})):(i(),c(D,{key:1,type:"danger"},{default:e(()=>[Q]),_:1}))]),_:1}),t(s,{align:"center",label:"\u64CD\u4F5C"},{default:e(o=>[t(_,{onClick:C=>m(o.row.id)},{default:e(()=>[j]),_:2},1032,["onClick"]),t(_,{onClick:C=>B(o.row.id)},{default:e(()=>[z]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[h,f(l).loading]])]),_:1})]),_:1})])]),_:1},8,["loading"])}}});const S=$(G,[["__scopeId","data-v-4f3cf959"]]);export{S as default};
