质量管理修改
This commit is contained in:
parent
88f4928763
commit
cefa2eb8cf
@ -173,6 +173,7 @@ let bar_option = ref({
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: '#91cc75'
|
color: '#91cc75'
|
||||||
},
|
},
|
||||||
|
barWidth:'30%',
|
||||||
data: [0]
|
data: [0]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -186,6 +187,7 @@ let bar_option = ref({
|
|||||||
itemStyle: {
|
itemStyle: {
|
||||||
color: '#c81623'
|
color: '#c81623'
|
||||||
},
|
},
|
||||||
|
barWidth:'30%',
|
||||||
data: [0],
|
data: [0],
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
|
@ -51,12 +51,12 @@
|
|||||||
<el-col :span="2">
|
<el-col :span="2">
|
||||||
<el-statistic :title="tLang('quality', '产品合格率')" :value="qualifiedRate" :precision="1"
|
<el-statistic :title="tLang('quality', '产品合格率')" :value="qualifiedRate" :precision="1"
|
||||||
:value-style="{ color: 'green' }"
|
:value-style="{ color: 'green' }"
|
||||||
:formatter="(val) => { return (totalQuality == 0 ? '0' :(((val / totalQuality) * 100).toFixed(1)||0)) + '%' }" />
|
:formatter="(val) => { return (totalQuality == 0 ? '0' : (((val / totalQuality) * 100).toFixed(1) || 0)) + '%' }" />
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<el-col :span="2">
|
||||||
<el-statistic :title="tLang('quality', '产品不合格率')" :value="unqualifiedRate" :precision="1"
|
<el-statistic :title="tLang('quality', '产品不合格率')" :value="unqualifiedRate" :precision="1"
|
||||||
:value-style="{ color: 'red' }"
|
:value-style="{ color: 'red' }"
|
||||||
:formatter="(val) => { return (totalQuality == 0 ? '0' :(((val / totalQuality) * 100).toFixed(1)||0)) + '%' }" />
|
:formatter="(val) => { return (totalQuality == 0 ? '0' : (((val / totalQuality) * 100).toFixed(1) || 0)) + '%' }" />
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<el-col :span="2">
|
||||||
<el-statistic :title="tLang('quality', '产品完成量')" :value="totalQuality" />
|
<el-statistic :title="tLang('quality', '产品完成量')" :value="totalQuality" />
|
||||||
@ -94,11 +94,15 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="tLang('quality', '状态')" v-if="columns[7].visible" align="center" prop="state">
|
<el-table-column :label="tLang('quality', '状态')" v-if="columns[7].visible" align="center" prop="state">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div>
|
<el-tooltip :content="scope.row.errorMsg" :disabled="scope.row.state !== '1'" placement="top-start" v-if="scope.row.userId !== 1">
|
||||||
<el-tag type="success" size="mini" v-if="scope.row.state === '0'">{{tLang('common','合格')}}</el-tag>
|
<div style="cursor: pointer;">
|
||||||
<el-tag type="danger" size="mini" v-else-if="scope.row.state === '1'">{{tLang('common','不合格')}}</el-tag>
|
<el-tag type="success" size="mini"
|
||||||
<el-tag type="warning" size="mini" v-else>{{tLang('common','未完成')}}</el-tag>
|
v-if="scope.row.state === '0'">{{ tLang('common', '合格') }}</el-tag>
|
||||||
</div>
|
<el-tag type="danger" size="mini"
|
||||||
|
v-else-if="scope.row.state === '1'">{{ tLang('common', '不合格') }}</el-tag>
|
||||||
|
<el-tag type="warning" size="mini" v-else>{{ tLang('common', '未完成') }}</el-tag>
|
||||||
|
</div>
|
||||||
|
</el-tooltip>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column :label="tLang('quality','')操作" align="center" class-name="small-padding fixed-width">
|
<!-- <el-table-column :label="tLang('quality','')操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
Loading…
Reference in New Issue
Block a user