import{V as R}from"./index.DhA83F-e.js";import{p as D,r as H}from"./elementPlus.CSBdF9Zt.js";import{u as I}from"./useResponse.DqThFJSa.js";import{g as K}from"./EditDrawer.BO1Cmw1i.js";import M from"./DataTable.DUmJ9KHE.js";import{u as j}from"./useTableHeight.DC32WYSL.js";import{d as z,aI as v,r as m,Z as G,E as J,ai as i,o as u,c as y,U as t,O as n,G as P,a,u as o,F as w,a8 as h,M as U,S as B,J as Q}from"./vue.1RczIYhx.js";import"./_plugin-vue_export-helper.DlAUqK2U.js";import"./index.K_MFulpu.js";import"./SelectDrawer.bzeCvTYh.js";import"./hasPermission.BaNF3kc2.js";import"./index.vue_vue_type_script_setup_true_lang.Q_8XCONs.js";import"./useTableData.BPSaK1qx.js";import"./Columns.DYvMQh-O.js";import"./CreateDialog.vue_vue_type_script_setup_true_lang.CqdH2o28.js";import"./api.B6xven_b.js";import"./countryInfo.Df1X6FZ-.js";import"./DataTableSlot.vue_vue_type_script_setup_true_lang.DWTO5jwI.js";import"./useDownload.CyT3E054.js";/* empty css                   */import"./index.vue_vue_type_script_setup_true_lang.BE_pB_AV.js";import"./api.Dg5Q_G4P.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=z({__name:"index",setup(le){const b=v("titleContainer"),x=v("queryContainer"),{tableHeight:L}=j(b,x),g=v("table"),c=m(!1),f=m(!1),s=G({sku:"",platform:"",country_code:"",sales_mode:""});P("query-parameter",s);const V=m([]),C=m([]);J(()=>{O()});async function O(){const r=(await I(K)).data;C.value=r.platform,V.value=r.country_code}async function q(){var r;c.value=!0,await((r=g.value)==null?void 0:r.fetchList(!0)),c.value=!1}async function E(){var r;for(const e in s)s[e]="";f.value=!0,await((r=g.value)==null?void 0:r.fetchList(!0)),f.value=!1}return(r,e)=>{const S=i("el-input"),d=i("el-col"),p=i("el-option"),_=i("el-select"),T=i("el-row"),k=i("el-button"),F=i("el-divider"),N=i("el-card");return u(),y("div",Z,[t(N,{class:"h-full",style:{color:"rgba(0, 0, 0, 0.88)"}},{default:n(()=>[a("div",{ref_key:"titleContainer",ref:b,class:"text-xl font-semibold pb-5"},"审批查看(供货)",512),a("div",{ref_key:"queryContainer",ref:x,class:"flex justify-between"},[a("div",A,[a("div",W,[t(T,{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(S,{modelValue:o(s).sku,"onUpdate:modelValue":e[0]||(e[0]=l=>o(s).sku=l),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(_,{modelValue:o(s).platform,"onUpdate:modelValue":e[1]||(e[1]=l=>o(s).platform=l),placeholder:"请选择平台"},{default:n(()=>[(u(!0),y(w,null,h(o(C),l=>(u(),U(p,{key:l,label:l,value:l},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(_,{modelValue:o(s).country_code,"onUpdate:modelValue":e[2]||(e[2]=l=>o(s).country_code=l),clearable:"",placeholder:"请选择国家"},{default:n(()=>[(u(!0),y(w,null,h(o(V),l=>(u(),U(p,{key:l,label:l,value:l},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(_,{modelValue:o(s).sales_mode,"onUpdate:modelValue":e[3]||(e[3]=l=>o(s).sales_mode=l),clearable:"",placeholder:"请选择销售模式"},{default:n(()=>[t(p,{label:"线上",value:"线上"}),t(p,{label:"线下",value:"线下"})]),_:1},8,["modelValue"])])]),_:1})]),_:1})])]),t(R),a("div",te,[t(k,{icon:o(D),loading:o(c),type:"primary",onClick:q},{default:n(()=>e[8]||(e[8]=[B(" 查 询 ")])),_:1},8,["icon","loading"]),t(k,{icon:o(H),loading:o(f),color:"#ECECF1C9",style:{width:"88px",color:"#3c3c3c"},onClick:E},{default:n(()=>e[9]||(e[9]=[B(" 重 置 ")])),_:1},8,["icon","loading"])])],512),t(F,{ref:"dividerContainer",style:{margin:"20px 0 12px 0"}},null,512),a("div",{style:Q({height:o(L)+"px"})},[t(M,{ref:"table"},null,512)],4)]),_:1})])}}});export{he as default};
