1 |
- import{_ as d,d as h,W as C,aP as N,w as a,z as w,aD as I,o as R,c as T,l as u,u as c}from"./index.88f7d256.js";import{R as _}from"./index.9fa951c4.js";import k from"./choose-modal.9bcf68e9.js";import"./index.69815c3e.js";import"./basic-descriptions.5c20357d.js";import"./orderRecord.c9c18fd5.js";import"./tootip.514b092e.js";import"./porder.b626a198.js";import"./status.2df4810d.js";import"./calc.850c7422.js";import"./date-range.b361462b.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:l}=C(),s=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 w(()=>l.value,async()=>{var t;const{data:e}=await I({name:(t=l.value)==null?void 0:t.companyName}),o=e.list[0]||{};s.value=o.code||""},{immediate:!0}),f({getOpenInvInfo:()=>{var e;return((e=m.value)==null?void 0:e.getOpenInvInfo())||{}}}),(e,o)=>(R(),T("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(s),platformType:n.platformType,onChoose:o[2]||(o[2]=t=>r.value.payNo=t)},null,8,["supplierNo","platformType"])]))}});var G=d(D,[["__file","D:/work/accout-vue3-ui2/settle-vue3/src/views/InvoiceSales/invoiceApply/components/currentcy-form/chooseForm/choose-form.vue"]]);export{G as default};
|