From 3f6d078377390bbcf9ca218330a1e997f6f8af87 Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Sun, 8 Oct 2023 15:55:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=83=E6=95=B0=E6=8D=AE=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/accounting/invoices/index.vue | 10 ++++++++-- src/views/accounting/voucher/index.vue | 3 +++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/views/accounting/invoices/index.vue b/src/views/accounting/invoices/index.vue index 5c93fe9f..51f8222e 100644 --- a/src/views/accounting/invoices/index.vue +++ b/src/views/accounting/invoices/index.vue @@ -1280,8 +1280,14 @@ export default { let params = { ...this.queryParams }; downloadXml(params) .then((response) => { - this.$download.excel(response, "发票元数据.xml"); - this.open1 = false; + console.log(response.size); + if (response.size == 39) { + this.$modal.msgError("密码错误"); + return false; + } else { + this.$download.excel(response, "发票元数据.xml"); + this.open1 = false; + } }) .catch(() => {}); }); diff --git a/src/views/accounting/voucher/index.vue b/src/views/accounting/voucher/index.vue index fbc4feb8..1f4bfdb6 100644 --- a/src/views/accounting/voucher/index.vue +++ b/src/views/accounting/voucher/index.vue @@ -438,6 +438,9 @@ export default { cabinetId: undefined, }; this.resetForm("form"); + this.audit = ""; + this.checker = ""; + this.handle = ""; }, /** 搜索按钮操作 */ handleQuery() {