fix:玻纤交接记录列表交接类型显示调整

This commit is contained in:
shijing 2025-06-27 11:02:59 +08:00
parent abfd1b875b
commit 10ee4471de
1 changed files with 17 additions and 14 deletions

View File

@ -98,12 +98,24 @@
</template>
</el-table-column>
<el-table-column label="数量" prop="count" min-width="80"></el-table-column>
<el-table-column label="交接类型" prop="type" min-width="80">
<template #default="scope" v-if="mgroup_name=='size'||mgroup_name=='facade'">
<el-text v-if="scope.row.send_dept == deptId" type="primary">交送</el-text>
<el-text v-if="scope.row.recive_dept == deptId" type="success">接收</el-text>
<!-- <el-table-column label="交接类别" prop="type" width="80">
<template #default="scope">
<el-tag v-if="scope.row.type == 10" type="success">正常</el-tag>
<el-tag v-if="scope.row.type == 20" type="warning">返工</el-tag>
<el-tag v-if="scope.row.type == 30" type="primary">检验</el-tag>
<el-tag v-if="scope.row.type == 40" type="danger">报废</el-tag>
<el-tag v-if="scope.row.type == 60" type="warning">退料</el-tag>
</template>
<template #default="scope" v-else>
</el-table-column> -->
<el-table-column label="交接类型" prop="type" min-width="80">
<template #default="scope">
<el-tag v-if="scope.row.type == 10&&scope.row.mtype == 10" type="success">正常</el-tag>
<el-tag v-if="scope.row.type == 10&&scope.row.mtype == 20" type="warning">分批</el-tag>
<el-tag v-if="scope.row.type == 10&&scope.row.mtype == 30" type="warning">合批</el-tag>
<el-tag v-if="scope.row.type == 20" type="warning">返工</el-tag>
<el-tag v-if="scope.row.type == 30" type="primary">检验</el-tag>
<el-tag v-if="scope.row.type == 40" type="danger">报废</el-tag>
<el-tag v-if="scope.row.type == 60" type="warning">退料</el-tag>
<el-text v-if="scope.row.send_mgroup == mgroupId" type="primary">交送</el-text>
<el-text v-if="scope.row.recive_mgroup == mgroupId" type="success">接收</el-text>
</template>
@ -114,15 +126,6 @@
<el-text v-if="scope.row.recive_mgroup == mgroupId">{{scope.row.recive_mgroup_name}}</el-text>
</template>
</el-table-column>
<el-table-column label="交接类别" prop="type" width="80">
<template #default="scope">
<el-tag v-if="scope.row.type == 10" type="success">正常</el-tag>
<el-tag v-if="scope.row.type == 20" type="warning">返工</el-tag>
<el-tag v-if="scope.row.type == 30" type="primary">检验</el-tag>
<el-tag v-if="scope.row.type == 40" type="danger">报废</el-tag>
<el-tag v-if="scope.row.type == 60" type="warning">退料</el-tag>
</template>
</el-table-column>
<el-table-column
label="交送人"
prop="send_user_name"