fix:玻纤排板统计2添加物料名

This commit is contained in:
shijing 2026-03-12 09:07:26 +08:00
parent 0a9b1bdf1f
commit 122e73fee2
1 changed files with 4 additions and 1 deletions

View File

@ -110,6 +110,8 @@
<el-table-column type="index" width="50" fixed="left"/>
<el-table-column label="员工" prop="员工">
</el-table-column>
<el-table-column label="物料名" prop="物料名">
</el-table-column>
<el-table-column label="总数">
<template #default="scope">
<span v-if="scope.row.总切片数" @click="handleClick(scope.row)" style="color:#0052d9;">{{ scope.row.总切片数 }}</span>
@ -391,7 +393,8 @@ export default {
let that = this;
let params = {};
params.query = that.query;
that.$API.bi.dataset.exec.req('prodect_defect_pb1', params).then((res) => {
params.query.select_cols = '';
that.$API.bi.dataset.exec.req('product_defect_pb_user_mname', params).then((res) => {
let data = res.data2.ds0;
data.forEach(item=>{
if(item.缺陷分布!==null){