修复人工复核任务卡类型映射
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -276,6 +276,7 @@ export default {
|
||||
TA_RECORD: 'ข้อมูลบริษัททัวร์',
|
||||
MESSAGE_NOTIFICATION: 'แจ้งเตือนข้อความ',
|
||||
MANUAL_REVIEW: 'ตรวจสอบด้วยคน',
|
||||
FALLBACK_REVIEW: 'ตรวจสอบด้วยคน',
|
||||
},
|
||||
taskSubtype: {
|
||||
NEW_BOOKING: 'จองใหม่',
|
||||
|
||||
@@ -276,6 +276,7 @@ export default {
|
||||
TA_RECORD: '旅行社记录',
|
||||
MESSAGE_NOTIFICATION: '消息通知',
|
||||
MANUAL_REVIEW: '人工复核',
|
||||
FALLBACK_REVIEW: '人工复核',
|
||||
},
|
||||
taskSubtype: {
|
||||
NEW_BOOKING: '新预订',
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -23,6 +23,7 @@ export type ReservationTaskCardType =
|
||||
| 'TA_RECORD'
|
||||
| 'MESSAGE_NOTIFICATION'
|
||||
| 'MANUAL_REVIEW'
|
||||
| 'FALLBACK_REVIEW'
|
||||
|
||||
export interface ReservationPageResult {
|
||||
page_num: number
|
||||
|
||||
Reference in New Issue
Block a user