diff --git a/client/src/i18n/locales/en-US.ts b/client/src/i18n/locales/en-US.ts index d49aceb..0abb5fa 100644 --- a/client/src/i18n/locales/en-US.ts +++ b/client/src/i18n/locales/en-US.ts @@ -276,6 +276,7 @@ export default { TA_RECORD: 'TA record', MESSAGE_NOTIFICATION: 'Message notification', MANUAL_REVIEW: 'Manual review', + FALLBACK_REVIEW: 'Manual review', }, taskSubtype: { NEW_BOOKING: 'New booking', diff --git a/client/src/i18n/locales/th-TH.ts b/client/src/i18n/locales/th-TH.ts index a39a670..13fc92a 100644 --- a/client/src/i18n/locales/th-TH.ts +++ b/client/src/i18n/locales/th-TH.ts @@ -276,6 +276,7 @@ export default { TA_RECORD: 'ข้อมูลบริษัททัวร์', MESSAGE_NOTIFICATION: 'แจ้งเตือนข้อความ', MANUAL_REVIEW: 'ตรวจสอบด้วยคน', + FALLBACK_REVIEW: 'ตรวจสอบด้วยคน', }, taskSubtype: { NEW_BOOKING: 'จองใหม่', diff --git a/client/src/i18n/locales/zh-CN.ts b/client/src/i18n/locales/zh-CN.ts index 1ac763c..c5e60f0 100644 --- a/client/src/i18n/locales/zh-CN.ts +++ b/client/src/i18n/locales/zh-CN.ts @@ -276,6 +276,7 @@ export default { TA_RECORD: '旅行社记录', MESSAGE_NOTIFICATION: '消息通知', MANUAL_REVIEW: '人工复核', + FALLBACK_REVIEW: '人工复核', }, taskSubtype: { NEW_BOOKING: '新预订', diff --git a/client/src/tests/reservationTaskDetailPanel.spec.ts b/client/src/tests/reservationTaskDetailPanel.spec.ts index c226403..4881781 100644 --- a/client/src/tests/reservationTaskDetailPanel.spec.ts +++ b/client/src/tests/reservationTaskDetailPanel.spec.ts @@ -394,7 +394,7 @@ describe('ReservationTaskDetailPanel', () => { .mockResolvedValueOnce( createTaskDetail({ system_task_type: 'MANUAL_REVIEW', - task_card_type: 'MANUAL_REVIEW', + task_card_type: 'FALLBACK_REVIEW', }), ) .mockResolvedValueOnce( @@ -415,6 +415,7 @@ describe('ReservationTaskDetailPanel', () => { const wrapper = await mountPanel() expect(wrapper.text()).toContain('人工转换') + expect(wrapper.text()).not.toContain('未知任务类型') await wrapper.find('select[name="manual_target_task_type"]').setValue('NEW_BOOKING') await wrapper.find('textarea[name="manual_conversion_reason"]').setValue('识别为新预订') @@ -436,7 +437,7 @@ describe('ReservationTaskDetailPanel', () => { vi.mocked(service.fetchReservationTaskDetail).mockResolvedValue( createTaskDetail({ system_task_type: 'MANUAL_REVIEW', - task_card_type: 'MANUAL_REVIEW', + task_card_type: 'FALLBACK_REVIEW', }), ) vi.mocked(service.fetchReservationOrders).mockResolvedValue( diff --git a/client/src/types/reservation.ts b/client/src/types/reservation.ts index 7e34e6f..b19fba6 100644 --- a/client/src/types/reservation.ts +++ b/client/src/types/reservation.ts @@ -23,6 +23,7 @@ export type ReservationTaskCardType = | 'TA_RECORD' | 'MESSAGE_NOTIFICATION' | 'MANUAL_REVIEW' + | 'FALLBACK_REVIEW' export interface ReservationPageResult { page_num: number