feat(web-admin): show transferred status on OA progress lines

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-07-23 15:16:40 +08:00
1 parent dc54170771
commit 35c60f95e8
4 files changed
+37 -4

No files matched your search

+2 -1
View File
@@ -61,7 +61,8 @@ const STATUS_TEXT: Record<string, string> = {
done: '已结束',
submitted: '已提交',
not_reached: '未到达',
returned: '已打回'
returned: '已打回',
transferred: '已转交'
}
const UPLOAD_TYPES = new Set([
@@ -18,7 +18,7 @@ export type ProgressPersonLine = {
tone: PersonLineTone
}
const ACTED_STATUS = new Set(['approved', 'rejected', 'returned', 'completed'])
const ACTED_STATUS = new Set(['approved', 'rejected', 'returned', 'completed', 'transferred'])
function displayName(p: ProgressPersonInput): string {
return String(p.nickName || p.id || '').trim()
@@ -30,6 +30,7 @@ function statusFallbackLabel(status: string): string {
if (s === 'rejected') return '已拒绝'
if (s === 'returned') return '已打回'
if (s === 'completed') return '已完成'
if (s === 'transferred') return '已转交'
return s || '已处理'
}
@@ -38,7 +39,7 @@ function toneForStatus(status: string): PersonLineTone {
if (s === 'approved' || s === 'completed') return 'ok'
if (s === 'pending' || s === 'running' || s === 'not_reached') return 'pending'
if (s === 'rejected' || s === 'returned' || s === 'cancelled') return 'danger'
if (s === 'done') return 'mute'
if (s === 'done' || s === 'transferred') return 'mute'
return ''
}