import{az as $,d as L,b as F,p as N,c as n,e as d,f as c,g as f,h as t,i as a,u,F as g,j as V,k as x,m as _,t as B,a1 as j,_ as q}from"./index.0308b213.js";import{_ as G}from"./ActivitySelect.vue_vue_type_script_setup_true_lang.5af17dcb.js";import"./activity.736c114f.js";const K=y=>$.get("addon/vote.web.vote_gift_order/lists",{params:y}),O={class:"filter-form"},S=_("\u4E0D\u9650"),T=_("\u5DF2\u652F\u4ED8"),H=_("\u672A\u652F\u4ED8"),J=_("\u67E5\u8BE2"),M={class:"data"},P={class:"table"},Q={key:0},R={key:1},W={class:"bottom"},X={class:"pagination"},Y=L({setup(y){const l=F({vote_activity_id:"",playerId:"",giftId:"",pay_status:1,page:1,limit:10}),i=F({count:0,list:[],players:[],gifts:[]}),r=()=>{K(l).then(m=>{i.list=m.list,i.players=m.players,i.gifts=m.gifts,i.count=m.count})};r(),N(()=>[l.page,l.limit,l.vote_activity_id,l.pay_status,l.playerId,l.giftId],()=>{r()});const E=()=>{r()};return(m,o)=>{const b=n("el-radio"),w=n("el-radio-group"),p=n("el-form-item"),v=n("el-option"),D=n("el-select"),C=n("el-input"),k=n("el-button"),h=n("el-form"),s=n("el-table-column"),I=n("el-image"),A=n("el-table"),U=n("el-pagination");return d(),c(g,null,[f("div",O,[t(h,{model:u(l),"label-width":"90px"},{default:a(()=>[t(p,{class:"tn-el-form-item",label:"\u652F\u4ED8\u72B6\u6001"},{default:a(()=>[t(w,{modelValue:u(l).pay_status,"onUpdate:modelValue":o[0]||(o[0]=e=>u(l).pay_status=e)},{default:a(()=>[t(b,{border:"",label:-1},{default:a(()=>[S]),_:1}),t(b,{border:"",label:1},{default:a(()=>[T]),_:1}),t(b,{border:"",label:0},{default:a(()=>[H]),_:1})]),_:1},8,["modelValue"])]),_:1}),t(p,{class:"tn-el-form-item",label:"\u6D3B\u52A8"},{default:a(()=>[t(G,{modelValue:u(l).vote_activity_id,"onUpdate:modelValue":o[1]||(o[1]=e=>u(l).vote_activity_id=e)},null,8,["modelValue"])]),_:1}),t(p,{class:"tn-el-form-item",label:"\u9009\u624B"},{default:a(()=>[t(D,{modelValue:u(l).playerId,"onUpdate:modelValue":o[2]||(o[2]=e=>u(l).playerId=e),placeholder:"\u8BF7\u9009\u62E9\u9009\u624B",filterable:"",clearable:""},{default:a(()=>[(d(!0),c(g,null,V(u(i).players,(e,z)=>(d(),x(v,{key:e.id,value:e.id,label:e.name},{default:a(()=>[_(B(e.name),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(p,{class:"tn-el-form-item",label:"\u793C\u7269"},{default:a(()=>[t(D,{modelValue:u(l).giftId,"onUpdate:modelValue":o[3]||(o[3]=e=>u(l).giftId=e),placeholder:"\u8BF7\u9009\u62E9\u793C\u7269",filterable:"",clearable:""},{default:a(()=>[(d(!0),c(g,null,V(u(i).gifts,(e,z)=>(d(),x(v,{key:e.id,value:e.id,label:e.name},{default:a(()=>[_(B(e.name),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(p,{label:"\u5176\u4ED6"},{default:a(()=>[t(C,{modelValue:u(l).keyword,"onUpdate:modelValue":o[4]||(o[4]=e=>u(l).keyword=e),placeholder:"\u7528\u6237UID,\u7528\u6237\u540D\u79F0",onKeyup:o[5]||(o[5]=j(e=>r(),["enter"])),style:{width:"500px"}},null,8,["modelValue"])]),_:1}),t(p,null,{default:a(()=>[t(k,{class:"tn-el-form-item--item tn-button tn-button--blue",onClick:E},{default:a(()=>[J]),_:1})]),_:1})]),_:1},8,["model"])]),f("div",M,[f("div",P,[t(A,{data:u(i).list},{default:a(()=>[t(s,{label:"\u8BA2\u5355ID",prop:"id"}),t(s,{label:"\u8BA2\u5355\u7F16\u53F7",prop:"ordersn",width:"200px"}),t(s,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"activity_name"}),t(s,{label:"\u793C\u7269\u540D\u79F0",prop:"gift_name"}),t(s,{label:"\u7528\u6237\u540D\u79F0",prop:"nickname"}),t(s,{label:"\u793C\u7269"},{default:a(e=>[t(I,{style:{width:"50px",height:"50px"},src:e.row.gift_icon},null,8,["src"])]),_:1}),t(s,{label:"\u9009\u624B\u540D\u79F0",prop:"player_name"}),t(s,{label:"\u662F\u5426\u652F\u4ED8"},{default:a(e=>[e.row.is_pay==1?(d(),c("span",Q,"\u5DF2\u652F\u4ED8")):(d(),c("span",R,"\u672A\u652F\u4ED8"))]),_:1}),t(s,{label:"\u53D8\u52A8\u524D\u4F59\u989D",prop:"credit"}),t(s,{label:"\u53D8\u52A8\u540E\u4F59\u989D",prop:"credit2"}),t(s,{label:"\u5907\u6CE8",prop:"note",width:"300px"})]),_:1},8,["data"])])]),f("div",W,[f("div",X,[t(U,{"current-page":u(l).page,"onUpdate:current-page":o[6]||(o[6]=e=>u(l).page=e),"page-size":u(l).limit,"onUpdate:page-size":o[7]||(o[7]=e=>u(l).limit=e),"page-limit":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:u(i).count,onSizeChange:o[8]||(o[8]=e=>r()),onCurrentChange:o[9]||(o[9]=e=>r())},null,8,["current-page","page-size","total"])])])],64)}}});const le=q(Y,[["__scopeId","data-v-2cb69996"]]);export{le as default};
