import{d as Y,b as k,b7 as L,r as g,p as D,c as d,e as f,f as b,g as n,h as o,i,u as l,a1 as q,t as r,A as E,k as K,q as M,F as $,m as x,y as C,R as j,S as O,aN as Q,_ as G}from"./index.0308b213.js";import{a as H}from"./EditGoodsDialog.e681ac40.js";import{_ as J}from"./EditDialog.vue_vue_type_script_setup_true_lang.10282e99.js";import{A as W}from"./index.1d26a072.js";import X from"./addPremiun.baef8623.js";import{u as Z}from"./useAgent.c0cb1751.js";import"./install.524ae6f2.js";import"./page.3b4d44cb.js";import"./index.dfdc0704.js";import"./index.vue_vue_type_style_index_0_scoped_f00ed21d_lang.2c48f49b.js";import"./vuedraggable.umd.405b1bec.js";import"./index.35b8c9ab.js";import"./index.9e8820cd.js";import"./sort_out.2008c10d.js";import"./storeActivity.634c4426.js";import"./classifyManage.6f51847c.js";import"./list.5526c7ef.js";const A=p=>(j("data-v-c2ff6382"),p=p(),O(),p),ee={class:"filter-form"},te=x("\u7B5B\u9009"),oe={class:"data"},le={class:"table"},ae={class:"store-info"},se=["src"],ie={class:"store-title"},ne=A(()=>n("div",null,"\u751F\u6548\u65E5\u671F",-1)),de=A(()=>n("div",null,"\u751F\u6548\u65F6\u95F4",-1)),ue={key:0},me={key:1},re=x("\u8BBE\u7F6E"),pe={class:"bottom"},_e={class:"pagination"},ce=Y({setup(p){const t=k({agentid:"",keywords:"",page:1,limit:10}),B=()=>{u()};L();const _=k({list:[],agents:[],store:[],types:[],count:0});let v=g([]);const w=()=>{const s=Q(v.value,"YYYY-MM-DD");t.startday=s[0]||"",t.endday=s[1]||""},u=()=>{t.days===-1&&(!v.value||v.value.length===0)||(w(),H(t).then(s=>{console.log("res",s),_.list=s.list,_.count=s.count}))};u();const{getAgentList:z,getAgentTitle:ge}=Z();z();let m=g(!1),y=g(!1),h=g(0);const R=s=>{h.value=s.id,y.value=!0,C(()=>{m.value=!0})},S=()=>{h.value=0,C(()=>{y.value=!1}),u()};return D(()=>t.page,()=>{u()}),D(()=>t.limit,()=>{u()}),(s,a)=>{const U=d("el-dialog"),I=d("el-input"),V=d("el-form-item"),F=d("el-button"),N=d("el-form"),c=d("el-table-column"),T=d("el-table"),P=d("el-pagination");return f(),b($,null,[n("div",ee,[o(N,{model:l(t),"label-width":"90px"},{default:i(()=>[o(V,{class:"tn-el-form-item tn-el-form-item--inline",label:"\u5176\u4ED6"},{default:i(()=>[o(l(W),{modelValue:l(t).agentid,"onUpdate:modelValue":a[0]||(a[0]=e=>l(t).agentid=e)},null,8,["modelValue"]),o(U,{modelValue:s.showadd,"onUpdate:modelValue":a[1]||(a[1]=e=>s.showadd=e)},{default:i(()=>[o(X)]),_:1},8,["modelValue"]),o(I,{modelValue:l(t).keywords,"onUpdate:modelValue":a[2]||(a[2]=e=>l(t).keywords=e),placeholder:"\u95E8\u5E97\u540D\u79F0/\u95E8\u5E97id",onKeyup:a[3]||(a[3]=q(e=>u(),["enter"])),style:{width:"auto","margin-left":"10px"}},null,8,["modelValue"])]),_:1}),o(V,null,{default:i(()=>[o(F,{type:"primary",onClick:B},{default:i(()=>[te]),_:1})]),_:1})]),_:1},8,["model"])]),n("div",oe,[n("div",le,[o(T,{data:l(_).list},{default:i(()=>[o(c,{label:"\u95E8\u5E97"},{default:i(({row:e})=>[n("div",ae,[n("img",{class:"store-image",src:e.logo},null,8,se),n("div",ie,r(e.title),1)])]),_:1}),o(c,{label:"\u6240\u5C5E\u533A\u57DF",prop:"agent_title"}),o(c,{label:"\u8D2D\u4E70\u65F6\u95F4"},{header:i(()=>[ne,de]),default:i(({row:e})=>[e.activity?(f(),b("div",ue,r(e.activity.start_date)+" - "+r(e.activity.end_date),1)):E("",!0),e.activity?(f(),b("div",me,r(e.activity.start_time)+" - "+r(e.activity.end_time),1)):E("",!0)]),_:1}),o(c,{fixed:"right",width:"100px",label:"\u64CD\u4F5C"},{default:i(({row:e})=>[o(F,{size:"small",onClick:fe=>R(e)},{default:i(()=>[re]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])]),n("div",pe,[n("div",_e,[o(P,{currentPage:l(t).page,"onUpdate:currentPage":a[4]||(a[4]=e=>l(t).page=e),"page-size":l(t).limit,"onUpdate:page-size":a[5]||(a[5]=e=>l(t).limit=e),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:l(_).count},null,8,["currentPage","page-size","total"])])]),l(y)?(f(),K(J,{key:0,modelValue:l(m),"onUpdate:modelValue":a[6]||(a[6]=e=>M(m)?m.value=e:m=e),sid:l(h),onOnClose:S},null,8,["modelValue","sid"])):E("",!0)],64)}}});const Ue=G(ce,[["__scopeId","data-v-c2ff6382"]]);export{Ue as default};
