退料bug修复

This commit is contained in:
hongchao 2025-08-29 18:05:46 +08:00
parent b5a4871258
commit 4fd3c992dd
1 changed files with 8 additions and 8 deletions

View File

@ -200,7 +200,7 @@
<el-table-column label="类型名称" align="center" prop="typeName" :show-overflow-tooltip="true" />
<el-table-column label="规格型号" align="center" prop="typeModel" :show-overflow-tooltip="true" />
<el-table-column label="计量单位" align="center" prop="unitName" />
<el-table-column label="当前在用量" align="center" prop="num"></el-table-column>
<!-- <el-table-column label="当前在用量" align="center" prop="num"></el-table-column> -->
<el-table-column label="管理模式" align="center" prop="manageType">
<template slot-scope="scope">
<!-- 0编码1数量 -->
@ -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) {