feature/huangting #3

Merged
huangting merged 4 commits from feature/huangting into develop 2026-07-13 14:21:25 +08:00
5 changed files with 21 additions and 0 deletions
Showing only changes of commit 4cb0119e32 - Show all commits

View File

@@ -259,6 +259,7 @@ export default {
tableTitle: 'Task data',
totalSuffix: 'tasks',
noSourceSubject: 'No source subject',
sourceReceivedAt: 'Source time',
canProcess: 'Processable',
cannotProcess: 'Not processable',
queueParticipation: 'Queue participation',

View File

@@ -259,6 +259,7 @@ export default {
tableTitle: 'ข้อมูลงาน',
totalSuffix: 'งาน',
noSourceSubject: 'ไม่มีหัวข้ออีเมลต้นทาง',
sourceReceivedAt: 'เวลารับอีเมล',
canProcess: 'ประมวลผลได้',
cannotProcess: 'ประมวลผลไม่ได้',
queueParticipation: 'อยู่ในคิวหรือไม่',

View File

@@ -259,6 +259,7 @@ export default {
tableTitle: '任务数据',
totalSuffix: '条任务',
noSourceSubject: '暂无来源主题',
sourceReceivedAt: '来源时间',
canProcess: '可处理',
cannotProcess: '不可处理',
queueParticipation: '是否参与队列',

View File

@@ -494,6 +494,22 @@ describe('reservation P0 views', () => {
expect(wrapper.text()).not.toContain('NEW_BOOKING / NEW_BOOKING')
})
it('renders task source received time in the source email column', async () => {
const taskListResult = createTaskListResult('GRP-001', 'Booking Request')
taskListResult.items[0] = {
...taskListResult.items[0]!,
source_sender_summary: 'guest@example.test',
source_received_at: '2026-07-08T03:00:00Z',
}
vi.mocked(service.fetchReservationTaskList).mockResolvedValue(taskListResult)
const wrapper = await mountWithPlugins(ReservationTaskListView)
await vi.dynamicImportSettled()
expect(wrapper.text()).toContain('来源时间')
expect(wrapper.text()).toContain('2026-07-08 10:00:00')
})
it('filters source-message-only tasks with S10 and S99 subtypes', async () => {
vi.mocked(service.fetchReservationTaskList).mockResolvedValue(createSourceMessageOnlyTaskListResult('S10'))

View File

@@ -187,6 +187,7 @@
<td>
<span>{{ task.source_subject ?? t('taskList.noSourceSubject') }}</span>
<small>{{ task.source_sender_summary ?? task.source_message_id ?? '-' }}</small>
<small>{{ t('taskList.sourceReceivedAt') }}: {{ formatReservationDateTime(task.source_received_at) }}</small>
</td>
<td>
<span>{{ task.queue_sequence ?? '-' }}</span>
@@ -279,6 +280,7 @@ import {
formatReservationTaskRouteSummary,
isReservationReadonlyDiagnosticTask,
} from '@/utils/reservationDisplay'
import { formatReservationDateTime } from '@/utils/reservationFormat'
const { t } = useI18n()
const authStore = useAuthStore()