feat: 出库类型新增「维修出库(REPAIR)」下拉选项与记录类型/标签映射

This commit is contained in:
yueli
2026-09-07 13:51:38 +08:00
parent 73510d3a71
commit eaafeaf24e
2 changed files with 5 additions and 2 deletions

View File

@ -253,7 +253,8 @@ const formatType = (type: string) => {
'USE': '内部领用',
'PRODUCTION': '生产出库',
'SCRAP': '报废',
'LOSS': '盘亏出库' // ★ 补充映射:扫码出库下拉中存在「盘亏出库 LOSS」,避免出库记录显示英文
'LOSS': '盘亏出库', // ★ 补充映射:扫码出库下拉中存在「盘亏出库 LOSS」,避免出库记录显示英文
'REPAIR': '维修出库'
}
return map[type] || type
}
@ -264,7 +265,8 @@ const getTagType = (type: string) => {
'USE': 'warning',
'PRODUCTION': 'info',
'SCRAP': 'danger',
'LOSS': 'warning' // ★ 补充:盘亏出库标签样式
'LOSS': 'warning', // ★ 补充:盘亏出库标签样式
'REPAIR': 'info'
}
return map[type] || ''
}