import{_ as h,d as C,w as a,r as c,o as R,c as B,l as e,C as r,u as l,b as N,M as k,aR as x}from"./index.1d1a5ecb.js";import{R as D}from"./index.15c50815.js";import F from"./choose-modal.dbf28bd9.js";import b from"./invoice-table.b5486c75.js";import{c as w}from"./invoice-form.33feefe1.js";import"./index.3b07317f.js";import"./basic-descriptions.1879b0f8.js";import"./tootip.76f6bcc3.js";import"./porder.0bfb4ddc.js";import"./status.d6b2a53d.js";import"./_details.f90e1169.js";import"./global.9ad647c8.js";const E={"w-full":""},A={class:"flex w-full justify-end"},I=C({__name:"return-form",emits:["create"],setup(M,{emit:m}){const s=a(null),u=a(null),f=a(null),o=a({payNo:"",invArr:[]}),p=()=>u.value.onDisplay();function d(){s.value.validate(t=>t&&m("create",l(o)))}const _=t=>o.value.invArr=t;return(t,i)=>{const n=c("ElFormItem"),v=c("ElButton");return R(),B("div",E,[e(l(x),{ref_key:"formRef",ref:s,"label-width":"100px",model:o.value,rules:l(w)},{default:r(()=>[e(n,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:r(()=>[e(l(D),{ref_key:"reconciliationRef",ref:f,isPurchPay:"",id:o.value.payNo,readonly:!!o.value.payNo,onChoose:p},null,8,["id","readonly"])]),_:1}),e(n,{label:"\u53D1\u7968",prop:"invArr"},{default:r(()=>[e(b,{onChange:_})]),_:1}),e(n,null,{default:r(()=>[N("div",A,[e(v,{type:"primary",onClick:d},{default:r(()=>[k("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(F,{ref_key:"chooseModalRef",ref:u,onChoose:i[0]||(i[0]=y=>o.value.payNo=y)},null,512)])}}});var K=h(I,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/buyInvoiceQuery/components/return-form.vue"]]);export{K as default};
