import{_ as v,d as N,W as h,aP as C,x as a,A as T,cP as I,o as R,c as w,l as i,m}from"./index.js";import{R as g}from"./index.79a52a46.js";import k from"./choose-modal.c9a6fa.js";import"./orderRecord.bd0f73d4.js";import"./porder.cb2a60e8.js";import"./date-range.019e953f.js";const _={"w-full":""},x=N({__name:"choose-form",props:{platformType:{type:String,required:!0},customerNo:{type:String,required:!0}},emits:["create","openInv","getBuyer"],setup(n,{expose:f,emit:s}){const{currentCompany:l}=h(),p=C(""),u=a(null),c=a(null),r=a({payNo:""}),y=()=>{var e;return(e=u.value)==null?void 0:e.onDisplay()},d=e=>s("getBuyer",e);return T(()=>l.value,async()=>{var o;const{data:e}=await I({code:(o=l.value)==null?void 0:o.companyNo});p.value=(e[0]||{}).relation_code},{immediate:!0}),f({getOpenInvInfo:()=>{var e;return((e=c.value)==null?void 0:e.getOpenInvInfo())||{}}}),(e,o)=>(R(),w("div",_,[i(m(g),{ref_key:"reconciliationRef",ref:c,showTicketColumn:!0,cover:!0,isPurchPay:"",edit:!0,platformType:n.platformType,id:r.value.payNo,readonly:!!r.value.payNo,onGetRecord:d,onChoose:y,onClear:o[0]||(o[0]=t=>r.value.payNo=""),onOpenInv:o[1]||(o[1]=t=>s("openInv",t))},null,8,["platformType","id","readonly"]),i(k,{ref_key:"chooseModalRef",ref:u,supplierNo:m(p),customerNo:n.customerNo,platformType:n.platformType,onChoose:o[2]||(o[2]=t=>r.value.payNo=t)},null,8,["supplierNo","customerNo","platformType"])]))}});var S=v(x,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/invoiceApply/components/currentcy-form-wanyu/chooseForm/choose-form.vue"]]);export{S as default};
