return-form.1dbde51b.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.fd765376.js";import{R as D}from"./index.a88e75c0.js";import F from"./choose-modal.63e6d9b0.js";import w from"./invoice-table.7ec9ee79.js";import{c as E}from"./invoice-form.8b8b0981.js";import"./index.8444c556.js";import"./basic-descriptions.6db97105.js";import"./tootip.99c35844.js";import"./porder.24af2c44.js";import"./status.0f05917e.js";import"./_details.0f4a1772.js";import"./global.9ad647c8.js";const b={"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),p=a(null),o=a({payNo:"",invArr:[]}),f=()=>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",b,[e(l(x),{ref_key:"formRef",ref:s,"label-width":"100px",model:o.value,rules:l(E)},{default:r(()=>[e(n,{label:"\u8BA2\u5355\u5BF9\u8D26",prop:"payNo"},{default:r(()=>[e(l(D),{ref_key:"reconciliationRef",ref:p,isPurchPay:"",id:o.value.payNo,readonly:!!o.value.payNo,onChoose:f},null,8,["id","readonly"])]),_:1}),e(n,{label:"\u53D1\u7968",prop:"invArr"},{default:r(()=>[e(w,{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/supply/sellInvoiceQuery/components/return-form.vue"]]);export{K as default};