fix:排扳加工率,合格率纠正

This commit is contained in:
shijing 2025-12-19 11:03:37 +08:00
parent 71d5e9c56b
commit 53e2d487bf
1 changed files with 6 additions and 5 deletions

View File

@ -53,7 +53,7 @@
<span v-if="scope.row.剪切合格">{{((scope.row.剪切合格/scope.row.总切片数)*100).toFixed(2) }}%</span>
</template>
</el-table-column>
<el-table-column label="剪切加率">
<el-table-column label="剪切加率">
<template #default="scope">
<span v-if="scope.row['剪切¢18.3mm不合格']">{{ (((scope.row.总切片数-scope.row['剪切18.3mm不合格'].含)/scope.row.总切片数)*100).toFixed(2) }}%</span>
<span v-else>100%</span>
@ -71,14 +71,15 @@
<span v-else>0%</span>
</template>
</el-table-column>
<el-table-column label="加率">
<el-table-column label="加率">
<template #default="scope">
<span v-if="scope.row.总切片合格数">{{((scope.row.总切片合格/scope.row.总切片数)*100).toFixed(2) }}%</span>
<span v-if="scope.row.总切片完全合格数">{{((scope.row.加工率/scope.row.总切片数)*100).toFixed(2) }}%</span>
</template>
</el-table-column>
<el-table-column label="合格率" prop="合格率">
<!-- 暗点合格并且剪切合格的板段数在暗点合格含里刨除剪切可加工和剪切不合格 -->
<template #default="scope">
<span v-if="scope.row.总切片完全合格数">{{((scope.row.总切片完全合格数/scope.row.总切片数)*100).toFixed(2) }}%</span>
<span v-if="scope.row.总切片完全合格数">{{((scope.row.暗点合格.仅/scope.row.总切片数)*100).toFixed(2) }}%</span>
</template>
</el-table-column>
</scTable>
@ -87,7 +88,6 @@
</template>
<script>
import { genTree } from "@/utils/verificate";
export default {
name: "workerTimes",
data() {
@ -131,6 +131,7 @@ export default {
}
item.不合格数 = 0;
item.可加工数 = 0;
item.加工率数 = item.总切片合格数?item.总切片合格数:0-item.暗点不合格.?item.暗点合格.:0;
if(item['剪切¢18.3mm不合格']){
if(item['剪切¢18.3mm可加工']){
item.剪切合格 = item.总切片数 - item['剪切¢18.3mm可加工'].- item['剪切¢18.3mm不合格'].;