import{_ as y,d as C,w as s,r as m,o as R,c as k,l as e,C as n,u as i,b as N,M as B,aN as w}from"./index.3f1ca816.js";import{R as x}from"./index.61c4ab3f.js";import D from"./choose-modal.ef14a088.js";import E from"./invoice-table.ffc4859f.js";import{c as F}from"./invoice-form.527b9833.js";import{v as T}from"./status.d6b2a53d.js";import"./index.b8874ffe.js";import"./basic-descriptions.78acbb1a.js";import"./tootip.1805b3e1.js";import"./porder.d16f24ea.js";import"./_details.70698317.js";import"./date-range.912a8f3e.js";import"./_options.b664a184.js";import"./global.9ad647c8.js";const b={"w-full":""},g={class:"flex w-full justify-end"},M=C({__name:"return-form",emits:["create"],setup(A,{emit:f}){const c=s(null),p=s(null),d=s(null),o=s({payNo:"",invArr:[]}),_=()=>p.value.onDisplay();function v(){c.value.validate(r=>r&&f("create",i(o)))}const h=r=>{r.forEach(a=>{const t=a.invoiceType;if(!t)return;const l=T.find(({scanValue:u})=>u===t);l&&(a.invoiceType=l.value)}),o.value.invArr=r};return(r,a)=>{const t=m("ElFormItem"),l=m("ElButton");return R(),k("div",b,[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,showTicketColumn:!0,"is-purch-pay":!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:h})]),_:1}),e(t,null,{default:n(()=>[N("div",g,[e(l,{type:"primary",onClick:v},{default:n(()=>[B("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(D,{ref_key:"chooseModalRef",ref:p,onChoose:a[0]||(a[0]=u=>o.value.payNo=u)},null,512)])}}});var S=y(M,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/ticketReturn/components/return-form.vue"]]);export{S as default};