import{_ as h,d as C,w as a,r as c,o as N,c as R,l as e,C as r,u as l,b as B,M as k,aN as x}from"./index.0bc83371.js";import{R as D}from"./index.3b71de1a.js";import F from"./choose-modal.3123b558.js";import w from"./invoice-table.36e3bdf6.js";import{c as E}from"./invoice-form.2a58aaf6.js";import"./index.a6946a3d.js";import"./basic-descriptions.10a27b1b.js";import"./tootip.d8389d77.js";import"./porder.1fe952aa.js";import"./status.d6b2a53d.js";import"./_details.0f4a1772.js";import"./global.9ad647c8.js";const b={"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 N(),R("div",b,[e(l(x),{ref_key:"formRef",ref:s,"label-width":"100px",model:o.value,rules:l(E)},{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(w,{onChange:_})]),_:1}),e(n,null,{default:r(()=>[B("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/supply/sellInvoiceQuery/components/return-form.vue"]]);export{K as default};