From 3dc223cabc56d16cbc299663d75172d27325626c Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Tue, 10 Oct 2023 10:14:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=89=B9=E6=B5=81=E7=A8=8B=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/accounting/flow/index.vue | 39 ++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/src/views/accounting/flow/index.vue b/src/views/accounting/flow/index.vue index 12381f61..6148c18f 100644 --- a/src/views/accounting/flow/index.vue +++ b/src/views/accounting/flow/index.vue @@ -77,7 +77,6 @@ - @@ -180,8 +179,22 @@ - - + + + + + @@ -205,11 +218,6 @@ - @@ -270,6 +278,7 @@ import { downloadXml, } from "@/api/accounting/flow"; import { getAccessToken, getTenantId } from "@/utils/auth"; +import { getVoucherPage } from "@/api/accounting/voucher"; export default { name: "Flow", @@ -328,10 +337,12 @@ export default { Authorization: "Bearer " + getAccessToken(), "tenant-id": getTenantId(), }, // 设置上传的请求头 + kjpzOptions: [], //会计凭证 }; }, created() { this.getList(); + this.getKJPZ(); }, methods: { /** 查询列表 */ @@ -344,6 +355,12 @@ export default { this.loading = false; }); }, + //获取会计凭证 + getKJPZ() { + getVoucherPage().then((res) => { + this.kjpzOptions = res.data.list || []; + }); + }, openLink(fileUrl) { window.open(fileUrl); }, @@ -352,7 +369,6 @@ export default { this.open = false; this.reset(); }, - /** 取消按钮 */ cancel1() { this.open1 = false; @@ -408,6 +424,11 @@ export default { this.title = "修改审批流程"; }); }, + //凭证选择 + handleSelectVoucher(val) { + this.form.voucherId = val.id; + this.form.voucherNum = val.voucherNum; + }, /** 提交按钮 */ submitForm() { this.$refs["form"].validate((valid) => {