return-form.6cce9fb4.js 1.6 KB

1
  1. import{_ as h,d as C,w as a,r as c,o as R,c as B,l as e,C as r,u as l,b as N,M as k,aR as x}from"./index.42bf163d.js";import{R as D}from"./index.3d26752b.js";import F from"./choose-modal.c4d36470.js";import b from"./invoice-table.b748c071.js";import{c as w}from"./invoice-form.e002e5be.js";import"./index.e0b507e8.js";import"./basic-descriptions.bd1e983e.js";import"./tootip.bb80052f.js";import"./porder.386fe03e.js";import"./status.d6b2a53d.js";import"./_details.f90e1169.js";import"./global.9ad647c8.js";const E={"w-full":""},A={class:"flex w-full justify-end"},I=C({__name:"return-form",emits:["create"],setup(M,{emit:m}){const s=a(null),u=a(null),f=a(null),o=a({payNo:"",invArr:[]}),p=()=>u.value.onDisplay();function d(){s.value.validate(t=>t&&m("create",l(o)))}const _=t=>o.value.invArr=t;return(t,i)=>{const n=c("ElFormItem"),v=c("ElButton");return R(),B("div",E,[e(l(x),{ref_key:"formRef",ref:s,"label-width":"100px",model:o.value,rules:l(w)},{default:r(()=>[e(n,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:r(()=>[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:r(()=>[e(b,{onChange:_})]),_:1}),e(n,null,{default:r(()=>[N("div",A,[e(v,{type:"primary",onClick:d},{default:r(()=>[k("\u4FDD\u5B58")]),_:1})])]),_:1})]),_:1},8,["model","rules"]),e(F,{ref_key:"chooseModalRef",ref:u,onChoose:i[0]||(i[0]=y=>o.value.payNo=y)},null,512)])}}});var K=h(I,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/buyInvoiceQuery/components/return-form.vue"]]);export{K as default};