fix:工序不合格统计

This commit is contained in:
shijing 2025-06-26 13:38:33 +08:00
parent dba36ec30b
commit f13ce97a92
3 changed files with 414 additions and 180 deletions

View File

@ -54,8 +54,6 @@
:data="tableData"
:height="tableHeight"
id="exportDiv"
:summary-method="getSummaries"
show-summary
>
<el-table-column type="index" width="50" />
<el-table-column label="工段" prop="工段">

View File

@ -52,11 +52,6 @@
<span v-if="scope.row.data">{{ scope.row.data.扫边A_缺陷_划伤 }}</span>
</template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader1">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.扫边A_缺陷_其他 }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="2-破损" align="center" class-name="colorheader1">
<el-table-column label="人为磕碰" class-name="colorheader1">
@ -79,58 +74,53 @@
<span v-if="scope.row.data">{{ scope.row.data.扫边A_缺陷_调机破损 }}</span>
</template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader1">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.扫边A_缺陷_其他 }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="3-加工后崩边" align="center" class-name="colorheader1">
<el-table-column label="大崩" class-name="colorheader1">
<template #default="scope"><span>{{ scope.row.data.扫边A_缺陷_}}</span></template>
<template #default="scope"><span>{{ scope.row.data.扫边A_缺陷_崩边 }}</span></template>
</el-table-column>
<el-table-column label="小崩边(B)" class-name="colorheader1">
<template #default="scope"><span>{{ scope.row.data['扫边A_缺陷_小崩边(B)'] }}</span></template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader1">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data) }}</span>
</template>
<el-table-column label="小崩边" class-name="colorheader1">
<template #default="scope"><span>{{ scope.row.data.扫边A_缺陷_小崩边 }}</span></template>
</el-table-column>
</el-table-column>
<el-table-column label="其他" class-name="colorheader1">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'扫边A') }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="扫边B" align="center" class-name="colorheader2">
<el-table-column label="1-加工前不良" align="center" class-name="colorheader2">
<el-table-column label="裂纹" class-name="colorheader2">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.扫边B_缺陷_裂纹 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.扫边B_加工前_缺陷_裂纹 }}</span>
</template>
</el-table-column>
<el-table-column label="断裂" class-name="colorheader2">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.扫边B_缺陷_断裂 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.扫边B_加工前_缺陷_断裂 }}</span>
</template>
</el-table-column>
<el-table-column label="划伤" class-name="colorheader2">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.扫边B_缺陷_划伤 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.扫边B_加工前_缺陷_划伤 }}</span>
</template>
</el-table-column>
<el-table-column label="抛光未磨透(线痕)" class-name="colorheader2">
<el-table-column label="抛光未磨透(线痕)" class-name="colorheader2">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data['扫边B_缺陷_抛光未磨透(线痕)'] }}</span>
<span v-if="scope.row.data">{{ scope.row.data.扫边B_加工前_缺陷_线痕 }}</span>
</template>
</el-table-column>
<el-table-column label="麻点" class-name="colorheader2">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.扫边B_缺陷_麻点 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.扫边B_加工前_缺陷_麻点 }}</span>
</template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader2">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.扫边B_缺陷_其他 }}</span>
</template>
</el-table-column>
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'扫边B前') }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="2-内置" align="center" class-name="colorheader2">
<el-table-column label="黑圈不良" class-name="colorheader2">
@ -143,11 +133,6 @@
<span v-if="scope.row.data">{{ scope.row.data.扫边B_缺陷_材料不良 }}</span>
</template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader2">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.扫边B_缺陷_其他 }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="3-破损" align="center" class-name="colorheader2">
<el-table-column label="人为磕碰" class-name="colorheader2">
@ -167,7 +152,7 @@
</el-table-column>
<el-table-column label="抛光未磨透" class-name="colorheader2">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.扫边B_缺陷_抛光未磨透 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.扫边B_缺陷_线痕 }}</span>
</template>
</el-table-column>
<el-table-column label="调机破损" class-name="colorheader2">
@ -180,41 +165,36 @@
<span v-if="scope.row.data">{{ scope.row.data.扫边B_缺陷_断裂 }}</span>
</template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader2">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.扫边B_缺陷_其他 }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="4-加工后崩边" align="center" class-name="colorheader2">
<el-table-column label="大崩" class-name="colorheader2">
<template #default="scope"><span>{{ scope.row.data.扫边B_缺陷_}}</span></template>
<template #default="scope"><span>{{ scope.row.data.扫边B_缺陷_崩边 }}</span></template>
</el-table-column>
<el-table-column label="小崩边(B)" class-name="colorheader2">
<template #default="scope"><span>{{ scope.row.data['扫边B_缺陷_小崩边(B)'] }}</span></template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader2">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data) }}</span>
</template>
<el-table-column label="小崩边" class-name="colorheader2">
<template #default="scope"><span>{{ scope.row.data.扫边B_缺陷_小崩边 }}</span></template>
</el-table-column>
</el-table-column>
<el-table-column label="其他" class-name="colorheader2">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'扫边B') }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="精雕" align="center" class-name="colorheader3">
<el-table-column label="1-加工前不良" align="center" class-name="colorheader3">
<el-table-column label="大崩" class-name="colorheader3">
<template #default="scope"><span>{{ scope.row.data.精雕_缺陷_大崩 }}</span></template>
<template #default="scope"><span>{{ scope.row.data.精雕_加工前_缺陷_ }}</span></template>
</el-table-column>
<el-table-column label="小崩边(B)" class-name="colorheader3">
<template #default="scope"><span>{{ scope.row.data['精雕_缺陷_小崩边(B)'] }}</span></template>
<el-table-column label="小崩边" class-name="colorheader3">
<template #default="scope"><span>{{ scope.row.data.精雕_加工前_缺陷_小崩边}}</span></template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader3">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'精雕') }}</span>
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'精雕') }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="2-内置" align="center" class-name="colorheader3">
<!-- <el-table-column label="2-内置" align="center" class-name="colorheader3">
<el-table-column label="黑圈不良" class-name="colorheader3">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.精雕_缺陷_黑圈不良 }}</span>
@ -225,45 +205,41 @@
<span v-if="scope.row.data">{{ scope.row.data.精雕_缺陷_材料不良 }}</span>
</template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader3">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.精雕_缺陷_其他 }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="3-破损" align="center" class-name="colorheader3">
<el-table-column label="机破" class-name="colorheader3">
<el-table-column label="调机破损" class-name="colorheader3">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.精雕_缺陷_机破 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.精雕_缺陷_调机破损 }}</span>
</template>
</el-table-column>
<el-table-column label="人为" class-name="colorheader3">
<el-table-column label="人为磕碰" class-name="colorheader3">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.精雕_缺陷_人为 }}</span>
</template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader3">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'精雕') }}</span>
<span v-if="scope.row.data">{{ scope.row.data.精雕_缺陷_人为磕碰 }}</span>
</template>
</el-table-column>
</el-table-column> -->
<el-table-column label="3-其他" class-name="colorheader3">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'精雕') }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="倒角" align="center" class-name="colorheader4">
<el-table-column label="1-加工前不良" align="center" class-name="colorheader4">
<el-table-column label="大崩" class-name="colorheader4">
<template #default="scope"><span>{{ scope.row.data.倒角_缺陷_大崩 }}</span></template>
<template #default="scope"><span>{{ scope.row.data.倒角_加工前_缺陷_ }}</span></template>
</el-table-column>
<el-table-column label="小崩边(B)" class-name="colorheader4">
<template #default="scope"><span>{{ scope.row.data['倒角_缺陷_小崩边(B)'] }}</span></template>
<template #default="scope"><span>{{ scope.row.data.倒角_加工前_缺陷_崩边 }}</span></template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader4">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'倒角') }}</span>
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'倒角') }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="2-内置" align="center" class-name="colorheader4">
<!-- <el-table-column label="2-内置" align="center" class-name="colorheader4">
<el-table-column label="黑圈不良" class-name="colorheader4">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.倒角_缺陷_黑圈不良 }}</span>
@ -274,45 +250,35 @@
<span v-if="scope.row.data">{{ scope.row.data.倒角_缺陷_材料不良 }}</span>
</template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader4">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.倒角_缺陷_其他 }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="3-破损" align="center" class-name="colorheader4">
<el-table-column label="机破" class-name="colorheader4">
<el-table-column label="调机破损" class-name="colorheader4">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.倒角_缺陷_机破 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.倒角_缺陷_调机破损 }}</span>
</template>
</el-table-column>
<el-table-column label="人为" class-name="colorheader4">
<el-table-column label="人为磕碰" class-name="colorheader4">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.倒角_缺陷_人为 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.倒角_缺陷_人为磕碰 }}</span>
</template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader4">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'倒角') }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="4-加工后崩边" align="center" class-name="colorheader4">
</el-table-column> -->
<el-table-column label="2-加工后崩边" align="center" class-name="colorheader4">
<el-table-column label="大崩" class-name="colorheader4">
<template #default="scope"><span>{{ scope.row.data.倒角_缺陷_}}</span></template>
<template #default="scope"><span>{{ scope.row.data.倒角_缺陷_崩边 }}</span></template>
</el-table-column>
<el-table-column label="小崩边(B)" class-name="colorheader4">
<template #default="scope"><span>{{ scope.row.data['倒角_缺陷_小崩边(B)'] }}</span></template>
<template #default="scope"><span>{{ scope.row.data.倒角_缺陷_小崩边 }}</span></template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader4">
</el-table-column>
<el-table-column label="3-其他" class-name="colorheader4">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'倒角') }}</span>
</template>
</el-table-column>
</el-table-column>
</el-table-column>
<el-table-column label="减薄A" align="center" class-name="colorheader5">
<el-table-column label="1-内置" align="center" class-name="colorheader5">
<!-- <el-table-column label="1-内置" align="center" class-name="colorheader5">
<el-table-column label="黑圈不良" class-name="colorheader5">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.减薄A_缺陷_黑圈不良 }}</span>
@ -328,45 +294,35 @@
<span v-if="scope.row.data">{{ scope.row.data.减薄A_缺陷_黑雾 }}</span>
</template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader5">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.减薄A_缺陷_其他 }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="2-破损" align="center" class-name="colorheader5">
<el-table-column label="机破" class-name="colorheader5">
<el-table-column label="调机破损" class-name="colorheader5">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.减薄A_缺陷_机破 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.减薄A_缺陷_调机破损 }}</span>
</template>
</el-table-column>
<el-table-column label="人为" class-name="colorheader5">
<el-table-column label="人为磕碰" class-name="colorheader5">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.减薄A_缺陷_人为 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.减薄A_缺陷_人为磕碰 }}</span>
</template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader5">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'减薄A') }}</span>
</template>
</el-table-column> -->
<el-table-column label="1-加工后崩边" align="center" class-name="colorheader5">
<el-table-column label="大崩" class-name="colorheader5">
<template #default="scope"><span>{{ scope.row.data.减薄A_缺陷_崩边 }}</span></template>
</el-table-column>
<el-table-column label="小崩边" class-name="colorheader5">
<template #default="scope"><span>{{ scope.row.data.减薄A_缺陷_小崩边 }}</span></template>
</el-table-column>
</el-table-column>
<el-table-column label="3-加工后崩边" align="center" class-name="colorheader5">
<el-table-column label="大崩" class-name="colorheader5">
<template #default="scope"><span>{{ scope.row.data.减薄A_缺陷_大崩 }}</span></template>
</el-table-column>
<el-table-column label="小崩边(B)" class-name="colorheader5">
<template #default="scope"><span>{{ scope.row.data['减薄A_缺陷_小崩边(B)'] }}</span></template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader5">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'减薄A') }}</span>
</template>
</el-table-column>
<el-table-column label="2-其他" class-name="colorheader5">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'减薄A') }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="减薄B" align="center" class-name="colorheader6">
<el-table-column label="1-内置" align="center" class-name="colorheader6">
<!-- <el-table-column label="1-内置" align="center" class-name="colorheader6">
<el-table-column label="黑圈不良" class-name="colorheader6">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.减薄B_缺陷_黑圈不良 }}</span>
@ -382,58 +338,48 @@
<span v-if="scope.row.data">{{ scope.row.data.减薄B_缺陷_黑雾 }}</span>
</template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader6">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.减薄B_缺陷_其他 }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="2-破损" align="center" class-name="colorheader6">
<el-table-column label="机破" class-name="colorheader6">
<el-table-column label="调机破损" class-name="colorheader6">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.减薄B_缺陷_机破 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.减薄B_缺陷_调机破损 }}</span>
</template>
</el-table-column>
<el-table-column label="人为" class-name="colorheader6">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.减薄B_缺陷_人为 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.减薄B_缺陷_人为磕碰磕碰 }}</span>
</template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader6">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'减薄B') }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="3-加工后崩边" align="center" class-name="colorheader6">
</el-table-column> -->
<el-table-column label="1-加工后崩边" align="center" class-name="colorheader6">
<el-table-column label="大崩" class-name="colorheader6">
<template #default="scope"><span>{{ scope.row.data.减薄B_缺陷_}}</span></template>
<template #default="scope"><span>{{ scope.row.data.减薄B_缺陷_崩边 }}</span></template>
</el-table-column>
<el-table-column label="小崩边(B)" class-name="colorheader6">
<template #default="scope"><span>{{ scope.row.data['减薄B_缺陷_小崩边(B)'] }}</span></template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader6">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'减薄B') }}</span>
</template>
<template #default="scope"><span>{{ scope.row.data.减薄B_缺陷_小崩边 }}</span></template>
</el-table-column>
</el-table-column>
<el-table-column label="2-其他" class-name="colorheader6">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'减薄B') }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="磨抛" align="center" class-name="colorheader7">
<el-table-column label="1-加工前不良" align="center" class-name="colorheader7">
<el-table-column label="大崩" class-name="colorheader7">
<template #default="scope"><span>{{ scope.row.data.磨抛_缺陷_大崩 }}</span></template>
<template #default="scope"><span>{{ scope.row.data.磨抛_缺陷_ }}</span></template>
</el-table-column>
<el-table-column label="小崩边(B)" class-name="colorheader7">
<template #default="scope"><span>{{ scope.row.data['磨抛_缺陷_小崩边(B)'] }}</span></template>
<el-table-column label="小崩边" class-name="colorheader7">
<template #default="scope"><span>{{ scope.row.data.磨抛_缺陷_小崩边 }}</span></template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader7">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'磨抛') }}</span>
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'磨抛') }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="2-内置" align="center" class-name="colorheader7">
<!-- <el-table-column label="2-内置" align="center" class-name="colorheader7">
<el-table-column label="黑圈不良" class-name="colorheader7">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.磨抛_缺陷_黑圈不良 }}</span>
@ -444,40 +390,40 @@
<span v-if="scope.row.data">{{ scope.row.data.磨抛_缺陷_材料不良 }}</span>
</template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader7">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.磨抛_缺陷_其他 }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="3-破损" align="center" class-name="colorheader7">
<el-table-column label="机破" class-name="colorheader7">
<el-table-column label="调机破损" class-name="colorheader7">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.磨抛_缺陷_机破 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.磨抛_缺陷_调机破损 }}</span>
</template>
</el-table-column>
<el-table-column label="人为" class-name="colorheader7">
<el-table-column label="人为磕碰" class-name="colorheader7">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.磨抛_缺陷_人为 }}</span>
</template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader7">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'磨抛') }}</span>
<span v-if="scope.row.data">{{ scope.row.data.磨抛_缺陷_人为磕碰 }}</span>
</template>
</el-table-column>
</el-table-column> -->
<el-table-column label="2-其他" class-name="colorheader7">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'磨抛') }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="一次超洗" align="center" class-name="colorheader1">
<el-table-column label="1-加工前不良" align="center" class-name="colorheader1">
<el-table-column label="大崩" class-name="colorheader1">
<template #default="scope"><span>{{ scope.row.data.一次超洗_缺陷_}}</span></template>
<template #default="scope"><span>{{ scope.row.data.一次超洗_加工前_缺陷_ }}</span></template>
</el-table-column>
<el-table-column label="小崩边(B)" class-name="colorheader1">
<template #default="scope"><span>{{ scope.row.data['一次超洗_缺陷_小崩边(B)'] }}</span></template>
<el-table-column label="小崩边" class-name="colorheader1">
<template #default="scope"><span>{{ scope.row.data.一次超洗_加工前_缺陷_小崩边 }}</span></template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader1">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'一次超洗前') }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="2-内置" align="center" class-name="colorheader1">
<!-- <el-table-column label="2-内置" align="center" class-name="colorheader1">
<el-table-column label="黑圈不良" class-name="colorheader1">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.一次超洗_缺陷_黑圈不良 }}</span>
@ -490,28 +436,33 @@
</el-table-column>
</el-table-column>
<el-table-column label="3-破损" align="center" class-name="colorheader1">
<el-table-column label="机破" class-name="colorheader1">
<el-table-column label="机破" class-name="colorheader1">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.一次超洗_缺陷_机破 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.一次超洗_缺陷_机破 }}</span>
</template>
</el-table-column>
<el-table-column label="人为" class-name="colorheader1">
<el-table-column label="人为磕碰" class-name="colorheader1">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.一次超洗_缺陷_人为 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.一次超洗_缺陷_人为磕碰 }}</span>
</template>
</el-table-column>
</el-table-column>
</el-table-column> -->
</el-table-column>
<el-table-column label="二次超洗" align="center" class-name="colorheader2">
<el-table-column label="1-加工前不良" align="center" class-name="colorheader2">
<el-table-column label="大崩" class-name="colorheader2">
<template #default="scope"><span>{{ scope.row.data.二次超洗_缺陷_}}</span></template>
<template #default="scope"><span>{{ scope.row.data.二次超洗_加工前_缺陷_ }}</span></template>
</el-table-column>
<el-table-column label="小崩边(B)" class-name="colorheader2">
<template #default="scope"><span>{{ scope.row.data['二次超洗_缺陷_小崩边(B)'] }}</span></template>
<el-table-column label="小崩边" class-name="colorheader2">
<template #default="scope"><span>{{ scope.row.data.二次超洗_加工前_缺陷_小崩边 }}</span></template>
</el-table-column>
<el-table-column label="其他" class-name="colorheader2">
<template #default="scope">
<span v-if="scope.row.data">{{ getCountQt(scope.row.data,'二次超洗前') }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="2-内置" align="center" class-name="colorheader2">
<!-- <el-table-column label="2-内置" align="center" class-name="colorheader2">
<el-table-column label="黑圈不良" class-name="colorheader2">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.二次超洗_缺陷_黑圈不良 }}</span>
@ -524,17 +475,17 @@
</el-table-column>
</el-table-column>
<el-table-column label="3-破损" align="center" class-name="colorheader2">
<el-table-column label="机破" class-name="colorheader2">
<el-table-column label="机破" class-name="colorheader2">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.二次超洗_缺陷_机破 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.二次超洗_缺陷_机破 }}</span>
</template>
</el-table-column>
<el-table-column label="人为" class-name="colorheader2">
<el-table-column label="人为磕碰" class-name="colorheader2">
<template #default="scope">
<span v-if="scope.row.data">{{ scope.row.data.二次超洗_缺陷_人为 }}</span>
<span v-if="scope.row.data">{{ scope.row.data.二次超洗_缺陷_人为磕碰 }}</span>
</template>
</el-table-column>
</el-table-column>
</el-table-column> -->
</el-table-column>
</el-table>
</el-main>
@ -635,8 +586,292 @@ export default {
getCountQt(data,type){
let count_qt = 0,count = 0;
if(type=='扫边A'){
if(data){
count_qt = data.棒料成型_count_notok - count;
if(data.扫边A_count_notok){
if (data.扫边A_缺陷_气泡 !== undefined) {
count += data.扫边A_缺陷_气泡 ;
}
if (data.扫边A_缺陷_线痕 !== undefined) {
count += data.扫边A_缺陷_线痕 ;
}
if (data.扫边A_缺陷_断裂 !== undefined) {
count += data.扫边A_缺陷_断裂 ;
}
if (data.扫边A_缺陷_划伤 !== undefined) {
count += data.扫边A_缺陷_划伤 ;
}
if (data.扫边A_缺陷_人为磕碰 !== undefined) {
count += data.扫边A_缺陷_人为磕碰 ;
}
if (data.扫边A_缺陷_设备故障 !== undefined) {
count += data.扫边A_缺陷_设备故障 ;
}
if (data.扫边A_缺陷_断点 !== undefined) {
count += data.扫边A_缺陷_断点 ;
}
if (data.扫边A_缺陷_调机破损 !== undefined) {
count += data.扫边A_缺陷_调机破损 ;
}
if (data.扫边A_缺陷_崩边 !== undefined) {
count += data.扫边A_缺陷_崩边 ;
}
if (data.扫边A_缺陷_小崩边 !== undefined) {
count += data.扫边A_缺陷_小崩边 ;
}
count_qt = data.扫边A_count_notok - count;
return count_qt;
}
}else if(type=='扫边B前'){
if(data.扫边B_count_pn_jgqbl){
if (data.扫边B_加工前_缺陷_裂纹 !== undefined) {
count += data.扫边B_加工前_缺陷_裂纹 ;
}
if (data.扫边B_加工前_缺陷_断裂 !== undefined) {
count += data.扫边B_加工前_缺陷_断裂 ;
}
if (data.扫边B_加工前_缺陷_划伤 !== undefined) {
count += data.扫边B_加工前_缺陷_划伤 ;
}
if (data.扫边B_加工前_缺陷_线痕 !== undefined) {
count += data.扫边B_加工前_缺陷_线痕 ;
}
if (data.扫边B_加工前_缺陷_麻点 !== undefined) {
count += data.扫边B_加工前_缺陷_麻点 ;
}
count_qt = data.扫边B_count_pn_jgqbl - count;
return count_qt;
}
}else if(type=='扫边B'){
if(data.扫边B_count_notok){
if (data.扫边B_缺陷_黑圈不良 !== undefined) {
count += data.扫边B_缺陷_黑圈不良 ;
}
if (data.扫边B_缺陷_材料不良 !== undefined) {
count += data.扫边B_缺陷_材料不良 ;
}
if (data.扫边B_缺陷_人为磕碰 !== undefined) {
count += data.扫边B_缺陷_人为磕碰 ;
}
if (data.扫边B_缺陷_设备故障 !== undefined) {
count += data.扫边B_缺陷_设备故障 ;
}
if (data.扫边B_缺陷_脏污 !== undefined) {
count += data.扫边B_缺陷_脏污 ;
}
if (data.扫边B_缺陷_线痕 !== undefined) {
count += data.扫边B_缺陷_线痕 ;
}
if (data.扫边B_缺陷_调机破损 !== undefined) {
count += data.扫边B_缺陷_调机破损 ;
}
if (data.扫边B_缺陷_断裂 !== undefined) {
count += data.扫边B_缺陷_断裂 ;
}
if (data.扫边B_缺陷_崩边 !== undefined) {
count += data.扫边B_缺陷_崩边 ;
}
if (data.扫边B_缺陷_小崩边 !== undefined) {
count += data.扫边B_缺陷_小崩边 ;
}
count_qt = data.扫边B_count_notok - count;
return count_qt;
}
}else if(type=='精雕前'){
if(data.精雕_count_pn_jgqbl){
if (data.精雕_加工前_缺陷_崩边 !== undefined) {
count += data.精雕_加工前_缺陷_崩边 ;
}
if (data.精雕_加工前_缺陷_小崩边 !== undefined) {
count += data.精雕_加工前_缺陷_小崩边 ;
}
count_qt = data.扫边B_count_pn_jgqbl - count;
return count_qt;
}
}else if(type=='精雕'){
if(data.精雕_count_notok){
if (data.精雕_缺陷_黑圈不良 !== undefined) {
count += data.精雕_缺陷_黑圈不良 ;
}
if (data.精雕_缺陷_材料不良 !== undefined) {
count += data.精雕_缺陷_材料不良 ;
}
if (data.精雕_缺陷_调机破损 !== undefined) {
count += data.精雕_缺陷_调机破损 ;
}
if (data.精雕_缺陷_人为磕碰 !== undefined) {
count += data.精雕_缺陷_人为磕碰 ;
}
count_qt = data.精雕_count_notok - count;
return count_qt;
}
}else if(type=='倒角前'){
if(data.倒角_count_pn_jgqbl){
if (data.倒角_加工前_缺陷_崩边 !== undefined) {
count += data.倒角_加工前_缺陷_崩边 ;
}
if (data.倒角_加工前_缺陷_小崩边 !== undefined) {
count += data.倒角_加工前_缺陷_小崩边 ;
}
count_qt = data.扫边B_count_pn_jgqbl - count;
return count_qt;
}
}else if(type=='倒角'){
if(data.倒角_count_notok){
if (data.倒角_缺陷_黑圈不良 !== undefined) {
count += data.倒角_缺陷_黑圈不良 ;
}
if (data.倒角_缺陷_材料不良 !== undefined) {
count += data.倒角_缺陷_材料不良 ;
}
if (data.倒角_缺陷_调机破损 !== undefined) {
count += data.倒角_缺陷_调机破损 ;
}
if (data.倒角_缺陷_人为磕碰 !== undefined) {
count += data.倒角_缺陷_人为磕碰 ;
}
if (data.倒角_缺陷_崩边 !== undefined) {
count += data.倒角_缺陷_崩边 ;
}
if (data.倒角_缺陷_小崩边 !== undefined) {
count += data.倒角_缺陷_小崩边 ;
}
count_qt = data.倒角_count_notok - count;
return count_qt;
}
}else if(type=='减薄A'){
if(data.减薄A_count_notok){
if (data.减薄A_缺陷_黑圈不良 !== undefined) {
count += data.减薄A_缺陷_黑圈不良 ;
}
if (data.减薄A_缺陷_材料不良 !== undefined) {
count += data.减薄A_缺陷_材料不良 ;
}
if (data.减薄A_缺陷_黑雾 !== undefined) {
count += data.减薄A_缺陷_黑雾 ;
}
if (data.减薄A_缺陷_调机破损 !== undefined) {
count += data.减薄A_缺陷_调机破损 ;
}
if (data.减薄A_缺陷_人为磕碰 !== undefined) {
count += data.减薄A_缺陷_人为磕碰 ;
}
if (data.减薄A_缺陷_崩边 !== undefined) {
count += data.减薄A_缺陷_崩边 ;
}
if (data.减薄A_缺陷_小崩边 !== undefined) {
count += data.减薄A_缺陷_小崩边 ;
}
count_qt = data.减薄A_count_notok - count;
return count_qt;
}
}else if(type=='减薄B'){
if(data.减薄B_count_notok){
if (data.减薄B_缺陷_黑圈不良 !== undefined) {
count += data.减薄B_缺陷_黑圈不良 ;
}
if (data.减薄B_缺陷_材料不良 !== undefined) {
count += data.减薄B_缺陷_材料不良 ;
}
if (data.减薄B_缺陷_黑雾 !== undefined) {
count += data.减薄B_缺陷_黑雾 ;
}
if (data.减薄B_缺陷_调机破损 !== undefined) {
count += data.减薄B_缺陷_调机破损 ;
}
if (data.减薄B_缺陷_人为磕碰 !== undefined) {
count += data.减薄B_缺陷_人为磕碰 ;
}
if (data.减薄B_缺陷_崩边 !== undefined) {
count += data.减薄B_缺陷_崩边 ;
}
if (data.减薄B_缺陷_小崩边 !== undefined) {
count += data.减薄B_缺陷_小崩边 ;
}
count_qt = data.减薄B_count_notok - count;
return count_qt;
}
}else if(type=='磨抛前'){
if(data.磨抛_count_pn_jgqbl){
if (data.磨抛_加工前_缺陷_崩边 !== undefined) {
count += data.磨抛_加工前_缺陷_崩边 ;
}
if (data.磨抛_加工前_缺陷_小崩边 !== undefined) {
count += data.磨抛_加工前_缺陷_小崩边 ;
}
count_qt = data.扫边B_count_pn_jgqbl - count;
return count_qt;
}
}else if(type=='磨抛'){
if(data.磨抛_count_notok){
if (data.磨抛_缺陷_黑圈不良 !== undefined) {
count += data.磨抛_缺陷_黑圈不良 ;
}
if (data.磨抛_缺陷_材料不良 !== undefined) {
count += data.磨抛_缺陷_材料不良 ;
}
if (data.磨抛_缺陷_调机破损 !== undefined) {
count += data.磨抛_缺陷_调机破损 ;
}
if (data.磨抛_缺陷_人为磕碰 !== undefined) {
count += data.磨抛_缺陷_人为磕碰 ;
}
count_qt = data.磨抛_count_notok - count;
return count_qt;
}
}
else if(type=='一次超洗前'){
if(data.一次超洗_count_pn_jgqbl){
if (data.一次超洗_加工前_缺陷_崩边 !== undefined) {
count += data.一次超洗_加工前_缺陷_崩边 ;
}
if (data.一次超洗_加工前_缺陷_小崩边 !== undefined) {
count += data.一次超洗_加工前_缺陷_小崩边 ;
}
count_qt = data.扫边B_count_pn_jgqbl - count;
return count_qt;
}
}else if(type=='一次超洗'){
if(data.一次超洗_count_notok){
if (data.一次超洗_缺陷_黑圈不良 !== undefined) {
count += data.一次超洗_缺陷_黑圈不良 ;
}
if (data.一次超洗_缺陷_材料不良 !== undefined) {
count += data.一次超洗_缺陷_材料不良 ;
}
if (data.一次超洗_缺陷_调机破损 !== undefined) {
count += data.一次超洗_缺陷_调机破损 ;
}
if (data.一次超洗_缺陷_人为磕碰 !== undefined) {
count += data.一次超洗_缺陷_人为磕碰 ;
}
count_qt = data.一次超洗_count_notok - count;
return count_qt;
}
}else if(type=='二次超洗前'){
if(data.二次超洗_count_pn_jgqbl){
if (data.二次超洗_加工前_缺陷_崩边 !== undefined) {
count += data.二次超洗_加工前_缺陷_崩边 ;
}
if (data.二次超洗_加工前_缺陷_小崩边 !== undefined) {
count += data.二次超洗_加工前_缺陷_小崩边 ;
}
count_qt = data.扫边B_count_pn_jgqbl - count;
return count_qt;
}
}else if(type=='二次超洗'){
if(data.二次超洗_count_notok){
if (data.二次超洗_缺陷_黑圈不良 !== undefined) {
count += data.二次超洗_缺陷_黑圈不良 ;
}
if (data.二次超洗_缺陷_材料不良 !== undefined) {
count += data.二次超洗_缺陷_材料不良 ;
}
if (data.二次超洗_缺陷_调机破损 !== undefined) {
count += data.二次超洗_缺陷_调机破损 ;
}
if (data.二次超洗_缺陷_人为磕碰 !== undefined) {
count += data.二次超洗_缺陷_人为磕碰 ;
}
count_qt = data.二次超洗_count_notok - count;
return count_qt;
}
}

View File

@ -371,6 +371,7 @@ export default {
that.mgroupOptions = res;
if(res.length==1){
that.form.recive_mgroup = res[0].id;
that.getUserList2();
}
})
},