import{V as F}from"./index.DhA83F-e.js";import{o as N,p as R}from"./elementPlus.CqHltQSO.js";import{u as H}from"./useTableHeight.DC32WYSL.js";import j from"./DataTable.DCU3rUYO.js";import{D as z}from"./index.DoJnwA7v.js";import{u as G}from"./countryInfo.Df1X6FZ-.js";import{d as J,aI as m,r as C,Z as M,ai as r,o as d,c as f,U as t,O as s,G as O,a,u as l,F as w,a8 as h,M as k,S as I,J as P}from"./vue.1RczIYhx.js";import"./_plugin-vue_export-helper.DlAUqK2U.js";import"./useTableData.DHj98pR6.js";import"./Columns.DS8p9XoK.js";import"./DataTableSlot.vue_vue_type_script_setup_true_lang.DKC15_BF.js";import"./useTagColor.B-JXlmrE.js";const Q={class:"p-5"},Z={class:"flex flex-1"},A={class:"w-full whitespace-nowrap"},K={class:"flex items-center"},W={class:"flex items-center"},X={class:"flex items-center"},Y={class:"flex items-center"},$={class:"flex gap-1.5 ml-5"},me=J({__name:"index",setup(ee){const{data:D}=z(),L=G(),_=m("titleContainer"),v=m("queryContainer"),{tableHeight:S}=H(_,v),y=m("table"),c=C(!1),p=C(!1),n=M({country:"",region:"",shop:"",platformId:""});O("query-parameter",n);async function U(){var i;c.value=!0,await((i=y.value)==null?void 0:i.fetchList(!0)),c.value=!1}async function q(){var i;for(const e in n)n[e]="";p.value=!0,await((i=y.value)==null?void 0:i.fetchList(!0)),p.value=!1}return(i,e)=>{const b=r("el-option"),x=r("el-select"),u=r("el-col"),g=r("el-input"),B=r("el-row"),V=r("el-button"),T=r("el-divider"),E=r("el-card");return d(),f("div",Q,[t(E,{class:"h-full",style:{color:"rgba(0, 0, 0, 0.88)"}},{default:s(()=>[a("div",{ref_key:"titleContainer",ref:_,class:"text-xl font-semibold pb-5"},"市场店铺",512),a("div",{ref_key:"queryContainer",ref:v,class:"flex justify-between"},[a("div",Z,[a("div",A,[t(B,{gutter:20,style:{"margin-bottom":"5px"}},{default:s(()=>[t(u,{span:6},{default:s(()=>[a("div",K,[e[4]||(e[4]=a("span",{class:"mr-2"},"国 家",-1)),t(x,{modelValue:l(n).country,"onUpdate:modelValue":e[0]||(e[0]=o=>l(n).country=o),clearable:"",placeholder:"请选择国家"},{default:s(()=>[(d(!0),f(w,null,h(l(D).country_code,o=>(d(),k(b,{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t(u,{span:6},{default:s(()=>[a("div",W,[e[5]||(e[5]=a("span",{class:"mr-2"},"站 点",-1)),t(x,{modelValue:l(n).region,"onUpdate:modelValue":e[1]||(e[1]=o=>l(n).region=o),clearable:"",placeholder:"请选择品牌"},{default:s(()=>[(d(!0),f(w,null,h(l(L).Region,o=>(d(),k(b,{label:o.name,value:o.code},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])])]),_:1}),t(u,{span:6},{default:s(()=>[a("div",X,[e[6]||(e[6]=a("span",{class:"mr-2"},"店 铺",-1)),t(g,{modelValue:l(n).shop,"onUpdate:modelValue":e[2]||(e[2]=o=>l(n).shop=o),clearable:"",placeholder:"请输入店铺名称"},null,8,["modelValue"])])]),_:1}),t(u,{span:6},{default:s(()=>[a("div",Y,[e[7]||(e[7]=a("span",{class:"mr-2"},"平台编号",-1)),t(g,{modelValue:l(n).platformId,"onUpdate:modelValue":e[3]||(e[3]=o=>l(n).platformId=o),clearable:"",placeholder:"请输入平台编号"},null,8,["modelValue"])])]),_:1})]),_:1})])]),t(F),a("div",$,[t(V,{icon:l(N),loading:l(c),type:"primary",onClick:U},{default:s(()=>e[8]||(e[8]=[I(" 查 询 ")])),_:1},8,["icon","loading"]),t(V,{icon:l(R),loading:l(p),color:"#ECECF1C9",style:{width:"88px",color:"#3c3c3c"},onClick:q},{default:s(()=>e[9]||(e[9]=[I(" 重 置 ")])),_:1},8,["icon","loading"])])],512),t(T,{ref:"dividerContainer",style:{margin:"20px 0 12px 0"}},null,512),a("div",{style:P({height:l(S)+"px"})},[t(j,{ref:"table"},null,512)],4)]),_:1})])}}});export{me as default};
