From 983968e3977b165c78732d14e16f2185719c5d2f Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Thu, 2 Nov 2023 09:14:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=AD=E8=AF=81=E6=A1=86=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/accounting/attachment/index.vue | 55 ++++++++++++++--------- src/views/accounting/flow/index.vue | 50 ++++++++++++--------- 2 files changed, 65 insertions(+), 40 deletions(-) diff --git a/src/views/accounting/attachment/index.vue b/src/views/accounting/attachment/index.vue index da4adb79..60c82c64 100644 --- a/src/views/accounting/attachment/index.vue +++ b/src/views/accounting/attachment/index.vue @@ -169,25 +169,6 @@ style="margin-top: 20px" > - - - - - - - - + + + + + + + + {}); }, + handleSelectVoucher() { + this.$refs.VoucherSelect.showFlag = true; + }, + onVoucherSelected(obj) { + console.log(obj); + if (obj != undefined && obj != null) { + this.form.voucherNum = obj.voucherNum; + } + }, }, }; diff --git a/src/views/accounting/flow/index.vue b/src/views/accounting/flow/index.vue index 47a444bf..df44e435 100644 --- a/src/views/accounting/flow/index.vue +++ b/src/views/accounting/flow/index.vue @@ -188,22 +188,27 @@ - - + - - - + + + @@ -266,10 +271,11 @@ import { } from "@/api/accounting/flow"; import { getAccessToken, getTenantId } from "@/utils/auth"; import { getVoucherPage } from "@/api/accounting/voucher"; +import VoucherSelect from "@/components/VoucherSelect/single.vue"; export default { name: "Flow", - components: {}, + components: { VoucherSelect }, data() { return { optType: undefined, @@ -429,11 +435,6 @@ export default { this.title = "修改审批流程"; }); }, - //凭证选择 - handleSelectVoucher(val) { - this.form.voucherId = val.id; - this.form.voucherNum = val.voucherNum; - }, /** 提交按钮 */ submitForm() { this.$refs["form"].validate((valid) => { @@ -521,6 +522,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; + } + }, }, };