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) {