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.56c69f5a.js";import{R as D}from"./index.e077b65d.js";import F from"./choose-modal.57db37ed.js";import b from"./invoice-table.3544937e.js";import{c as w}from"./invoice-form.3b44897c.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"./_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),p=a(null),o=a({payNo:"",invArr:[]}),f=()=>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:p,isPurchPay:"",id:o.value.payNo,readonly:!!o.value.payNo,onChoose:f},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 O=h(I,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/buyInvoiceQuery/components/return-form.vue"]]);export{O as default};
