import{_ as T,d as B,aP as s,x as C,z as D,r as m,o as c,G as i,D as r,l as d,m as e,ar as N,M as g}from"./index.js";import R from"./single.e44042.js";import w from"./batch.ea7b57.js";import"./index.31497729.js";const b=B({__name:"order-modal",props:{platform_type:{type:String,required:!0}},emits:["list"],setup(f,{expose:k,emit:x}){const l=s("1"),_=C(null),t=s(!1),u=s(""),n=s(""),y=a=>{x("list",a),t.value=!1};return k({onDisplay:(a,o)=>{u.value=a,n.value=o,t.value=!0,D(()=>l.value==="1"&&_.value.search())}}),(a,o)=>{const v=m("el-radio"),E=m("el-radio-group"),V=m("ElDialog");return c(),i(V,{modelValue:e(t),"onUpdate:modelValue":o[1]||(o[1]=p=>N(t)?t.value=p:null),title:"\u901A\u7528\u8BA2\u5355\u5217\u8868",center:"",width:"1024px","close-on-click-modal":!1,"close-on-press-escape":!1},{default:r(()=>[d(E,{modelValue:e(l),"onUpdate:modelValue":o[0]||(o[0]=p=>N(l)?l.value=p:null)},{default:r(()=>[d(v,{label:"1"},{default:r(()=>[g("\u52FE\u9009\u67E5\u627E")]),_:1}),d(v,{label:"2"},{default:r(()=>[g("\u6279\u91CF\u67E5\u627E(\u9500\u552E\u5355\u53F7)")]),_:1})]),_:1},8,["modelValue"]),e(l)==="1"?(c(),i(R,{key:0,ref_key:"singleRef",ref:_,customerNo:e(u),companyNo:e(n),platformType:f.platform_type,onList:y},null,8,["customerNo","companyNo","platformType"])):(c(),i(w,{key:1,customerNo:e(u),companyNo:e(n),platformType:f.platform_type,onList:y},null,8,["customerNo","companyNo","platformType"]))]),_:1},8,["modelValue"])}}});var A=T(b,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/currentcyOrderRecord/components/order-modal.vue"]]);export{A as default};
