From 4fd3c992dddf8d56455f3a5060676f382ee3a999 Mon Sep 17 00:00:00 2001
From: hongchao <3228015117@qq.com>
Date: Fri, 29 Aug 2025 18:05:46 +0800
Subject: [PATCH] =?UTF-8?q?=E9=80=80=E6=96=99bug=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/material/back/component/addReturn.vue | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/views/material/back/component/addReturn.vue b/src/views/material/back/component/addReturn.vue
index 7cc6ed84..bf7e3e2d 100644
--- a/src/views/material/back/component/addReturn.vue
+++ b/src/views/material/back/component/addReturn.vue
@@ -200,7 +200,7 @@
-
+
@@ -884,12 +884,12 @@ export default {
this.queryParams.agreementId = data.backApplyInfo.agreementId
this.queryParams.remark = data.backApplyInfo.remark
this.equipmentList = data.backApplyDetailsList
- this.equipmentList.forEach(item => {
- // item.tempMaCodeList = item.maCodeList
- const list = Array.isArray(item.maCodeList) ? item.maCodeList : []
- item.goodNum = list.filter(code => code.apDetection === '1' || code.apDetection === '完好').length
- item.badNum = list.filter(code => code.apDetection === '0' || code.apDetection === '不合格').length
- })
+ // this.equipmentList.forEach(item => {
+ // // item.tempMaCodeList = item.maCodeList
+ // const list = Array.isArray(item.maCodeList) ? item.maCodeList : []
+ // item.goodNum = list.filter(code => code.apDetection === '1' || code.apDetection === '完好').length
+ // item.badNum = list.filter(code => code.apDetection === '0' || code.apDetection === '不合格').length
+ // })
this.GetDeviceTypeTreeFn(data.backApplyInfo.agreementId)
},
//单位,工程树结构数据获取父
@@ -1147,7 +1147,7 @@ export default {
this.maCodeList.forEach(sub => {
if (sub.apDetection == '完好') {
sub.apDetection = '1'
- } else if (sub.apDetection == '不合格') {
+ } else if (sub.apDetection == '不合格' || sub.apDetection == '损坏') {
sub.apDetection = '0'
}
if (sub.maId == item.maId) {