fix:外观检验已完成添加检验

This commit is contained in:
shijing 2025-11-14 09:29:42 +08:00
parent d15b34d050
commit 1e639ac5ff
1 changed files with 13 additions and 17 deletions

View File

@ -46,11 +46,11 @@
:query="query"
@selection-change="selectionChange"
>
<el-table-column type="selection"></el-table-column>
<el-table-column label="状态" prop="state" width="100" >
<template #default="scope">
<el-tag :type="wmState[scope.row.state]?.type">
{{wmState[scope.row.state]?.text}}
<el-table-column type="selection"></el-table-column>
<el-table-column label="状态" prop="state" width="100" >
<template #default="scope">
<el-tag :type="wmState[scope.row.state]?.type">
{{wmState[scope.row.state]?.text}}
</el-tag>
</template>
</el-table-column>
@ -61,9 +61,7 @@
>
<template #default="scope">
{{ scope.row.material_name }}
<span v-if="scope.row.material_origin != null"
>{{ scope.row.material_origin_name }}</span
>
<span v-if="scope.row.material_origin != null">{{ scope.row.material_origin_name }}</span>
</template>
</el-table-column>
<el-table-column
@ -79,9 +77,9 @@
label="部门/工段"
prop="belong_dept_name"
>
<template #default="scope">
{{scope.row.belong_dept_name}}/{{scope.row.mgroup_name}}
</template>
<template #default="scope">
{{scope.row.belong_dept_name}}/{{scope.row.mgroup_name}}
</template>
</el-table-column>
<el-table-column
label="数量"
@ -114,16 +112,14 @@
@click="table_Check(scope.row)"
v-auth="'ftestwork.create'"
type="primary"
v-if="(scope.row.mgroup_name == '黑化'||scope.row.mgroup_name == '退火')&&(scope.row.state == 10||scope.row.state == 20||scope.row.state == 34)"
>检验
</el-button>
v-if="(scope.row.mgroup_name == '黑化'||scope.row.mgroup_name == '退火'||scope.row.mgroup_name == '外观检验')&&(scope.row.state == 10||scope.row.state == 20||scope.row.state == 34)"
>检验</el-button>
<el-button
link size="small"
type="warning"
@click="tableCheckList(scope.row)"
v-if="(scope.row.mgroup_name == '黑化'||scope.row.mgroup_name == '退火')&&(scope.row.state == 10||scope.row.state == 20||scope.row.state == 34)"
>检验记录
</el-button>
v-if="(scope.row.mgroup_name == '黑化'||scope.row.mgroup_name == '退火'||scope.row.mgroup_name == '外观检验')&&(scope.row.state == 10||scope.row.state == 20||scope.row.state == 34)"
>检验记录</el-button>
<el-button @click="printMaterial(scope.row)" type="text">物料标签</el-button>
</template>
</el-table-column>