import{V as D}from"./index.DhA83F-e.js";import{o as H,p as I}from"./elementPlus.CqHltQSO.js";import{u as K}from"./useResponse.DqThFJSa.js";import{a as M}from"./EditDrawer.3RypvT_h.js";import j from"./DataTable.Bi6Jo7wZ.js";import{u as z}from"./useTableHeight.DC32WYSL.js";import{d as G,aI as b,r as m,Z as J,E as P,ai as i,o as u,c as x,U as t,O as n,G as V,a,u as l,F as h,a8 as O,M as U,S as B,J as Q}from"./vue.1RczIYhx.js";import"./_plugin-vue_export-helper.DlAUqK2U.js";import"./index.DoJnwA7v.js";import"./SelectDrawer.Df4VeUwk.js";import"./hasPermission.lEsua58A.js";import"./index.vue_vue_type_script_setup_true_lang.DfUMpYc_.js";import"./useTableData.DHj98pR6.js";import"./Columns.DYvMQh-O.js";import"./CreateDialog.vue_vue_type_script_setup_true_lang.Dt3r5phF.js";import"./api.FNU4LEXI.js";import"./countryInfo.Df1X6FZ-.js";import"./DataTableSlot.vue_vue_type_script_setup_true_lang.CPqqYQQV.js";import"./useDownload.DSBxMDL7.js";/* empty css                   */import"./index.vue_vue_type_script_setup_true_lang.CnQKxUsi.js";import"./api.BPEftIz6.js";const Z={class:"p-5"},A={class:"flex flex-1"},W={class:"w-full whitespace-nowrap"},X={class:"flex items-center"},Y={class:"flex items-center"},$={class:"flex items-center"},ee={class:"flex items-center"},te={class:"flex gap-1.5 ml-5"},he=G({__name:"index",setup(oe){const g=b("titleContainer"),C=b("queryContainer"),{tableHeight:L}=z(g,C),k=b("table"),c=m(!1),f=m(!1),s=J({sku:"",platform:"",country_code:"",sales_mode:""});V("query-parameter",s);const _=m([]),v=m([]);V("countryOptions",_),V("platformOptions",v),P(()=>{q()});async function q(){const r=(await K(M)).data;v.value=r.platform,_.value=r.country_code}async function E(){var r;c.value=!0,await((r=k.value)==null?void 0:r.fetchList(!0)),c.value=!1}async function S(){var r;for(const e in s)s[e]="";f.value=!0,await((r=k.value)==null?void 0:r.fetchList(!0)),f.value=!1}return(r,e)=>{const T=i("el-input"),d=i("el-col"),p=i("el-option"),y=i("el-select"),F=i("el-row"),w=i("el-button"),N=i("el-divider"),R=i("el-card");return u(),x("div",Z,[t(R,{class:"h-full",style:{color:"rgba(0, 0, 0, 0.88)"}},{default:n(()=>[a("div",{ref_key:"titleContainer",ref:g,class:"text-xl font-semibold pb-5"},"审批查看(直销)",512),a("div",{ref_key:"queryContainer",ref:C,class:"flex justify-between"},[a("div",A,[a("div",W,[t(F,{gutter:20,style:{"margin-bottom":"5px"}},{default:n(()=>[t(d,{span:5},{default:n(()=>[a("div",X,[e[4]||(e[4]=a("span",{class:"mr-2"},"SKU",-1)),t(T,{modelValue:l(s).sku,"onUpdate:modelValue":e[0]||(e[0]=o=>l(s).sku=o),clearable:"",placeholder:"请输入SKU"},null,8,["modelValue"])])]),_:1}),t(d,{span:5},{default:n(()=>[a("div",Y,[e[5]||(e[5]=a("span",{class:"mr-2"},"平 台",-1)),t(y,{modelValue:l(s).platform,"onUpdate:modelValue":e[1]||(e[1]=o=>l(s).platform=o),placeholder:"请选择平台"},{default:n(()=>[(u(!0),x(h,null,O(l(v),o=>(u(),U(p,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t(d,{span:5,class:"flex"},{default:n(()=>[a("div",$,[e[6]||(e[6]=a("span",{class:"mr-2"},"国 家",-1)),t(y,{modelValue:l(s).country_code,"onUpdate:modelValue":e[2]||(e[2]=o=>l(s).country_code=o),clearable:"",placeholder:"请选择国家"},{default:n(()=>[(u(!0),x(h,null,O(l(_),o=>(u(),U(p,{key:o,label:o,value:o},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),_:1}),t(d,{span:5},{default:n(()=>[a("div",ee,[e[7]||(e[7]=a("span",{class:"mr-2"},"销售模式",-1)),t(y,{modelValue:l(s).sales_mode,"onUpdate:modelValue":e[3]||(e[3]=o=>l(s).sales_mode=o),clearable:"",placeholder:"请选择销售模式"},{default:n(()=>[t(p,{label:"线上",value:"线上"}),t(p,{label:"线下",value:"线下"})]),_:1},8,["modelValue"])])]),_:1})]),_:1})])]),t(D),a("div",te,[t(w,{icon:l(H),loading:l(c),type:"primary",onClick:E},{default:n(()=>e[8]||(e[8]=[B(" 查 询 ")])),_:1},8,["icon","loading"]),t(w,{icon:l(I),loading:l(f),color:"#ECECF1C9",style:{width:"88px",color:"#3c3c3c"},onClick:S},{default:n(()=>e[9]||(e[9]=[B(" 重 置 ")])),_:1},8,["icon","loading"])])],512),t(N,{ref:"dividerContainer",style:{margin:"20px 0 12px 0"}},null,512),a("div",{style:Q({height:l(L)+"px"})},[t(j,{ref:"table"},null,512)],4)]),_:1})])}}});export{he as default};
