import{_ as y,d as C,x as a,r as i,o as R,c as x,l as e,D as r,m as l,h as B,M as D,aQ as N}from"./index.js";import{R as k}from"./index.79a52a46.js";import F from"./choose-modal.6a27e6.js";import E from"./invoice-table.554adf.js";import{c as b}from"./invoice-form.95d417.js";import"./orderRecord.bd0f73d4.js";import"./porder.cb2a60e8.js";import"./_details.f90e1169.js";import"./global.9ad647c8.js";const w={"w-full":""},A={class:"flex w-full justify-end"},I=C({__name:"return-form",emits:["create"],setup(M,{emit:f}){const s=a(null),u=a(null),m=a(null),o=a({payNo:"",invArr:[]}),p=()=>u.value.onDisplay();function d(){s.value.validate(t=>t&&f("create",l(o)))}const _=t=>o.value.invArr=t;return(t,c)=>{const n=i("ElFormItem"),v=i("ElButton");return R(),x("div",w,[e(l(N),{ref_key:"formRef",ref:s,"label-width":"100px",model:o.value,rules:l(b)},{default:r(()=>[e(n,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:r(()=>[e(l(k),{ref_key:"reconciliationRef",ref:m,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(E,{onChange:_})]),_:1}),e(n,null,{default:r(()=>[B("div",A,[e(v,{type:"primary",onClick:d},{default:r(()=>[D("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(F,{ref_key:"chooseModalRef",ref:u,onChoose:c[0]||(c[0]=h=>o.value.payNo=h)},null,512)])}}});var G=y(I,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/purchase/buyInvoiceQuery/components/return-form.vue"]]);export{G as default};
