From 1fc993b7f2c09533e090e9f5b5c79e988b333668 Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Thu, 2 Nov 2023 16:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/accounting/bankSlip/index.vue | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/views/accounting/bankSlip/index.vue b/src/views/accounting/bankSlip/index.vue index 20fe25b2..6c72f3be 100644 --- a/src/views/accounting/bankSlip/index.vue +++ b/src/views/accounting/bankSlip/index.vue @@ -125,6 +125,17 @@ >新增 + + 删除 + @@ -703,6 +714,8 @@ export default { loading: true, // 多个禁用 multiple: true, + // 非多个禁用 + multiple1: true, // 导出遮罩层 exportLoading: false, // 显示搜索条件 @@ -771,6 +784,9 @@ export default { // 表单校验 rules: { staffName: [{ required: true, message: "请选择", trigger: "blur" }], + tradTime: [ + { required: true, message: "请选择交易日期", trigger: "blur" }, + ], }, fileList: [], // 文件列表 uploadUrl: @@ -1058,7 +1074,7 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { - const id = row.id; + const id = row.id || this.ids; this.$modal .confirm('是否确认删除银行回单编号为"' + id + '"的数据项?') .then(function () { @@ -1098,6 +1114,7 @@ export default { } else { this.multiple = true; } + this.multiple1 = !selection.length; }, //关联凭证 handleGLPZ() {