diff --git a/src/views/accounting/attachment/index.vue b/src/views/accounting/attachment/index.vue
index f293ab56..a5043c04 100644
--- a/src/views/accounting/attachment/index.vue
+++ b/src/views/accounting/attachment/index.vue
@@ -46,6 +46,17 @@
>新增
+
+ 删除
+
-
+
+
-
+
+
+
@@ -378,6 +395,12 @@ export default {
showSearch: true,
// 总条数
total: 0,
+ // 非单个禁用
+ single: true,
+ // 非多个禁用
+ multiple: true,
+ // 选中数组
+ ids: [],
// 会计账簿列表
list: [],
// 弹出层标题
@@ -505,6 +528,12 @@ export default {
this.queryParams.pageNo = 1;
this.getList();
},
+ // 多选框选中数据
+ handleSelectionChange(selection) {
+ this.ids = selection.map((item) => item.id);
+ this.single = selection.length !== 1;
+ this.multiple = !selection.length;
+ },
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
@@ -589,7 +618,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
- const id = row.id;
+ const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除会计账簿编号为"' + id + '"的数据项?')
.then(function () {
diff --git a/src/views/accounting/flow/index.vue b/src/views/accounting/flow/index.vue
index 0c572824..3d3f1910 100644
--- a/src/views/accounting/flow/index.vue
+++ b/src/views/accounting/flow/index.vue
@@ -46,6 +46,17 @@
>新增
+
+ 删除
+
-
+
+
-
+
+
@@ -371,6 +387,12 @@ export default {
list: [],
// 弹出层标题
title: "",
+ // 非单个禁用
+ single: true,
+ // 非多个禁用
+ multiple: true,
+ // 选中数组
+ ids: [],
// 是否显示弹出层
open: false,
open1: false,
@@ -560,6 +582,12 @@ export default {
this.title = "修改其他资料";
});
},
+ // 多选框选中数据
+ handleSelectionChange(selection) {
+ this.ids = selection.map((item) => item.id);
+ this.single = selection.length !== 1;
+ this.multiple = !selection.length;
+ },
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate((valid) => {
@@ -585,7 +613,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
- const id = row.id;
+ const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除其他资料编号为"' + id + '"的数据项?')
.then(function () {
diff --git a/src/views/accounting/report/index.vue b/src/views/accounting/report/index.vue
index 5cc448c9..9d657dde 100644
--- a/src/views/accounting/report/index.vue
+++ b/src/views/accounting/report/index.vue
@@ -75,6 +75,17 @@
>新增
+
+ 删除
+
-
+
+
-
+
+
@@ -537,6 +553,12 @@ export default {
showSearch: true,
// 总条数
total: 0,
+ // 非单个禁用
+ single: true,
+ // 非多个禁用
+ multiple: true,
+ // 选中数组
+ ids: [],
// 会计凭证列表
list: [],
// 会计凭证行列表
@@ -819,6 +841,12 @@ export default {
this.queryParams.pageNo = 1;
this.getList();
},
+ // 多选框选中数据
+ handleSelectionChange(selection) {
+ this.ids = selection.map((item) => item.id);
+ this.single = selection.length !== 1;
+ this.multiple = !selection.length;
+ },
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
@@ -895,7 +923,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
- const id = row.id;
+ const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除会计凭证编号为"' + id + '"的数据项?')
.then(function () {
diff --git a/src/views/accounting/voucherDetails/index.vue b/src/views/accounting/voucherDetails/index.vue
index 64db0aad..52f71395 100644
--- a/src/views/accounting/voucherDetails/index.vue
+++ b/src/views/accounting/voucherDetails/index.vue
@@ -46,6 +46,17 @@
>新增
+
+ 删除
+
-
+
+
@@ -259,6 +275,12 @@ export default {
title: "",
// 是否显示弹出层
open: false,
+ // 非单个禁用
+ single: true,
+ // 非多个禁用
+ multiple: true,
+ // 选中数组
+ ids: [],
// 查询参数
queryParams: {
pageNo: 1,
@@ -341,6 +363,12 @@ export default {
this.queryParams.pageNo = 1;
this.getList();
},
+ // 多选框选中数据
+ handleSelectionChange(selection) {
+ this.ids = selection.map((item) => item.id);
+ this.single = selection.length !== 1;
+ this.multiple = !selection.length;
+ },
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
@@ -400,7 +428,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
- const id = row.id;
+ const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除凭证详情编号为"' + id + '"的数据项?')
.then(function () {