fix:mioitem统计修正

This commit is contained in:
shijing 2025-12-02 11:06:29 +08:00
parent 13e32911ac
commit 4f2162d496
1 changed files with 4 additions and 17 deletions

View File

@ -113,21 +113,6 @@
</el-table-column> </el-table-column>
<el-table-column label="检验" prop="count_tested" v-if="cate=='mainso'"> <el-table-column label="检验" prop="count_tested" v-if="cate=='mainso'">
</el-table-column> </el-table-column>
<el-table-column label="组合件信息" v-if="cate == 'good'&&project_code=='gzerp'" width="300">
<template #default="scope">
<div v-if="scope.row.assemb.length > 0">
<div v-for="item in scope.row.assemb" :key="item.id">
<div>
{{ item.material_name }}
<span style="color: gray;font-size: 12px;">:</span>
{{ item.batch }}
<span style="color: gray;font-size: 12px;">:</span>
{{ item.rate }}
</div>
</div>
</div>
</template>
</el-table-column>
<el-table-column label="不合格数量" prop="count_notok"> <el-table-column label="不合格数量" prop="count_notok">
</el-table-column> </el-table-column>
<el-table-column label="创建时间" prop="create_time" show-overflow-tooltip> <el-table-column label="创建时间" prop="create_time" show-overflow-tooltip>
@ -655,8 +640,10 @@ export default {
// //
if(index == 6){ if(index == 6){
propert = 'count'; propert = 'count';
}else if(index == 7){ }else if(index == 7&&this.mioObj.type == 'sale_out'&&this.project_code=='gx'){
propert = 'count_send'; propert = 'count_send';
}else if((index == 7||index == 8)&&column.label=='不合格数量'){
propert = 'count_notok';
} }
if (propert!=='') { if (propert!=='') {
const values = data.map((item) => const values = data.map((item) =>
@ -674,7 +661,7 @@ export default {
}, 0); }, 0);
} }
} }
if(index==8){ if(index==8&&this.mioObj.type == 'sale_out'&&this.project_code=='gx'){
if(sums[6]){ if(sums[6]){
if(sums[7]){ if(sums[7]){
sums[index] = sums[6]-sums[7]; sums[index] = sums[6]-sums[7];