1 |
- import{_ as h,d as C,E as i,x as m,o as R,c as k,y as e,K as n,u as s,b as x,aK as B,W as E}from"./index.f7dd666a.js";import{R as N}from"./index.41aad638.js";import D from"./choose-modal.c187b61f.js";import F from"./invoice-table.9e6b8350.js";import{c as w}from"./invoice-form.bef55b31.js";import{h as b}from"./status.50c1d4d3.js";import"./index.5279415c.js";import"./basic-descriptions.fbe0aff1.js";import"./tootip.51427c6a.js";import"./status.0f757cb5.js";import"./_details.df0fe4a3.js";import"./_opitons.2a65e7c0.js";import"./reconciliation.59cfa3a2.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=i(null),f=i(null),d=i(null),o=i({payNo:"",invArr:[]}),_=()=>f.value.onDisplay();function v(){c.value.validate(r=>r&&p("create",s(o)))}const y=r=>{r.forEach(a=>{const t=a.invoiceType;if(!t)return;const l=b.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",g,[e(s(B),{ref_key:"formRef",ref:c,"label-width":"100px",model:o.value,rules:s(w)},{default:n(()=>[e(t,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:n(()=>[e(s(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(l,{type:"primary",onClick:v},{default:n(()=>[A]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(D,{ref_key:"chooseModalRef",ref:f,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};
|