This commit is contained in:
zlwu committed 2026-05-24 17:57:28 +08:00
1 parent 7cec1f2190
commit 13e4c9530a
85 files changed
+23079 -15736

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import type { TagType } from '@/utils/status-tag-registry'
/** 生产结论 cg=成功 sb=失败 */
export function productionConclusionLabel(code?: string | null): string {
const c = (code || '').trim()
if (c === 'cg') return '成功'
if (c === 'sb') return '失败'
return c || '—'
}
export function productionConclusionTagType(code?: string | null): TagType | undefined {
const c = (code || '').trim()
if (c === 'cg') return 'success'
if (c === 'sb') return 'danger'
return undefined
}