feat(consignment): 苏尔南手枪按枪型/钻石/璀璨分层匹配并过滤跨枪型

排序:完美匹配 > 同钻高璀 > 高钻同璀 > 高钻高璀 > 低配;跨枪型不展示不参与;高配仍需填人工原因。
This commit is contained in:
2026-11-15 16:58:42 +08:00
parent 68fa2a575f
commit e2c27bc7a9
12 changed files with 877 additions and 127 deletions
@@ -0,0 +1,14 @@
/** 匹配层级标签颜色:完美绿、高配蓝系、低配橙、冲突/缺失红。 */
export function resolveConsignmentPriorityTagColor(label: string | null | undefined): string {
const value = String(label || '').trim()
if (!value) return 'default'
if (value === '完美匹配') return 'green'
if (value === '同钻高璀') return 'blue'
if (value === '高钻同璀') return 'cyan'
if (value === '高钻高璀') return 'geekblue'
if (value === '低配') return 'orange'
if (value.includes('冲突') || value.includes('缺失') || value.includes('不符')) {
return 'red'
}
return 'default'
}