feat(wms报表): 添加正品率显示并优化异常统计

在报表模板中添加正品率(passRate2)显示项
重构getLossList调用逻辑,改为在getList完成后调用
优化calc.js中的异常统计计算,添加各异常库占比数据
This commit is contained in:
砂糖
2026-03-20 10:33:51 +08:00
parent 7e1e4b7b62
commit e1cb4683af
5 changed files with 54 additions and 18 deletions

View File

@@ -62,6 +62,8 @@
<el-descriptions-item label="损耗率">{{ summary.lossRate }}</el-descriptions-item>
<!-- 异常率 -->
<el-descriptions-item label="异常率">{{ summary.abRate }}</el-descriptions-item>
<!-- 正品率 -->
<el-descriptions-item label="正品率">{{ summary.passRate2 }}</el-descriptions-item>
</el-descriptions>
<!-- 异常统计 -->
@@ -238,7 +240,7 @@ export default {
// 统一查询入口(兼容回车和按钮点击)
handleQuery() {
this.getList()
this.getLossList()
// this.getLossList()
},
// 核心查询逻辑
getList() {
@@ -273,7 +275,9 @@ export default {
computedWidth: parseFloat(width),
}
})
this.loading = false
// this.loading = false
this.getLossList()
// this.loading = false
})
},
async getLossList() {
@@ -342,7 +346,7 @@ export default {
},
mounted() {
this.getList()
this.getLossList()
// this.getLossList()
this.loadColumns()
}
}