return-form.6a143038.js 1.7 KB

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