fix(wms): 修复历史卷标签显示条件,增加dataType为2的情况

修改stepSplit.vue和correct.vue文件,将历史卷的判断条件从仅dataType=0扩展为dataType=0或2,确保正确显示历史卷标签和样式
This commit is contained in:
砂糖
2026-01-30 19:13:38 +08:00
parent 36b6cc3c8d
commit 3813c8b000
2 changed files with 3 additions and 3 deletions

View File

@@ -598,7 +598,7 @@ export default {
return { border: '1.5px solid #007bff' }
}
// 历史钢卷
if (row.dataType == 0) {
if (row.dataType == 0 || row.dataType == 2) {
return { border: '1.5px solid #6c757d' }
}
// 当前钢卷
@@ -615,7 +615,7 @@ export default {
if (row.status == 1) {
return '已发货'
}
if (row.dataType == 0) {
if (row.dataType == 0 || row.dataType == 2) {
return '历史钢卷'
}
if (row.dataType == 1) {

View File

@@ -46,7 +46,7 @@
<div v-else-if="scope.row.dataType == 1">
<el-tag type="success">当前在库</el-tag>
</div>
<div v-else-if="scope.row.dataType == 0">
<div v-else-if="scope.row.dataType == 0 || scope.row.dataType == 2">
<el-tag type="warning">历史卷</el-tag>
</div>
<div v-else>