退料bug修复
This commit is contained in:
parent
b5a4871258
commit
4fd3c992dd
|
|
@ -200,7 +200,7 @@
|
||||||
<el-table-column label="类型名称" align="center" prop="typeName" :show-overflow-tooltip="true" />
|
<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="typeModel" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="计量单位" align="center" prop="unitName" />
|
<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">
|
<el-table-column label="管理模式" align="center" prop="manageType">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- 0编码1数量 -->
|
<!-- 0编码1数量 -->
|
||||||
|
|
@ -884,12 +884,12 @@ export default {
|
||||||
this.queryParams.agreementId = data.backApplyInfo.agreementId
|
this.queryParams.agreementId = data.backApplyInfo.agreementId
|
||||||
this.queryParams.remark = data.backApplyInfo.remark
|
this.queryParams.remark = data.backApplyInfo.remark
|
||||||
this.equipmentList = data.backApplyDetailsList
|
this.equipmentList = data.backApplyDetailsList
|
||||||
this.equipmentList.forEach(item => {
|
// this.equipmentList.forEach(item => {
|
||||||
// item.tempMaCodeList = item.maCodeList
|
// // item.tempMaCodeList = item.maCodeList
|
||||||
const list = Array.isArray(item.maCodeList) ? item.maCodeList : []
|
// const list = Array.isArray(item.maCodeList) ? item.maCodeList : []
|
||||||
item.goodNum = list.filter(code => code.apDetection === '1' || code.apDetection === '完好').length
|
// item.goodNum = list.filter(code => code.apDetection === '1' || code.apDetection === '完好').length
|
||||||
item.badNum = list.filter(code => code.apDetection === '0' || code.apDetection === '不合格').length
|
// item.badNum = list.filter(code => code.apDetection === '0' || code.apDetection === '不合格').length
|
||||||
})
|
// })
|
||||||
this.GetDeviceTypeTreeFn(data.backApplyInfo.agreementId)
|
this.GetDeviceTypeTreeFn(data.backApplyInfo.agreementId)
|
||||||
},
|
},
|
||||||
//单位,工程树结构数据获取父
|
//单位,工程树结构数据获取父
|
||||||
|
|
@ -1147,7 +1147,7 @@ export default {
|
||||||
this.maCodeList.forEach(sub => {
|
this.maCodeList.forEach(sub => {
|
||||||
if (sub.apDetection == '完好') {
|
if (sub.apDetection == '完好') {
|
||||||
sub.apDetection = '1'
|
sub.apDetection = '1'
|
||||||
} else if (sub.apDetection == '不合格') {
|
} else if (sub.apDetection == '不合格' || sub.apDetection == '损坏') {
|
||||||
sub.apDetection = '0'
|
sub.apDetection = '0'
|
||||||
}
|
}
|
||||||
if (sub.maId == item.maId) {
|
if (sub.maId == item.maId) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue