From c7bb206f9ced39813ccf582bc2da4ebd4d29a088 Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Fri, 3 Nov 2023 14:41:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/accounting/voucher/index.vue | 71 ++++++++++++-------------- 1 file changed, 33 insertions(+), 38 deletions(-) diff --git a/src/views/accounting/voucher/index.vue b/src/views/accounting/voucher/index.vue index b1ff698f..67335852 100644 --- a/src/views/accounting/voucher/index.vue +++ b/src/views/accounting/voucher/index.vue @@ -169,7 +169,7 @@ >查看 修改 + + 记账凭证 @@ -387,6 +389,9 @@ + + + 凭证详情 { - if (!valid) { - return; - } - // 处理查询参数 - let params = { ...this.queryParams }; - downloadXml(params) - .then((response) => { - console.log(response.size); - if (response.size == 39) { - this.$modal.msgError("密码错误"); - return false; - } else { - this.$download.excel(response, "会计凭证元数据.xml"); - this.open1 = false; - } - }) - .catch(() => {}); - }); - }, - //下载元数据 - handleDownloadData() { - this.open1 = true; - this.queryParams.inputPassword = null; - }, /** 查询列表 */ getList() { this.loading = true; @@ -862,12 +838,6 @@ export default { this.resetForm("queryForm"); this.handleQuery(); }, - //获取用户 - getUserList() { - listUser().then((response) => { - this.userOptions = response.data.list; - }); - }, /** 新增按钮操作 */ handleAdd() { this.reset(); @@ -963,6 +933,32 @@ export default { }) .catch(() => {}); }, + //下载元数据 + handleDownloadData() { + this.open1 = true; + this.queryParams.inputPassword = null; + }, + submitForm1() { + this.$refs["queryForm"].validate((valid) => { + if (!valid) { + return; + } + // 处理查询参数 + let params = { ...this.queryParams }; + downloadXml(params) + .then((response) => { + console.log(response.size); + if (response.size == 39) { + this.$modal.msgError("密码错误"); + return false; + } else { + this.$download.excel(response, "会计凭证元数据.xml"); + this.open1 = false; + } + }) + .catch(() => {}); + }); + }, // 人员选择弹窗 handleSelectUser1() { this.$refs.UserSelect1.showFlag = true; @@ -975,7 +971,6 @@ export default { }, // 审核人选择 onUserSelected1(obj) { - console.log(obj); if (obj != undefined && obj != null) { this.form.audit = obj.username; }