fix:禅道65初步页面

This commit is contained in:
shijing 2025-09-16 15:18:03 +08:00
parent 6ff7e79c22
commit b31a325e1a
2 changed files with 112 additions and 58 deletions

View File

@ -37,31 +37,41 @@
</el-table-column> </el-table-column>
<el-table-column label="扭转数" fixed="left"> <el-table-column label="扭转数" fixed="left">
<template #default="scope"> <template #default="scope">
{{ scope.row.data.检测_count_use }} {{ scope.row.data.检测_count_use }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="扭后内质" align="center" class-name="colorheader1"> <el-table-column label="扭后内质" align="center" class-name="colorheader1">
<el-table-column label="合格" class-name="colorheader1"> <el-table-column label="合格" class-name="colorheader1">
<el-table-column label="数量" class-name="colorheader1"> <el-table-column label="数量" class-name="colorheader1">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢2mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢2mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span v-if="scope.row.data.扭后检测_含缺陷_暗点不合格&&scope.row.data.扭后检测_含缺陷_暗点重">{{ scope.row.data.扭后检测_count_use - scope.row.data.扭后检测_含缺陷_暗点不合格 - scope.row.data.扭后检测_含缺陷_暗点重 }}</span>
<span v-else>
<span v-if="scope.row.data.扭后检测_含缺陷_暗点重">{{ scope.row.data.扭后检测_count_use - scope.row.data.扭后检测_含缺陷_暗点重 }}</span>
<span v-else-if="scope.row.data.扭后检测_含缺陷_暗点不合格">{{ scope.row.data.扭后检测_count_use - scope.row.data.扭后检测_含缺陷_暗点不合格 }}</span>
<span v-else>{{ scope.row.data.扭后检测_count_use }}</span>
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader1"> <el-table-column label="比例" class-name="colorheader1">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢2mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢2mm不合格_比例']:100 }}%</span> <span v-if="scope.row.data.扭后检测_含缺陷_暗点不合格&&scope.row.data.扭后检测_含缺陷_暗点重">{{100- scope.row.data.扭后检测_含缺陷_暗点不合格_比例 - scope.row.data.扭后检测_含缺陷_暗点重_比例 }}%</span>
<span v-else>
<span v-if="scope.row.data.扭后检测_含缺陷_暗点重">{{ 100 - scope.row.data.扭后检测_含缺陷_暗点重_比例 }}%</span>
<span v-else-if="scope.row.data.扭后检测_含缺陷_暗点不合格">{{100- scope.row.data.扭后检测_含缺陷_暗点不合格_比例 }}%</span>
<span v-else>100%</span>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="可加工" class-name="colorheader1"> <el-table-column label="可加工" class-name="colorheader1">
<el-table-column label="数量" class-name="colorheader1"> <el-table-column label="数量" class-name="colorheader1">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢2mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢2mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span>{{ scope.row.data.扭后检测_含缺陷_暗点不合格?scope.row.data.扭后检测_含缺陷_暗点不合格:0 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader1"> <el-table-column label="比例" class-name="colorheader1">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢2mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢2mm不合格_比例']:100 }}%</span> <span>{{ scope.row.data.扭后检测_含缺陷_暗点不合格?scope.row.data.扭后检测_含缺陷_暗点不合格_比例:0 }}%</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
@ -70,36 +80,46 @@
<el-table-column label="无" class-name="colorheader2"> <el-table-column label="无" class-name="colorheader2">
<el-table-column label="数量" class-name="colorheader2"> <el-table-column label="数量" class-name="colorheader2">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span v-if="scope.row.data.扭后检测_含缺陷_黑网轻&&scope.row.data.扭后检测_含缺陷_黑网重">{{ scope.row.data.扭后检测_count_use - scope.row.data.扭后检测_含缺陷_黑网轻 - scope.row.data.扭后检测_含缺陷_黑网重 }}</span>
<span v-else>
<span v-if="scope.row.data.扭后检测_含缺陷_黑网轻">{{ scope.row.data.扭后检测_count_use - scope.row.data.扭后检测_含缺陷_黑网轻 }}</span>
<span v-else-if="scope.row.data.扭后检测_含缺陷_黑网重">{{ scope.row.data.扭后检测_count_use - scope.row.data.扭后检测_含缺陷_黑网重 }}</span>
<span v-else>{{ scope.row.data.扭后检测_count_use }}</span>
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader2"> <el-table-column label="比例" class-name="colorheader2">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']:100 }}%</span> <span v-if="scope.row.data.扭后检测_含缺陷_黑网轻&&scope.row.data.扭后检测_含缺陷_黑网重">{{100- scope.row.data.扭后检测_含缺陷_黑网重_比例 - scope.row.data.扭后检测_含缺陷_黑网轻_比例 }}%</span>
<span v-else>
<span v-if="scope.row.data.扭后检测_含缺陷_黑网轻">{{ 100 - scope.row.data.扭后检测_含缺陷_黑网轻_比例 }}%</span>
<span v-else-if="scope.row.data.扭后检测_含缺陷_黑网重">{{100- scope.row.data.扭后检测_含缺陷_黑网重_比例 }}%</span>
<span v-else>100%</span>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="轻" class-name="colorheader2"> <el-table-column label="轻" class-name="colorheader2">
<el-table-column label="数量" class-name="colorheader2"> <el-table-column label="数量" class-name="colorheader2">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span>{{ scope.row.data.扭后检测_含缺陷_黑网轻?scope.row.data.扭后检测_含缺陷_黑网轻:0 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader2"> <el-table-column label="比例" class-name="colorheader2">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']:100 }}%</span> <span>{{ scope.row.data.扭后检测_含缺陷_黑网轻_比例?scope.row.data.扭后检测_含缺陷_黑网轻_比例:0 }}%</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="重" class-name="colorheader2"> <el-table-column label="重" class-name="colorheader2">
<el-table-column label="数量" class-name="colorheader2"> <el-table-column label="数量" class-name="colorheader2">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span>{{ scope.row.data.扭后检测_含缺陷_黑网重?scope.row.data.扭后检测_含缺陷_黑网重:0 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader2"> <el-table-column label="比例" class-name="colorheader2">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']:100 }}%</span> <span>{{ scope.row.data.扭后检测_含缺陷_黑网重_比例?scope.row.data.扭后检测_含缺陷_黑网重_比例:0 }}%</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
@ -108,36 +128,46 @@
<el-table-column label="无" class-name="colorheader3"> <el-table-column label="无" class-name="colorheader3">
<el-table-column label="数量" class-name="colorheader3"> <el-table-column label="数量" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span v-if="scope.row.data.扭后检测_含缺陷_白网轻&&scope.row.data.扭后检测_含缺陷_白网重">{{ scope.row.data.扭后检测_count_use - scope.row.data.扭后检测_含缺陷_白网轻 - scope.row.data.扭后检测_含缺陷_白网重 }}</span>
<span v-else>
<span v-if="scope.row.data.扭后检测_含缺陷_白网轻">{{ scope.row.data.扭后检测_count_use - scope.row.data.扭后检测_含缺陷_白网轻 }}</span>
<span v-else-if="scope.row.data.扭后检测_含缺陷_白网重">{{ scope.row.data.扭后检测_count_use - scope.row.data.扭后检测_含缺陷_白网重 }}</span>
<span v-else>{{ scope.row.data.扭后检测_count_use }}</span>
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader3"> <el-table-column label="比例" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']:100 }}%</span> <span v-if="scope.row.data.扭后检测_含缺陷_白网轻&&scope.row.data.扭后检测_含缺陷_白网重">{{100- scope.row.data.扭后检测_含缺陷_白网重_比例 - scope.row.data.扭后检测_含缺陷_白网轻_比例 }}%</span>
<span v-else>
<span v-if="scope.row.data.扭后检测_含缺陷_白网轻">{{ 100 - scope.row.data.扭后检测_含缺陷_白网轻_比例 }}%</span>
<span v-else-if="scope.row.data.扭后检测_含缺陷_白网重">{{100- scope.row.data.扭后检测_含缺陷_白网重_比例 }}%</span>
<span v-else>100%</span>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="轻" class-name="colorheader3"> <el-table-column label="轻" class-name="colorheader3">
<el-table-column label="数量" class-name="colorheader3"> <el-table-column label="数量" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span>{{ scope.row.data.扭后检测_含缺陷_白网轻?scope.row.data.扭后检测_含缺陷_白网轻:0 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader3"> <el-table-column label="比例" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']:100 }}%</span> <span>{{ scope.row.data.扭后检测_含缺陷_白网轻_比例?scope.row.data.扭后检测_含缺陷_白网轻_比例:0 }}%</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="重" class-name="colorheader3"> <el-table-column label="重" class-name="colorheader3">
<el-table-column label="数量" class-name="colorheader3"> <el-table-column label="数量" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span>{{ scope.row.data.扭后检测_含缺陷_白网重?scope.row.data.扭后检测_含缺陷_白网重:0 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader3"> <el-table-column label="比例" class-name="colorheader3">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']:100 }}%</span> <span>{{ scope.row.data.扭后检测_含缺陷_白网重_比例?scope.row.data.扭后检测_含缺陷_白网重_比例:0 }}%</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
@ -146,36 +176,46 @@
<el-table-column label="无" class-name="colorheader4"> <el-table-column label="无" class-name="colorheader4">
<el-table-column label="数量" class-name="colorheader4"> <el-table-column label="数量" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span v-if="scope.row.data.扭后检测_含缺陷_小网轻&&scope.row.data.扭后检测_含缺陷_小网重">{{ scope.row.data.扭后检测_count_use - scope.row.data.扭后检测_含缺陷_小网轻 - scope.row.data.扭后检测_含缺陷_小网重 }}</span>
<span v-else>
<span v-if="scope.row.data.扭后检测_含缺陷_小网轻">{{ scope.row.data.扭后检测_count_use - scope.row.data.扭后检测_含缺陷_小网轻 }}</span>
<span v-else-if="scope.row.data.扭后检测_含缺陷_小网重">{{ scope.row.data.扭后检测_count_use - scope.row.data.扭后检测_含缺陷_小网重 }}</span>
<span v-else>{{ scope.row.data.扭后检测_count_use }}</span>
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader4"> <el-table-column label="比例" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']:100 }}%</span> <span v-if="scope.row.data.扭后检测_含缺陷_小网轻&&scope.row.data.扭后检测_含缺陷_小网重">{{100- scope.row.data.扭后检测_含缺陷_小网重_比例 - scope.row.data.扭后检测_含缺陷_小网轻_比例 }}%</span>
<span v-else>
<span v-if="scope.row.data.扭后检测_含缺陷_小网轻">{{ 100 - scope.row.data.扭后检测_含缺陷_小网轻_比例 }}%</span>
<span v-else-if="scope.row.data.扭后检测_含缺陷_小网重">{{100- scope.row.data.扭后检测_含缺陷_小网重_比例 }}%</span>
<span v-else>100%</span>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="轻" class-name="colorheader4"> <el-table-column label="轻" class-name="colorheader4">
<el-table-column label="数量" class-name="colorheader4"> <el-table-column label="数量" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span>{{ scope.row.data.扭后检测_含缺陷_小网轻?scope.row.data.扭后检测_含缺陷_小网轻:0 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader4"> <el-table-column label="比例" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']:100 }}%</span> <span>{{ scope.row.data.扭后检测_含缺陷_小网轻_比例?scope.row.data.扭后检测_含缺陷_小网轻_比例:0 }}%</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="重" class-name="colorheader4"> <el-table-column label="重" class-name="colorheader4">
<el-table-column label="数量" class-name="colorheader4"> <el-table-column label="数量" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span>{{ scope.row.data.扭后检测_含缺陷_小网重?scope.row.data.扭后检测_含缺陷_小网重:0 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader4"> <el-table-column label="比例" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']:100 }}%</span> <span>{{ scope.row.data.扭后检测_含缺陷_小网重_比例?scope.row.data.扭后检测_含缺陷_小网重_比例:0 }}%</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
@ -183,42 +223,42 @@
<el-table-column label="分辨率" align="center" class-name="colorheader5"> <el-table-column label="分辨率" align="center" class-name="colorheader5">
<el-table-column label="测试数量" class-name="colorheader5"> <el-table-column label="测试数量" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data.转检测_count_ok }} </span> <span>{{ scope.row.data.后检测_count_use }} </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="国内" class-name="colorheader5"> <el-table-column label="国内" class-name="colorheader5">
<el-table-column label="数量" class-name="colorheader5"> <el-table-column label="数量" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span>{{ scope.row.data.扭后检测_含缺陷_分辨率?scope.row.data.扭后检测_含缺陷_分辨率:0}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader5"> <el-table-column label="比例" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']:100 }}%</span> <span>{{ scope.row.data.扭后检测_含缺陷_分辨率?scope.row.data.扭后检测_含缺陷_分辨率_比例:0}}%</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="出口" class-name="colorheader5"> <el-table-column label="出口" class-name="colorheader5">
<el-table-column label="数量" class-name="colorheader5"> <el-table-column label="数量" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span>{{ scope.row.data.扭后检测_含缺陷_分辨率?scope.row.data.扭后检测_含缺陷_分辨率:0}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader5"> <el-table-column label="比例" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']:100 }}%</span> <span>{{ scope.row.data.扭后检测_含缺陷_分辨率?scope.row.data.扭后检测_含缺陷_分辨率_比例:0}}%</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="不合格" class-name="colorheader5"> <el-table-column label="不合格" class-name="colorheader5">
<el-table-column label="数量" class-name="colorheader5"> <el-table-column label="数量" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span>{{ scope.row.data.扭后检测_含缺陷_分辨率?scope.row.data.扭后检测_含缺陷_分辨率:0}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader5"> <el-table-column label="比例" class-name="colorheader5">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']:100 }}%</span> <span>{{ scope.row.data.扭后检测_含缺陷_分辨率?scope.row.data.扭后检测_含缺陷_分辨率_比例:0}}%</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
@ -226,24 +266,24 @@
<el-table-column label="加工数" align="center" class-name="colorheader6"> <el-table-column label="加工数" align="center" class-name="colorheader6">
<el-table-column label="数量" class-name="colorheader6"> <el-table-column label="数量" class-name="colorheader6">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data.检测_count_ok }} </span> <span>{{ scope.row.data.检测_count_ok }} </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader6"> <el-table-column label="比例" class-name="colorheader6">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data.检测_合格率 }}</span> <span>{{ scope.row.data.检测_合格率 }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="毛坯扭送" align="center" class-name="colorheader7"> <el-table-column label="毛坯扭送" align="center" class-name="colorheader7">
<el-table-column label="数量" class-name="colorheader7"> <el-table-column label="数量" class-name="colorheader7">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data.检测_count_ok }} </span> <span>{{ scope.row.data.检测_count_ok }} </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="时间" class-name="colorheader7"> <el-table-column label="时间" class-name="colorheader7">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data.检测_合格率 }}</span> <span>{{ scope.row.data.检测_合格率 }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
@ -252,73 +292,83 @@
<el-table-column label="完好" class-name="colorheader1"> <el-table-column label="完好" class-name="colorheader1">
<el-table-column label="数量" class-name="colorheader1"> <el-table-column label="数量" class-name="colorheader1">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span v-if="scope.row.data.扭后检测_含缺陷_扭后炸纹&&scope.row.data.扭后检测_含缺陷_扭后炸废">{{ scope.row.data.扭后检测_count_use - scope.row.data.扭后检测_含缺陷_扭后炸纹 - scope.row.data.扭后检测_含缺陷_扭后炸废 }}</span>
<span v-else>
<span v-if="scope.row.data.扭后检测_含缺陷_扭后炸纹">{{ scope.row.data.扭后检测_count_use - scope.row.data.扭后检测_含缺陷_扭后炸纹 }}</span>
<span v-else-if="scope.row.data.扭后检测_含缺陷_扭后炸废">{{ scope.row.data.扭后检测_count_use - scope.row.data.扭后检测_含缺陷_扭后炸废 }}</span>
<span v-else>{{ scope.row.data.扭后检测_count_use }}</span>
</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader1"> <el-table-column label="比例" class-name="colorheader1">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']:100 }}%</span> <span v-if="scope.row.data.扭后检测_含缺陷_扭后炸纹&&scope.row.data.扭后检测_含缺陷_扭后炸废">{{100- scope.row.data.扭后检测_含缺陷_扭后炸纹 - scope.row.data.扭后检测_含缺陷_扭后炸废 }}%</span>
<span v-else>
<span v-if="scope.row.data.扭后检测_含缺陷_扭后炸纹">{{ 100 - scope.row.data.扭后检测_含缺陷_扭后炸纹_比例 }}</span>
<span v-else-if="scope.row.data.扭后检测_含缺陷_扭后炸废">{{100- scope.row.data.扭后检测_含缺陷_扭后炸废_比例 }}%</span>
<span v-else>100%</span>
</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="崩炸" class-name="colorheader1"> <el-table-column label="崩炸" class-name="colorheader1">
<el-table-column label="数量" class-name="colorheader1"> <el-table-column label="数量" class-name="colorheader1">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span>{{ scope.row.data.扭后检测_含缺陷_扭后炸纹?扭后检测_含缺陷_扭后炸纹:0 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader1"> <el-table-column label="比例" class-name="colorheader1">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']:100 }}%</span> <span>{{ scope.row.data.扭后检测_含缺陷_扭后炸纹?scope.row.data.扭后检测_含缺陷_扭后炸纹_比列:0 }}%</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="炸废" class-name="colorheader1"> <el-table-column label="炸废" class-name="colorheader1">
<el-table-column label="数量" class-name="colorheader1"> <el-table-column label="数量" class-name="colorheader1">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']?scope.row.data.扭转检测_count_use-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格']:scope.row.data.扭转检测_count_use }}</span> <span>{{ scope.row.data.扭后检测_含缺陷_扭后炸废?扭后检测_含缺陷_扭后炸废:0 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="比例" class-name="colorheader1"> <el-table-column label="比例" class-name="colorheader1">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']?100-scope.row.data['扭转检测_缺陷_放大率¢16mm不合格_比例']:100 }}%</span> <span>{{ scope.row.data.扭后检测_含缺陷_扭后炸废?scope.row.data.扭后检测_含缺陷_扭后炸废_比列:0 }}%</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="扭转角" class-name="colorheader1"> <!-- <el-table-column label="扭转角" class-name="colorheader1">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data.转检测_count_ok }} </span> <span>{{ scope.row.data.后检测_含缺陷_扭转角不合格 }} </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="改直" class-name="colorheader1"> <el-table-column label="改直" class-name="colorheader1">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data.检测_合格率 }}</span> <span>{{ scope.row.data.检测_合格率 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="外圆大" class-name="colorheader1"> <el-table-column label="外圆大" class-name="colorheader1">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data.检测_count_ok }} </span> <span>{{ scope.row.data.检测_count_ok }} </span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column label="合计" class-name="colorheader1"> <el-table-column label="合计" class-name="colorheader1">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data.检测_count_ok }} </span> <span>{{ scope.row.data.检测_count_ok }} </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合格率" class-name="colorheader1"> <el-table-column label="合格率" class-name="colorheader1">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data.检测_合格率 }}</span> <span>{{ scope.row.data.检测_合格率 }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="外形偏(0.5mm)" align="center" class-name="colorheader2"> <!-- <el-table-column label="外形偏(0.5mm)" align="center" class-name="colorheader2">
</el-table-column> </el-table-column> -->
<el-table-column label="实验名称备注" prop="batch" align="center" class-name="colorheader3"> <el-table-column label="实验名称备注" prop="batch" align="center" class-name="colorheader3">
</el-table-column> </el-table-column>
<el-table-column label="检测设备" align="center" class-name="colorheader4"> <el-table-column label="检测设备" align="center" class-name="colorheader4">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.data.检测_缺陷_备注 }}</span> <span>{{ scope.row.data.检测_缺陷_备注 }}</span>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>
@ -332,8 +382,8 @@ export default {
data() { data() {
return { return {
params: { params: {
ordering:'-data__扭检测_小日期', ordering:'-data__扭检测_小日期',
querys:[[{field:"data__has_key",compare:"",value:"扭检测_日期"}]], querys:[[{field:"data__has_key",compare:"",value:"扭检测_日期"}]],
}, },
query:{ query:{
name__contains:'', name__contains:'',
@ -341,7 +391,6 @@ export default {
last_time__gte:'', last_time__gte:'',
last_time__lte:'', last_time__lte:'',
}, },
// apiObj: this.$API.wpm.wpr.query,
apiObj: this.$API.wpm.batchstquery, apiObj: this.$API.wpm.batchstquery,
options:[], options:[],
tableData:[], tableData:[],
@ -350,9 +399,9 @@ export default {
methods: { methods: {
handleQuery(){ handleQuery(){
let that = this; let that = this;
let querys = [[{field:"wm",value:0,compare:"isnull"},{field:"data__has_key",compare:"",value:"扭检测_批次号"}]]; let querys = [[{field:"wm",value:0,compare:"isnull"},{field:"data__has_key",compare:"",value:"扭检测_批次号"}]];
let obj = {},obj1 = {},obj2 = {},obj3 = {}; let obj = {},obj1 = {},obj2 = {},obj3 = {};
obj.field = 'data__扭检测_批次号'; obj.field = 'data__扭检测_批次号';
obj.value = that.query.batch__contains; obj.value = that.query.batch__contains;
obj.compare = ''; obj.compare = '';
@ -364,7 +413,7 @@ export default {
obj2.value = that.query.last_time__lte; obj2.value = that.query.last_time__lte;
obj2.compare = 'lte'; obj2.compare = 'lte';
obj3.field = 'data__扭检测_物料名'; obj3.field = 'data__扭检测_物料名';
obj3.value = that.query.name__contains; obj3.value = that.query.name__contains;
obj3.compare = ''; obj3.compare = '';

View File

@ -97,7 +97,12 @@ export default {
}, },
handleQuery(){ handleQuery(){
let that = this; let that = this;
if(that.query.user_name==null||that.query.user_name==''){
that.$message.error('请输入员工姓名');
}else{
that.getData(); that.getData();
}
}, },
}, },
}; };