import{_ as d,d as h,W as C,aP as N,w as a,z as I,aD as R,o as T,c as w,l as u,u as c}from"./index.56c69f5a.js";import{R as _}from"./index.e077b65d.js";import k from"./choose-modal.09f969b2.js";import"./index.2e257471.js";import"./basic-descriptions.5f176484.js";import"./orderRecord.9d7001b8.js";import"./tootip.fe6ea468.js";import"./porder.30193b2b.js";import"./status.2df4810d.js";import"./calc.850c7422.js";import"./date-range.c3f1dbd6.js";const g={"w-full":""},D=h({__name:"choose-form",props:{platformType:{type:String,required:!0}},emits:["create","openInv","getBuyer"],setup(n,{expose:f,emit:p}){const{currentCompany:s}=C(),l=N(""),i=a(null),m=a(null),r=a({payNo:""}),y=()=>{var e;return(e=i.value)==null?void 0:e.onDisplay()},v=e=>p("getBuyer",e);return I(()=>s.value,async()=>{var t;const{data:e}=await R({name:(t=s.value)==null?void 0:t.companyName}),o=e.list[0]||{};l.value=o.code||""},{immediate:!0}),f({getOpenInvInfo:()=>{var e;return((e=m.value)==null?void 0:e.getOpenInvInfo())||{}}}),(e,o)=>(T(),w("div",g,[u(c(_),{ref_key:"reconciliationRef",ref:m,showTicketColumn:!0,cover:!0,isPurchPay:"",edit:!0,platformType:n.platformType,id:r.value.payNo,readonly:!!r.value.payNo,onGetRecord:v,onChoose:y,onClear:o[0]||(o[0]=t=>r.value.payNo=""),onOpenInv:o[1]||(o[1]=t=>p("openInv",t))},null,8,["platformType","id","readonly"]),u(k,{ref_key:"chooseModalRef",ref:i,supplierNo:c(l),platformType:n.platformType,onChoose:o[2]||(o[2]=t=>r.value.payNo=t)},null,8,["supplierNo","platformType"])]))}});var E=d(D,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/invoiceApply/components/currentcy-form/chooseForm/choose-form.vue"]]);export{E as default};
