1 |
- import{_ as h,d as C,E as l,x as f,o as R,c as k,y as e,K as n,u as i,b as x,aK as B,W as E}from"./index.743f0c80.js";import{R as N}from"./index.eb1db4ef.js";import D from"./choose-modal.656bb4f4.js";import F from"./invoice-table.da58cc35.js";import{c as w}from"./invoice-form.ddf4fbcb.js";import{j as b}from"./status.868e86c0.js";import"./index.88e5dbb1.js";import"./basic-descriptions.e56bd542.js";import"./tootip.48acd346.js";import"./status.0f757cb5.js";import"./_details.5d1563b3.js";import"./_opitons.2a65e7c0.js";import"./reconciliation.d0aed753.js";import"./global.9ad647c8.js";const g={"w-full":""},T={class:"flex w-full justify-end"},A=E("\u4FDD\u5B58"),I=C({__name:"return-form",emits:["create"],setup(M,{emit:p}){const c=l(null),m=l(null),d=l(null),o=l({payNo:"",invArr:[]}),_=()=>m.value.onDisplay();function v(){c.value.validate(r=>r&&p("create",i(o)))}const y=r=>{r.forEach(a=>{const t=a.invoiceType;if(!t)return;const s=b.find(({scanValue:u})=>u===t);a.invoiceType=s.value}),o.value.invArr=r};return(r,a)=>{const t=f("ElFormItem"),s=f("ElButton");return R(),k("div",g,[e(i(B),{ref_key:"formRef",ref:c,"label-width":"100px",model:o.value,rules:i(w)},{default:n(()=>[e(t,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:n(()=>[e(i(N),{ref_key:"reconciliationRef",ref:d,isPurchPay:"",id:o.value.payNo,readonly:!!o.value.payNo,onChoose:_},null,8,["id","readonly"])]),_:1}),e(t,{label:"\u53D1\u7968",prop:"invArr"},{default:n(()=>[e(F,{onChange:y})]),_:1}),e(t,null,{default:n(()=>[x("div",T,[e(s,{type:"primary",onClick:v},{default:n(()=>[A]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(D,{ref_key:"chooseModalRef",ref:m,onChoose:a[0]||(a[0]=u=>o.value.payNo=u)},null,512)])}}});var U=h(I,[["__file","D:/work/accout-vue3-ui/src/views/supply/ticketReturn/components/return-form.vue"]]);export{U as default};
|