import{_ as d,d as v,O as h,cc as N,n,w as C,ed as w,o as T,c as _,h as u,i as I}from"./index.js";import{R}from"./index.6004c99e.js";import g from"./choose-modal.98a16f.js";import"./orderRecord.92bbc10f.js";import"./porder.827c74bc.js";const k={"w-full":""},B=v({__name:"choose-form",props:{platformType:{type:String,required:!0},customerNo:{type:String,required:!0}},emits:["create","openInv","getBuyer"],setup(D,{expose:m,emit:c}){const a=c,{currentCompany:s}=h(),p=N(""),l=n(null),i=n(null),r=n({payNo:""}),f=()=>{var e;return(e=l.value)==null?void 0:e.onDisplay()},y=e=>a("getBuyer",e);return C(()=>s.value,async()=>{var o;const{data:e}=await w({code:(o=s.value)==null?void 0:o.companyNo});p.value=(e[0]||{}).relation_code},{immediate:!0}),m({getOpenInvInfo:()=>{var e;return((e=i.value)==null?void 0:e.getOpenInvInfo())||{}}}),(e,o)=>(T(),_("div",k,[u(I(R),{ref_key:"reconciliationRef",ref:i,showTicketColumn:!0,cover:!0,isPurchPay:"",edit:!0,platformType:e.platformType,id:r.value.payNo,readonly:!!r.value.payNo,onGetRecord:y,onChoose:f,onClear:o[0]||(o[0]=t=>r.value.payNo=""),onOpenInv:o[1]||(o[1]=t=>a("openInv",t))},null,8,["platformType","id","readonly"]),u(g,{ref_key:"chooseModalRef",ref:l,supplierNo:p.value,customerNo:e.customerNo,platformType:e.platformType,onChoose:o[2]||(o[2]=t=>r.value.payNo=t)},null,8,["supplierNo","customerNo","platformType"])]))}});var P=d(B,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/invoiceApply/components/currentcy-form-wanyu/chooseForm/choose-form.vue"]]);export{P as default};
