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

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

No files matched your search

+4
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,