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.1d1a5ecb.js";import{R as x}from"./index.15c50815.js";import D from"./choose-modal.06a59b29.js";import E from"./invoice-table.fb5a9e53.js";import{c as F}from"./invoice-form.585b76e9.js";import{v as T}from"./status.d6b2a53d.js";import"./index.3b07317f.js";import"./basic-descriptions.1879b0f8.js";import"./tootip.76f6bcc3.js";import"./porder.0bfb4ddc.js";import"./_details.70698317.js";import"./date-range.04fa85c1.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};
