import{_ as C,d as R,n,r as c,o as B,c as N,h as e,y as r,i as l,e as k,H as x,cd as D}from"./index.js";import{R as F}from"./index.6004c99e.js";import w from"./choose-modal.c23027.js";import E from"./invoice-table.f087d2.js";import{c as b}from"./invoice-form.981046.js";import"./orderRecord.92bbc10f.js";import"./porder.827c74bc.js";import"./_details.f90e1169.js";import"./global.9ad647c8.js";const A={"w-full":""},I={class:"flex w-full justify-end"},M=R({__name:"return-form",emits:["create"],setup(V,{emit:m}){const f=m,u=n(null),i=n(null),p=n(null),o=n({payNo:"",invArr:[]}),d=()=>i.value.onDisplay();function _(){u.value.validate(t=>t&&f("create",l(o)))}const v=t=>o.value.invArr=t;return(t,a)=>{const s=c("ElFormItem"),y=c("ElButton");return B(),N("div",A,[e(l(D),{ref_key:"formRef",ref:u,"label-width":"100px",model:o.value,rules:l(b)},{default:r(()=>[e(s,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:r(()=>[e(l(F),{ref_key:"reconciliationRef",ref:p,isPurchPay:"",id:o.value.payNo,readonly:!!o.value.payNo,onChoose:d},null,8,["id","readonly"])]),_:1}),e(s,{label:"\u53D1\u7968",prop:"invArr"},{default:r(()=>[e(E,{onChange:v})]),_:1}),e(s,null,{default:r(()=>[k("div",I,[e(y,{type:"primary",onClick:_},{default:r(()=>a[1]||(a[1]=[x("\u4FDD\u5B58")])),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(w,{ref_key:"chooseModalRef",ref:i,onChoose:a[0]||(a[0]=h=>o.value.payNo=h)},null,512)])}}});var J=C(M,[["__file","D:/work/jiesuan/settle-vue3/src/views/purchase/buyInvoiceQuery/components/return-form.vue"]]);export{J as default};
