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;
}