From a5a251a3f32182211d1fc9dd55883580a3992606 Mon Sep 17 00:00:00 2001 From: andy Date: Thu, 9 Jul 2026 19:29:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=BA=E5=B7=A5=E5=A4=8D?= =?UTF-8?q?=E6=A0=B8=E4=BB=BB=E5=8A=A1=E5=8D=A1=E7=B1=BB=E5=9E=8B=E6=98=A0?= =?UTF-8?q?=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/i18n/locales/en-US.ts | 1 + client/src/i18n/locales/th-TH.ts | 1 + client/src/i18n/locales/zh-CN.ts | 1 + client/src/tests/reservationTaskDetailPanel.spec.ts | 5 +++-- client/src/types/reservation.ts | 1 + 5 files changed, 7 insertions(+), 2 deletions(-) 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