import{f as C}from"./list.4b7efdc5.js";import{d as k,b as v,p as V,c as n,e as d,f as c,g as l,h as e,i as a,u as s,F as b,j as z,k as q,m as F,t as g,A as f,_ as N}from"./index.0308b213.js";const L={class:"filter-form"},P=F("\u67E5\u8BE2"),T={class:"data"},U={class:"table"},j={style:{width:"80px",height:"80px"}},I={class:"tag tag--yellow"},S={key:0},G={class:"tag tag--red"},H={key:0},J={class:"tag tag--green"},K={key:0},M={style:{width:"80px",height:"80px"}},O={style:{width:"50px",height:"50px"}},Q={class:"pagination"},R=k({setup(W){const u=v({page:1,limit:10,coupon_id:""}),i=v({list:[],activitys:[],count:0}),p=()=>{C(u).then(r=>{i.list=r.coupons,i.count=r.count,i.activitys=r.activitys})},x=()=>{p()};return p(),V(()=>[u.page,u.limit],()=>{p()}),(r,_)=>{const w=n("el-option"),y=n("el-select"),h=n("el-form-item"),E=n("el-button"),D=n("el-form"),o=n("el-table-column"),m=n("el-image"),B=n("el-table"),A=n("el-pagination");return d(),c(b,null,[l("div",L,[e(D,{"label-width":"150px"},{default:a(()=>[e(h,{class:"tn-el-form-item",label:"\u8BF7\u9009\u62E9\u4EE3\u91D1\u5238\u6D3B\u52A8"},{default:a(()=>[e(y,{class:"agent-select",modelValue:s(u).coupon_id,"onUpdate:modelValue":_[0]||(_[0]=t=>s(u).coupon_id=t),placeholder:"\u8BF7\u9009\u62E9\u4EE3\u91D1\u5238\u6D3B\u52A8",filterable:"",clearable:""},{default:a(()=>[(d(!0),c(b,null,z(s(i).activitys,(t,X)=>(d(),q(w,{value:t.id,label:t.name},{default:a(()=>[F(g(t.name),1)]),_:2},1032,["value","label"]))),256))]),_:1},8,["modelValue"])]),_:1}),e(h,null,{default:a(()=>[e(E,{class:"tn-el-form-item--item tn-button tn-button--blue",onClick:x},{default:a(()=>[P]),_:1})]),_:1})]),_:1})]),l("div",T,[l("div",U,[e(B,{data:s(i).list},{default:a(()=>[e(o,{label:"\u7EA2\u5305\u6D3B\u52A8\u540D\u79F0",prop:"activity_name"}),e(o,{label:"\u4F1A\u5458uid",prop:"uid",width:"120px"}),e(o,{label:"\u4F1A\u5458",width:"200px"},{default:a(t=>[l("div",null,[l("div",j,[e(m,{src:t.row.user.avatar},null,8,["src"])]),l("div",null,g(t.row.user.realname),1)])]),_:1}),e(o,{label:"\u4EE3\u91D1\u5238\u540D\u79F0",prop:"title"}),e(o,{label:"\u4EE3\u91D1\u5238\u4F18\u60E0",prop:"discount"}),e(o,{label:"\u5546\u6237\u540D\u79F0",prop:"store_title"}),e(o,null,{default:a(t=>[l("div",I,[t.row.status==2?(d(),c("div",S,"\u672A\u4F7F\u7528")):f("",!0)]),l("div",G,[t.row.status==3?(d(),c("div",H,"\u5DF2\u8FC7\u671F")):f("",!0)]),l("div",J,[t.row.status==1?(d(),c("div",K,"\u672A\u4F7F\u7528")):f("",!0)])]),_:1}),e(o,{label:"\u5546\u54C1\u8BE6\u60C5",width:"200px"},{default:a(t=>[l("div",null,[l("div",M,[e(m,{src:t.row.good.thumb},null,8,["src"])]),l("div",null,g(t.row.good.title),1)])]),_:1}),e(o,{label:"\u5F00\u59CB\u65F6\u95F4",prop:"starttime_cn"}),e(o,{label:"\u7ED3\u675F\u65F6\u95F4",prop:"endtime_cn"}),e(o,{label:"\u6838\u9500\u7801",width:"200px"},{default:a(t=>[l("div",O,[e(m,{src:t.row.qrcode},null,8,["src"])])]),_:1})]),_:1},8,["data"])])]),l("div",Q,[e(A,{currentPage:s(u).page,"onUpdate:currentPage":_[1]||(_[1]=t=>s(u).page=t),"page-size":s(u).limit,"onUpdate:page-size":_[2]||(_[2]=t=>s(u).limit=t),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:s(i).count},null,8,["currentPage","page-size","total"])])],64)}}});const $=N(R,[["__scopeId","data-v-0aa44af1"]]);export{$ as default};
