适配来源消息只读任务展示

This commit is contained in:
andy
2026-07-10 19:38:13 +08:00
parent bbd4ea22df
commit 1efa819599
11 changed files with 324 additions and 14 deletions

View File

@@ -22,6 +22,10 @@ export function formatReservationTaskTypeSummary(
return `${typeLabel} / ${translateStableCode(t, 'taskSubtype', taskSubtype, 'common.unknownTaskSubtype')}`
}
export function isReservationSourceMessageOnlyTask(...codes: Array<string | null | undefined>): boolean {
return codes.some((code) => normalizeStableCode(code) === 'SOURCE_MESSAGE_ONLY')
}
export function formatReservationReadonlyReason(
t: ReservationTranslator,
reasonCode: string | null | undefined,