import{_ as h,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.56c69f5a.js";import{R as x}from"./index.e077b65d.js";import D from"./choose-modal.ce55e47a.js";import E from"./invoice-table.251b6145.js";import{c as F}from"./invoice-form.ccee6224.js";import{C as T}from"./status.2df4810d.js";import"./index.2e257471.js";import"./basic-descriptions.5f176484.js";import"./orderRecord.9d7001b8.js";import"./tootip.fe6ea468.js";import"./porder.30193b2b.js";import"./calc.850c7422.js";import"./_details.fe0966e2.js";import"./date-range.c3f1dbd6.js";import"./global.9ad647c8.js";const b={"w-full":""},g={class:"flex w-full justify-end"},I=C({__name:"return-form",emits:["create"],setup(M,{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 y=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:y})]),_: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 W=h(I,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/supplierTicketReturn/components/return-form.vue"]]);export{W as default};
