From 1480adf506117e926c3a68d2da8d01068840a8b7 Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Wed, 1 Nov 2023 15:37:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=87=AD=E8=AF=81=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/VoucherSelect/single.vue | 178 ++++++++++++++++++ src/views/accounting/voucherDetails/index.vue | 43 ++++- 2 files changed, 214 insertions(+), 7 deletions(-) create mode 100644 src/components/VoucherSelect/single.vue diff --git a/src/components/VoucherSelect/single.vue b/src/components/VoucherSelect/single.vue new file mode 100644 index 00000000..d604bfcf --- /dev/null +++ b/src/components/VoucherSelect/single.vue @@ -0,0 +1,178 @@ + + + diff --git a/src/views/accounting/voucherDetails/index.vue b/src/views/accounting/voucherDetails/index.vue index 49827826..7235d358 100644 --- a/src/views/accounting/voucherDetails/index.vue +++ b/src/views/accounting/voucherDetails/index.vue @@ -132,13 +132,32 @@ - - + + + + + - - + + @@ -186,8 +205,8 @@ - - + + @@ -209,10 +228,11 @@ import { getVoucherDetailsPage, exportVoucherDetailsExcel, } from "@/api/accounting/voucherDetails"; +import VoucherSelect from "@/components/VoucherSelect/single.vue"; export default { name: "VoucherDetails", - components: {}, + components: { VoucherSelect }, data() { return { // 遮罩层 @@ -387,6 +407,15 @@ export default { }) .catch(() => {}); }, + handleSelectVoucher() { + this.$refs.VoucherSelect.showFlag = true; + }, + onVoucherSelected(obj) { + console.log(obj); + if (obj != undefined && obj != null) { + this.form.voucherNum = obj.voucherNum; + } + }, }, };