This commit is contained in:
Your Name
2026-08-13 16:37:37 +08:00
parent cbe71905c0
commit 21790e35f4
11 changed files with 1708 additions and 434 deletions
@@ -321,6 +321,7 @@ const query = reactive<FirstVisitDoctorDashboardParams>({
const customDateRange = ref<string[]>([])
const timeOptions = [
{ label: '今日', value: 'today' },
{ label: '昨天', value: 'yesterday' },
{ label: '本周', value: 'week' },
{ label: '本月', value: 'month' },
{ label: '自定义', value: 'custom' }
@@ -350,7 +350,7 @@ const ProgressPanel = defineAsyncComponent(() => import('./components/ProgressPa
const PaibanPanel = defineAsyncComponent(() => import('./components/PaibanPanel.vue'))
type StatusFilter = '' | 'unbooked' | 'pending_interview' | 'completed' | 'missed'
type DateType = 'all' | 'today' | 'tomorrow' | 'day_after' | 'last7' | 'last30' | 'custom'
type DateType = 'all' | 'yesterday' | 'today' | 'tomorrow' | 'day_after' | 'last7' | 'last30' | 'custom'
const router = useRouter()
const userStore = useUserStore()
@@ -401,6 +401,7 @@ const statusOptions: Array<{ label: string; value: StatusFilter }> = [
const dateOptions: Array<{ label: string; value: DateType }> = [
{ label: '全部时间', value: 'all' },
{ label: '昨天', value: 'yesterday' },
{ label: '今日预约', value: 'today' },
{ label: '明日', value: 'tomorrow' },
{ label: '后天', value: 'day_after' },
@@ -466,6 +467,9 @@ function selectDateType(type: DateType) {
if (type === 'all') {
formData.start_date = ''
formData.end_date = ''
} else if (type === 'yesterday') {
formData.start_date = today.subtract(1, 'day').format('YYYY-MM-DD')
formData.end_date = formData.start_date
} else if (type === 'today') {
formData.start_date = today.format('YYYY-MM-DD')
formData.end_date = formData.start_date
@@ -325,6 +325,7 @@ const dashboard = reactive(emptyDashboard())
const query = reactive<FirstVisitRegistrationStatsParams>({ time_type: 'today' })
const timeOptions = [
{ label: '今日', value: 'today' },
{ label: '昨天', value: 'yesterday' },
{ label: '本周', value: 'week' },
{ label: '本月', value: 'month' }
]