This commit is contained in:
caoqianming 2025-09-17 11:02:01 +08:00
commit 2f1910fed6
13 changed files with 237 additions and 167 deletions

View File

@ -261,21 +261,16 @@
<el-divider/>
<el-col :md="12" :sm="24">
<el-form-item label="所属设备">
<el-select
<xtSelect
:apiObj="apiObjEq"
v-model="form.ep_belong"
placeholder="所属设备"
clearable
filterable
style="width: 100%"
@clear="() => { form.ep_belong=null } "
:label="form.ep_belong_name"
placeholder="所属设备"
>
<el-option
v-for="item in epOptions"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
<el-table-column label="名称" prop="name"></el-table-column>
<el-table-column label="位号" prop="number"></el-table-column>
</xtSelect>
</el-form-item>
</el-col>
<el-col :md="12" :sm="24">
@ -465,6 +460,7 @@ export default {
mpointOptions: [],
epOptions: [],
materials: [],
apiObjEq:this.$API.em.equipment.list,
};
},
mounted() {

View File

@ -38,6 +38,7 @@
<el-input
v-if="form.type == 'pur_in'||form.type == 'other_in'"
v-model="form.batch"
clearable
placeholder="手动输入批次号"
:disabled="inputBatchDisable"
/>
@ -500,6 +501,9 @@ export default {
} else {
this.getBatchOptions();
}
if(that.project_code=='gx'&&that.type == 'pur_in'){
that.form.batch = '无'
}
},
getItem(options, id) {
for (var i = 0; i < options.length; i++) {

View File

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

View File

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

View File

@ -64,7 +64,7 @@
<el-table-column
label="物料名称"
prop="material_name"
min-width="150"
min-width="160"
>
<template #default="scope">
{{ scope.row.material_name }}
@ -76,10 +76,10 @@
<el-table-column
label="物料已到工序"
prop="material_name"
min-width="100"
min-width="70"
>
<template #default="scope">
{{ scope.row.material_name.split('|').at(-1) }}
<span v-if="scope.row.material_">{{ scope.row.material_.process_name}}</span>
</template>
</el-table-column>
<el-table-column
@ -149,9 +149,9 @@
type="primary"
style="margin-left: 10px;"
>检验</el-link>
<el-link :underline="false" type="primary"
<!-- <el-link :underline="false" type="primary"
@click="handleWatch(scope.row)"
>流程图</el-link>
>流程图</el-link> -->
</template>
</el-table-column>
</scTable>

View File

@ -79,7 +79,7 @@
<el-table-column
label="物料名称"
prop="material_name"
min-width="120"
min-width="160"
>
<template #default="scope">
{{ scope.row.material_name }}
@ -91,10 +91,10 @@
<el-table-column
label="物料已到工序"
prop="material_name"
min-width="100"
min-width="70"
>
<template #default="scope">
{{ scope.row.material_name.split('|').at(-1) }}
<span v-if="scope.row.material_">{{ scope.row.material_.process_name}}</span>
</template>
</el-table-column>
<el-table-column
@ -164,9 +164,9 @@
type="primary"
style="margin-left: 10px;"
>检验</el-link>
<el-link :underline="false" type="primary"
<!-- <el-link :underline="false" type="primary"
@click="handleWatch(scope.row)"
>流程图</el-link>
>流程图</el-link> -->
</template>
</el-table-column>
</scTable>

View File

@ -218,7 +218,6 @@
:apiObj="apiObj"
row-key="id"
stripe
height="250px"
:params="paramsIn"
hidePagination
>
@ -600,9 +599,9 @@ export default {
that.isSubmit = res.submit_time==null?false:true;
if(that.processType=='10'&&that.mlogItem.material_out_&&that.mlogItem.material_out_.tracking==20){
that.getMlogbw();
if(that.mlogItem.qct!==null){
that.getdefects(that.mlogItem.qct);
}
// if(that.mlogItem.qct!==null){
// that.getdefects(that.mlogItem.qct);
// }
}
if(res.route!==null){
that.hasRoute = true;
@ -649,51 +648,51 @@ export default {
that.shiftOtions = res;
});
},
getdefects(qct){
let that = this;
if(qct!==''&&qct!==null){//
that.$API.qm.qct.item.req(qct).then((res) => {
that.qct_defects = [];
that.testdefectss(res);
})
}else{
that.$API.qm.qct.getQct.req({ material: that.mlogItem.material_out,type:'out',tag:'process' }).then((res) => {
that.testdefectss(res);
}).catch(()=>{
// that.getList();
})
}
},
testdefectss(res){
let that = this;
res.qct_defects.forEach((item) => {
that.addTemplate[item.defect_name] = false;
let obj = Object.assign({}, item);
that.qct_defects.push(obj);
})
that.qct_defects_origin = that.qct_defects;
that.qct_testitems = [];
res.qct_testitems.forEach((item2) => {
if(item2.testitem_type!=='20'){
let obj2 = Object.assign({}, item2);
obj2.value = '';
obj2.addto_wpr = item2.addto_wpr;
if(item2.testitem_field_type=='input-number'||item2.testitem_field_type=='input-int'){
obj2.value = null;
that.addTemplate[item2.testitem_name] = null;
}
if(item2.testitem_field_type=='select-text'||item2.testitem_field_type=='selects-text'){
let str = obj2.testitem_choices.replace(/'/g, '"');
let arr = JSON.parse(str);
obj2.testitem_choices = arr;
that.addTemplate[item2.testitem_name] = null;
}
that.qct_testitems.push(obj2);
}
})
that.qct_testitems_origin = that.qct_testitems;
// that.getList();
},
// getdefects(qct){
// let that = this;
// if(qct!==''&&qct!==null){//
// that.$API.qm.qct.item.req(qct).then((res) => {
// that.qct_defects = [];
// that.testdefectss(res);
// })
// }else{
// that.$API.qm.qct.getQct.req({ material: that.mlogItem.material_out,type:'out',tag:'process' }).then((res) => {
// that.testdefectss(res);
// }).catch(()=>{
// // that.getList();
// })
// }
// },
// testdefectss(res){
// let that = this;
// res.qct_defects.forEach((item) => {
// that.addTemplate[item.defect_name] = false;
// let obj = Object.assign({}, item);
// that.qct_defects.push(obj);
// })
// that.qct_defects_origin = that.qct_defects;
// that.qct_testitems = [];
// res.qct_testitems.forEach((item2) => {
// if(item2.testitem_type!=='20'){
// let obj2 = Object.assign({}, item2);
// obj2.value = '';
// obj2.addto_wpr = item2.addto_wpr;
// if(item2.testitem_field_type=='input-number'||item2.testitem_field_type=='input-int'){
// obj2.value = null;
// that.addTemplate[item2.testitem_name] = null;
// }
// if(item2.testitem_field_type=='select-text'||item2.testitem_field_type=='selects-text'){
// let str = obj2.testitem_choices.replace(/'/g, '"');
// let arr = JSON.parse(str);
// obj2.testitem_choices = arr;
// that.addTemplate[item2.testitem_name] = null;
// }
// that.qct_testitems.push(obj2);
// }
// })
// that.qct_testitems_origin = that.qct_testitems;
// // that.getList();
// },
//mlogbw
getMlogbw(){
let that = this;

View File

@ -332,7 +332,7 @@ export default {
res.results.forEach((item) => {
let obj = {};
Object.assign(obj, item);
obj.value = '';
obj.value = null;
that.testitems.push(obj);
})
});

View File

@ -295,7 +295,7 @@ export default {
res.results.forEach((item) => {
let obj = {};
Object.assign(obj, item);
obj.value = '';
obj.value = null;
that.testitems.push(obj);
})
});

View File

@ -546,7 +546,7 @@ export default {
selectWprList:[],
qct_defects_origin:[],
selectWpr:[],
tableHeight:500,
tableHeight:null,
apiObjPrint:this.$API.cm.labelmat.fromWm,
printer_name:localStorage.getItem("printer_name")
};
@ -597,9 +597,7 @@ export default {
}
}
that.visible = true;
setTimeout(() => {
that.tableHeight = document.getElementById('mlogbwMain').clientHeight-20;
},500)
that.tableHeight = document.getElementsByClassName('el-drawer__body')[0].clientHeight-40;
},
//testItem
gettestitem(){

View File

@ -134,13 +134,13 @@
<el-button
v-if="!scope.row.isEdit"
type="primary"
@click="formTableEdit(scope.row)"
@click="formTableEdit(scope.$index)"
>编辑</el-button>
<el-button
v-if="scope.row.isEdit&&!scope.row.id"
type="danger"
style="margin-left: 5px;"
@click="formTableDelet(scope.row)"
@click="formTableDelet(scope.row,scope.$index)"
>删除</el-button>
<el-button
v-if="!scope.row.isEdit"
@ -411,6 +411,7 @@ export default {
test_user:"",
equipment:"",
equipment_name:"",
cd_req_addr:null,//
testitemids : [],
defectids : [],
},
@ -450,7 +451,7 @@ export default {
that.tableHeight = document.getElementById('mlogbwMain').clientHeight-20;
},500)
that.route_code = that.$route.path.split("/")[2];
that.hideAdd = that.isSubmit;
// that.hideAdd = that.isSubmit;
that.currentDate = that.$TOOL.dateFormat2(new Date());
},
methods: {
@ -598,6 +599,12 @@ export default {
//
formTableSave(row) {
let that = this;
let editIndex = 0;
that.mlogbwlist.forEach((item,index) => {
if(item.id==row.id){
editIndex = index;
}
})
let obj = {};
obj.number = row.number;
obj.mlogb = row.mlogb;
@ -605,7 +612,7 @@ export default {
obj.note = row.note;
//qct
if(that.qct!==''&&that.qct!==null){
that.qct_defects_origin.forEach(item => {
that.qct_defects.forEach(item => {
if(item.rule_expression!==''&&item.rule_expression!==undefined&&item.rule_expression!==null){
let str = item.rule_expression.replace(/`/g, '');
str = str.replace(/\${(.*?)}/g, 'row.\$1')
@ -645,7 +652,8 @@ export default {
obj.id = row.id;
that.$API.wpm.mlogbw.update.req(row.id,obj).then((res) => {
that.$message.success("保存成功");
that.getList();
that.mlogbwlist[editIndex].isEdit = false;
// that.getList();
return res;
}).catch((err) => {
return err;
@ -653,7 +661,8 @@ export default {
}else{
that.$API.wpm.mlogbw.create.req(obj).then((res) => {
that.$message.success("添加成功");
that.getList();
that.mlogbwlist[editIndex].isEdit = false;
// that.getList();
return res;
}).catch((err) => {
return err;
@ -667,32 +676,29 @@ export default {
}
});
},
formTableEdit(row) {
formTableEdit(index) {
let that = this;
if(that.route_code=='niuzhuan'&&that.optionsEq.length==0){
that.getEquipment4();
that.mlogbwlist[index].isEdit = true;
let date = new Date();
if(that.mlogbwlist[index].work_start_time==''||that.mlogbwlist[index].work_start_time==null){
that.mlogbwlist[index].work_start_time = that.$TOOL.dateFormat(date, 'yyyy-MM-dd hh:mm:ss');
}
if(that.setForm.cd_req_addr!==null&&that.setForm.cd_req_addr!==""&&that.setForm.cd_req_addr!==undefined){
that.getEqData(index);
}
that.mlogbwlist.forEach((item, index) => {
if (item.id == row.id) {
that.mlogbwlist[index].isEdit = true;
let date = new Date();
if(that.mlogbwlist[index].work_start_time==''||that.mlogbwlist[index].work_start_time==null){
that.mlogbwlist[index].work_start_time = that.$TOOL.dateFormat(date, 'yyyy-MM-dd hh:mm:ss');
}
}
});
},
formTableDelet(row){
this.mlogbwlist.pop();
},
//
formTableDel(id) {
formTableDel(id,index) {
let that = this;
that.$confirm(`确定删除吗?`, "提示", {
type: "warning",
}).then(() => {
that.$API.wpm.mlogbw.delete.req(id).then((res) => {
that.getList();
that.mlogbwlist.splice(index,1);
that.$message.success("删除成功");
}).catch((err) => {
return err;
@ -716,7 +722,7 @@ export default {
defectCountSun(row){
let that = this;
let index = that.mlogbwlist.indexOf(row);
that.qct_defects_origin.forEach(item => {
that.qct_defects.forEach(item => {
if(item.rule_expression!==''&&item.rule_expression!==undefined&&item.rule_expression!==null){
let str = item.rule_expression.replace(/`/g, '');
str = str.replace(/\${(.*?)}/g, 'row.\$1')
@ -771,7 +777,7 @@ export default {
that.equipmentOptions.forEach(item => {
if(item.id == that.form.equipment){
that.form.equipment_name = item.name;
that.form.cd_req_addr=item.cd_req_addr;
that.form.cd_req_addr = that.setForm.cd_req_addr = item.cd_req_addr;
}
});
},
@ -883,7 +889,7 @@ export default {
that.mlogbwlist.splice(index,1);
that.wprInputText = "";
that.mlogbwlist.unshift(obj);
if(that.setForm.cd_req_addr!==null){
if(that.setForm.cd_req_addr!==null&&that.setForm.cd_req_addr!==""&&that.setForm.cd_req_addr!==undefined){
//cd_req_addr,
that.getEqData(0);
}
@ -899,6 +905,11 @@ export default {
}
})
}).catch((err) => {
console.log(err);
this.$notify.error({
title: '获取数据失败',
message: err.data
})
return err;
});
},

View File

@ -83,6 +83,15 @@
</div>
</template>
</el-table-column>
<el-table-column label="棒号" min-width="80" v-if="route_code=='paiyicibang'">
<template #default="scope">
<div v-if="scope.row.mlogbw_number_list.length>0">
<span v-for="item in scope.row.mlogbw_number_list" :key="item">
<span >{{ item }}</span>
</span>
</div>
</template>
</el-table-column>
<el-table-column label="板段号" min-width="160" v-if="route_code=='paiban'||route_code=='zhuangmo'||route_code=='tuomoceliang'||route_code=='reyatuihuo'||route_code=='zlybcl'">
<template #default="scope">
<div v-if="scope.row.mlogbw_number_list.length>0">
@ -120,22 +129,22 @@
<span v-if="scope.row.oinfo_json_">{{scope.row.oinfo_json_.是否保温}}</span>
</template>
</el-table-column>
<el-table-column label="温度" v-if="route_code=='zlybcl'">
<el-table-column label="温度(℃)" v-if="route_code=='zlybcl'">
<template #default="scope">
<span v-if="scope.row.oinfo_json_">{{scope.row.oinfo_json_.温度}}</span>
</template>
</el-table-column>
<el-table-column label="压力" v-if="route_code=='zlybcl'">
<el-table-column label="压力(mpa)" v-if="route_code=='zlybcl'">
<template #default="scope">
<span v-if="scope.row.oinfo_json_">{{scope.row.oinfo_json_.压力}}</span>
</template>
</el-table-column>
<el-table-column label="刻度" v-if="route_code=='zlybcl'">
<el-table-column label="刻度(mm)" v-if="route_code=='zlybcl'">
<template #default="scope">
<span v-if="scope.row.oinfo_json_">{{scope.row.oinfo_json_.刻度}}</span>
</template>
</el-table-column>
<el-table-column label="压板用时" v-if="route_code=='zlybcl'">
<el-table-column label="压板用时(分)" v-if="route_code=='zlybcl'">
<template #default="scope">
<span v-if="scope.row.oinfo_json_">{{scope.row.oinfo_json_.压板用时}}</span>
</template>
@ -143,7 +152,6 @@
<el-table-column
label="处理人"
prop="handle_user_name"
width="80"
></el-table-column>
<el-table-column label="保温剩余时间" v-if="mgroup_name=='黑化'||mgroup_name=='退火'">
<template #default="scope">

View File

@ -9,7 +9,7 @@
>
<div id="tableWap" style="height: 100%;">
<el-tabs v-model="activeName" @tab-change="handleClick">
<el-tab-pane v-for="item in mpointList" :label="item.name" :name="item.name" :key="item.id" lazy>
<el-tab-pane v-for="item in mpointList" :label="item.nickname" :name="item.nickname" :key="item.id" lazy>
<scTable
ref="table"
:apiObj="apiObj"
@ -103,7 +103,7 @@ export default {
that.$API.enm.mpoint.list.req({ep_belong:that.equipmentId,page:0}).then((res) => {
if(res.length>0){
that.mpointList = res;
that.activeName = res[0].name;
that.activeName = res[0].nickname;
that.params.mpoint = res[0].id;
that.apiObj = that.$API.enm.mplogx;
that.handleClick();
@ -116,7 +116,7 @@ export default {
console.log('handleClick',val)
let that = this;
that.mpointList.forEach(item=>{
if(item.name == that.activeName){
if(item.nickname == that.activeName){
that.query.mpoint = item.id;
that.query.page = 1;
that.option.title.text = that.activeName;
@ -129,9 +129,9 @@ export default {
params.page = 0;
that.$API.enm.mplogx.req(params).then((res) => {
res.forEach(item=>{
that.option.xAxis.data.push(item.timex);
that.option.xAxis.data.unshift(item.timex);
let value = Number(item.val_float).toFixed(3);
that.option.series.data.push(value);
that.option.series.data.unshift(value);
})
})
}