import{s as u,r as w}from"./elementPlus.346c766a.js";import{e as x}from"./emitter.d780df30.js";import{d as h,r as T,q as g,j as C,w as D,a9 as s,o as N,E as k,G as r,a as o,M as t,u as l,L as Y,K as v}from"./vue.6daa721c.js";const B={class:"flex flex-wrap gap-7"},M=o("span",{class:"font-bold mr-2",style:{color:"#303133"}},"层级类型:",-1),U=o("span",{class:"font-bold mr-2",style:{color:"#303133"}},"报告类型:",-1),A=o("span",{class:"font-bold mr-2",style:{color:"#303133"}},"搜索词:",-1),L={class:"font-bold mr-2",style:{color:"#303133"}},S=o("span",{class:"font-bold mr-2",style:{color:"#303133"}},"报告日期:",-1),j={class:"flex gap-3.5"},K=h({__name:"QueryCondition",setup(E){const d=T("ASIN"),e=g("filter");C(()=>{c()}),D(()=>e.value.layerType,p=>{p==="asin_view"?d.value="ASIN":p==="brand_view"?d.value="Brand":(d.value="ASIN",e.value.variable="")});function c(){x.emit("QueryCondition-sendRequest")}function y(){e.value.layerType="",e.value.searchTerm="",e.value.reportType="",e.value.reportDate="",e.value.variable=""}return(p,n)=>{const i=s("el-option"),m=s("el-select"),_=s("el-input"),b=s("el-date-picker"),f=s("el-button"),V=s("el-card");return N(),k(V,{"body-class":"flex justify-between gap-3.5",shadow:"hover",style:{border:"none","margin-bottom":"10px"}},{default:r(()=>[o("div",B,[o("div",null,[M,t(m,{modelValue:l(e).layerType,"onUpdate:modelValue":n[0]||(n[0]=a=>l(e).layerType=a),style:{width:"130px"}},{default:r(()=>[t(i,{label:"Asin View",value:"asin_view"}),t(i,{label:"Brand View",value:"brand_view"})]),_:1},8,["modelValue"])]),o("div",null,[U,t(m,{modelValue:l(e).reportType,"onUpdate:modelValue":n[1]||(n[1]=a=>l(e).reportType=a),style:{width:"100px"}},{default:r(()=>[t(i,{label:"月度",value:"MONTHLY"}),t(i,{label:"周度",value:"WEEKLY"})]),_:1},8,["modelValue"])]),o("div",null,[A,t(_,{modelValue:l(e).searchTerm,"onUpdate:modelValue":n[2]||(n[2]=a=>l(e).searchTerm=a),"prefix-icon":l(u),style:{width:"180px"}},null,8,["modelValue","prefix-icon"])]),o("div",null,[o("span",L,Y(d.value)+":",1),t(_,{modelValue:l(e).variable,"onUpdate:modelValue":n[3]||(n[3]=a=>l(e).variable=a),"prefix-icon":l(u),style:{width:"180px"}},null,8,["modelValue","prefix-icon"])]),o("div",null,[S,t(b,{style:{width:"280px"},modelValue:l(e).reportDate,"onUpdate:modelValue":n[4]||(n[4]=a=>l(e).reportDate=a),type:"daterange","range-separator":"To","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY-MM-DD","disabled-date":a=>a>new Date},null,8,["modelValue","disabled-date"])])]),o("div",j,[t(f,{type:"primary",plain:"",icon:l(u),onClick:c},{default:r(()=>[v("查询")]),_:1},8,["icon"]),t(f,{type:"warning",plain:"",round:"",icon:l(w),color:"#0891b2",onClick:y},{default:r(()=>[v("重置")]),_:1},8,["icon"])])]),_:1})}}});export{K as _};
