fix:检验记录中合格率保留两位小数
This commit is contained in:
parent
a0d8982b6b
commit
7141516f3a
|
@ -71,8 +71,8 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="合格率">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.type2 == 10">{{ scope.row.count_sampling_ok/scope.row.count_sampling*100 }}%</span>
|
||||
<span v-else>{{ scope.row.count_ok/scope.row.count*100 }}%</span>
|
||||
<span v-if="scope.row.type2 == 10">{{ (scope.row.count_sampling_ok/scope.row.count_sampling*100).toFixed(2) }}%</span>
|
||||
<span v-else>{{ (scope.row.count_ok/scope.row.count*100).toFixed(2) }}%</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="检验日期" prop="test_date">
|
||||
|
|
|
@ -114,14 +114,14 @@
|
|||
@click="table_Check(scope.row)"
|
||||
v-auth="'ftestwork.create'"
|
||||
type="primary"
|
||||
v-if="scope.row.mgroup_name == '黑化'"
|
||||
v-if="scope.row.mgroup_name == '黑化'&&scope.row.state == 10"
|
||||
>检验
|
||||
</el-button>
|
||||
<el-button
|
||||
link size="small"
|
||||
type="warning"
|
||||
@click="tableCheckList(scope.row)"
|
||||
v-if="scope.row.mgroup_name == '黑化'"
|
||||
v-if="scope.row.mgroup_name == '黑化'&&scope.row.state == 10"
|
||||
>检验记录
|
||||
</el-button>
|
||||
<el-button @click="printMaterial(scope.row)" type="text">物料标签</el-button>
|
||||
|
|
Loading…
Reference in New Issue