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