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() {