import{_ as h,d as C,w as s,r as p,o as R,c as k,l as e,C as n,u as i,b as B,M as N,aR as w}from"./index.42bf163d.js";import{R as x}from"./index.3d26752b.js";import D from"./choose-modal.d9816baa.js";import E from"./invoice-table.3b28b406.js";import{c as F}from"./invoice-form.f063b2be.js";import{v as b}from"./status.d6b2a53d.js";import"./index.e0b507e8.js";import"./basic-descriptions.bd1e983e.js";import"./tootip.bb80052f.js";import"./porder.386fe03e.js";import"./_details.930f66d0.js";import"./date-range.26f9b7e9.js";import"./_options.31f08d77.js";import"./global.9ad647c8.js";const g={"w-full":""},T={class:"flex w-full justify-end"},M=C({__name:"return-form",emits:["create"],setup(A,{emit:f}){const c=s(null),m=s(null),d=s(null),o=s({payNo:"",invArr:[]}),_=()=>m.value.onDisplay();function v(){c.value.validate(r=>r&&f("create",i(o)))}const y=r=>{r.forEach(a=>{const t=a.invoiceType;if(!t)return;const l=b.find(({scanValue:u})=>u===t);l&&(a.invoiceType=l.value)}),o.value.invArr=r};return(r,a)=>{const t=p("ElFormItem"),l=p("ElButton");return R(),k("div",g,[e(i(w),{ref_key:"formRef",ref:c,"label-width":"100px",model:o.value,rules:i(F)},{default:n(()=>[e(t,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:n(()=>[e(i(x),{ref_key:"reconciliationRef",ref:d,isPurchPay:!0,"show-ticket-column":!0,id:o.value.payNo,readonly:!!o.value.payNo,onChoose:_},null,8,["id","readonly"])]),_:1}),e(t,{label:"\u53D1\u7968",prop:"invArr"},{default:n(()=>[e(E,{onChange:y})]),_:1}),e(t,null,{default:n(()=>[B("div",T,[e(l,{type:"primary",onClick:v},{default:n(()=>[N("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(D,{ref_key:"chooseModalRef",ref:m,onChoose:a[0]||(a[0]=u=>o.value.payNo=u)},null,512)])}}});var S=h(M,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supply/ticketReturn/components/return-form.vue"]]);export{S as default};