import{_ as v,d as C,w as s,r as m,o as N,c as R,l as e,C as n,a as k,b as D,M as w,u as c,aR as B}from"./index.56c69f5a.js";import x from"./index.805e9566.js";import E from"./choose-modal.0950c91f.js";import F from"./invoice-table.4b5cd033.js";import{c as T}from"./invoice-form.64d083da.js";import{C as b}from"./status.2df4810d.js";import"./basic-descriptions.5f176484.js";import"./tootip.fe6ea468.js";import"./orderRecord.9d7001b8.js";import"./calc.850c7422.js";import"./index.5ce46a74.js";import"./_details.7e8f00e4.js";import"./index.2e257471.js";import"./date-range.c3f1dbd6.js";import"./global.9ad647c8.js";const g={"w-full":""},I={class:"flex w-full justify-end"},M=C({__name:"return-form",emits:["create"],setup(V,{emit:f}){const u=s(null),p=s(null),d=s(null),o=s({payNo:"",invArr:[]}),_=()=>p.value.onDisplay();function y(){u.value.validate(t=>t&&f("create",c(o)))}const h=t=>{t.forEach(a=>{const r=a.invoiceType;if(!r)return;const l=b.find(({scanValue:i})=>i===r);l&&(a.invoiceType=l.value)}),o.value.invArr=t};return(t,a)=>{const r=m("ElFormItem"),l=m("ElButton");return N(),R("div",g,[e(c(B),{ref_key:"formRef",ref:u,"label-width":"100px",model:o.value,rules:c(T)},{default:n(()=>[e(r,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:n(()=>[k(` <ReconciliationForm\r
          ref="reconciliationRef"\r
          :showTicketColumn="true"\r
          :is-purch-pay="true"\r
          :id="formData.payNo"\r
          :readonly="!!formData.payNo"\r
          @choose="handleChoose"\r
        /> `),e(x,{ref_key:"reconciliationRef",ref:d,showTicketColumn:!0,"is-purch-pay":!0,payNo:o.value.payNo,readonly:!!o.value.payNo,onChoose:_,choose:"",request:""},null,8,["payNo","readonly"])]),_:1}),e(r,{label:"\u53D1\u7968",prop:"invArr"},{default:n(()=>[e(F,{onChange:h})]),_:1}),e(r,null,{default:n(()=>[D("div",I,[e(l,{type:"primary",onClick:y},{default:n(()=>[w("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(E,{ref_key:"chooseModalRef",ref:p,onChoose:a[0]||(a[0]=i=>o.value.payNo=i)},null,512)])}}});var X=v(M,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supplierOrder/sendOrderInvoice/components/return-form.vue"]]);export{X as default};
