接入前端P0页面真实接口

This commit is contained in:
andy committed 2026-07-08 16:20:06 +08:00
1 parent 5c5b8e33b0
commit 66a613d6cd
45 files changed
+8719

No files matched your search

@@ -0,0 +1,110 @@
<template>
<div class="task-queue">
<button
v-for="task in items"
:key="task.task_id"
class="task-row"
:class="{ 'task-row--active': task.task_id === activeTaskId }"
type="button"
@click="$emit('openTask', task.task_id)"
>
<span class="task-row__index">{{ task.queue_sequence ?? '-' }}</span>
<span class="task-row__main">
<strong>{{ task.card_name ?? task.task_type }}</strong>
<small>{{ task.task_type }} / {{ task.task_subtype ?? '-' }}</small>
<em v-if="!task.source_message_id || !task.external_conversation_id">
{{ t('common.endpointMissing') }}
</em>
</span>
<ReservationStatusBadge :status="task.task_status" />
</button>
</div>
</template>
<script setup lang="ts">
import { useI18n } from 'vue-i18n'
import ReservationStatusBadge from '@/components/reservation/ReservationStatusBadge.vue'
import type { ReservationOrderTaskTimelineItem } from '@/types/reservation'
defineProps<{
items: ReservationOrderTaskTimelineItem[]
activeTaskId: string
}>()
defineEmits<{
openTask: [taskId: string]
}>()
const { t } = useI18n()
</script>
<style scoped>
.task-queue {
display: grid;
gap: 8px;
}
.task-row {
display: grid;
grid-template-columns: 34px minmax(0, 1fr) auto;
gap: 10px;
align-items: center;
width: 100%;
border: 1px solid var(--th-color-slate-200);
border-radius: var(--th-radius-md);
background: var(--th-color-white);
color: inherit;
cursor: pointer;
padding: 10px;
text-align: left;
}
.task-row--active {
border-color: var(--th-color-blue-600);
box-shadow: 0 0 0 1px var(--th-color-blue-600);
}
.task-row__index {
display: inline-flex;
width: 28px;
height: 28px;
align-items: center;
justify-content: center;
border-radius: 999px;
background: var(--th-color-blue-100);
color: var(--th-color-blue-600);
font-size: 12px;
font-weight: 800;
}
.task-row__main {
display: grid;
min-width: 0;
gap: 3px;
}
.task-row__main strong,
.task-row__main small {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.task-row__main strong {
color: var(--th-color-slate-900);
font-size: 13px;
}
.task-row__main small {
color: var(--th-color-slate-500);
font-size: 12px;
}
.task-row__main em {
color: var(--th-color-slate-500);
font-size: 11px;
font-style: normal;
font-weight: 800;
}
</style>