From e8c14c01d87b7e16bdec7c376ab9298dc9c5fdb3 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Mon, 31 Mar 2025 14:21:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/back/component/addReturn.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/material/back/component/addReturn.vue b/src/views/material/back/component/addReturn.vue index 425aac07..a71a1b88 100644 --- a/src/views/material/back/component/addReturn.vue +++ b/src/views/material/back/component/addReturn.vue @@ -1131,9 +1131,8 @@ export default { this.maCodeList.forEach(sub => { if (sub.maId == item.maId) { this.$nextTick(() => { - setTimeout(() => { - this.$refs.codeTableList.toggleRowSelection(item, true) - }, 500) + this.$refs.codeTableList.toggleRowSelection(item, true) + item.apDetection = sub.apDetection }) } }) @@ -1141,13 +1140,13 @@ export default { } else { //新增回显勾选 // console.log("新增") + console.log(this.maCodeList, '新增') this.machineList.forEach(item => { this.maCodeList.forEach(sub => { if (sub.maId == item.maId) { this.$nextTick(() => { - setTimeout(() => { - this.$refs.codeTableList.toggleRowSelection(item, true) - }, 500) + this.$refs.codeTableList.toggleRowSelection(item, true) + item.apDetection = sub.apDetection }) } }) @@ -1159,6 +1158,7 @@ export default { this.open = true }, codeSelectionChange(selection) { + if (!this.open) return this.maCodeList = selection // console.log(selection) // this.queryParams.equipmentList = selection