refactor: 缺陷标识与库存状态改为批次号 inline tag

合并独立的缺陷与状态列到批次号列,作为内联标签紧跟批次字符显示,节省横向空间并增强归属关联。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
caoqianming 2026-04-30 14:05:25 +08:00
parent 17127c352b
commit 72a9f0eef3
2 changed files with 8 additions and 18 deletions

View File

@ -222,16 +222,11 @@
prop="material_in_name" prop="material_in_name"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column label="批次号" prop="batch"> <el-table-column label="批次号" prop="batch" min-width="200" show-overflow-tooltip>
</el-table-column>
<el-table-column label="缺陷标识" prop="wm_in_defect_name" show-overflow-tooltip>
<template #default="scope"> <template #default="scope">
<el-tag v-if="scope.row.wm_in_defect_name" type="warning">{{ scope.row.wm_in_defect_name }}</el-tag> <span>{{ scope.row.batch }}</span>
</template> <el-tag v-if="scope.row.wm_in_defect_name" type="warning" size="small" style="margin-left: 6px;">{{ scope.row.wm_in_defect_name }}</el-tag>
</el-table-column> <el-tag v-if="scope.row.wm_in_state" :type="wmState[scope.row.wm_in_state]?.type" size="small" style="margin-left: 6px;">{{ wmState[scope.row.wm_in_state]?.text }}</el-tag>
<el-table-column label="库存状态" prop="wm_in_state" width="100">
<template #default="scope">
<el-tag v-if="scope.row.wm_in_state" :type="wmState[scope.row.wm_in_state]?.type">{{ wmState[scope.row.wm_in_state]?.text }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="领用数量" prop="count_use"> <el-table-column label="领用数量" prop="count_use">

View File

@ -118,16 +118,11 @@
prop="material_in_name" prop="material_in_name"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<el-table-column label="批次号" prop="batch"> <el-table-column label="批次号" prop="batch" min-width="200" show-overflow-tooltip>
</el-table-column>
<el-table-column label="缺陷标识" prop="wm_in_defect_name" show-overflow-tooltip>
<template #default="scope"> <template #default="scope">
<el-tag v-if="scope.row.wm_in_defect_name" type="warning">{{ scope.row.wm_in_defect_name }}</el-tag> <span>{{ scope.row.batch }}</span>
</template> <el-tag v-if="scope.row.wm_in_defect_name" type="warning" size="small" style="margin-left: 6px;">{{ scope.row.wm_in_defect_name }}</el-tag>
</el-table-column> <el-tag v-if="scope.row.wm_in_state" :type="wmState[scope.row.wm_in_state]?.type" size="small" style="margin-left: 6px;">{{ wmState[scope.row.wm_in_state]?.text }}</el-tag>
<el-table-column label="库存状态" prop="wm_in_state" width="100">
<template #default="scope">
<el-tag v-if="scope.row.wm_in_state" :type="wmState[scope.row.wm_in_state]?.type">{{ wmState[scope.row.wm_in_state]?.text }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="领用数量" prop="count_use"> <el-table-column label="领用数量" prop="count_use">