fix:排扳统计查询条件文案提示

This commit is contained in:
shijing 2026-03-04 10:50:55 +08:00
parent 6df332211c
commit 17bc6c8428
1 changed files with 8 additions and 3 deletions

View File

@ -3,6 +3,8 @@
<el-header> <el-header>
<div class="left-panel"></div> <div class="left-panel"></div>
<div class="right-panel"> <div class="right-panel">
<span v-if="activeName=='paiban'||activeName=='houzhui1'">毛坯检测时间</span>
<span v-else>排扳时间</span>
<el-date-picker <el-date-picker
v-model="query.start_date" v-model="query.start_date"
type="date" type="date"
@ -133,17 +135,20 @@
</el-table-column> </el-table-column>
<el-table-column label="长点率"> <el-table-column label="长点率">
<template #default="scope"> <template #default="scope">
<span>{{((scope.row.长点数/scope.row.总切片数)*100).toFixed(2) }}%</span> <span v-if="scope.row.总切片数>0">{{((scope.row.长点数/scope.row.总切片数)*100).toFixed(2) }}%</span>
<span v-else>0%</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="加工率"> <el-table-column label="加工率">
<template #default="scope"> <template #default="scope">
<span>{{((scope.row.加工率数/scope.row.总切片数)*100).toFixed(2) }}%</span> <span v-if="scope.row.总切片数>0">{{((scope.row.加工率数/scope.row.总切片数)*100).toFixed(2) }}%</span>
<span v-else>0%</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合格率" prop="合格率"> <el-table-column label="合格率" prop="合格率">
<template #default="scope"> <template #default="scope">
<span>{{((scope.row.合格率数/scope.row.总切片数)*100).toFixed(2) }}%</span> <span v-if="scope.row.总切片数>0">{{((scope.row.合格率数/scope.row.总切片数)*100).toFixed(2) }}%</span>
<span v-else>0%</span>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>