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 B,M as N,aR as w}from"./index.fd765376.js";import{R as x}from"./index.a88e75c0.js";import D from"./choose-modal.f2991dfd.js";import E from"./invoice-table.53b4e2bd.js";import{c as F}from"./invoice-form.30172897.js";import{v as T}from"./status.0f05917e.js";import"./index.8444c556.js";import"./basic-descriptions.6db97105.js";import"./tootip.99c35844.js";import"./porder.24af2c44.js";import"./_details.70698317.js";import"./date-range.03e0d64c.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(()=>[B("div",g,[e(l,{type:"primary",onClick:v},{default:n(()=>[N("\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};