import{_ as C,d as R,n,r as m,o as B,c as N,h as e,y as r,i as a,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.a1557e.js";import E from"./invoice-table.b507cd.js";import{c as b}from"./invoice-form.0c3a2a.js";import"./orderRecord.92bbc10f.js";import"./porder.827c74bc.js";import"./_details.0f4a1772.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:c}){const f=c,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",a(o)))}const v=t=>o.value.invArr=t;return(t,l)=>{const s=m("ElFormItem"),y=m("ElButton");return B(),N("div",A,[e(a(D),{ref_key:"formRef",ref:u,"label-width":"100px",model:o.value,rules:a(b)},{default:r(()=>[e(s,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:r(()=>[e(a(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(()=>l[1]||(l[1]=[x("\u4FDD\u5B58")])),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(w,{ref_key:"chooseModalRef",ref:i,onChoose:l[0]||(l[0]=h=>o.value.payNo=h)},null,512)])}}});var J=C(M,[["__file","D:/work/jiesuan/settle-vue3/src/views/supply/sellInvoiceQuery/components/return-form.vue"]]);export{J as default};
