feat(home): 添加处方统计数据功能
- 在 HomeStatisticsDto 中新增今日处方、昨日处方和处方趋势字段 - 实现处方数量查询逻辑,支持按日期和医生过滤 - 计算处方数据的日环比变化率 - 更新前端界面以显示处方统计信息 - 配置处方相关的路由映射 - 修正数据绑定逻辑以正确关联处方统计数据
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<div class="home-container">
|
||||
<!-- 顶部欢迎区域 -->
|
||||
<div class="welcome-section">
|
||||
@@ -319,7 +319,10 @@ const statisticsData = ref({
|
||||
todayAppointments: 0,
|
||||
yesterdayAppointments: 0,
|
||||
appointmentTrend: 0,
|
||||
pendingApprovals: 0
|
||||
pendingApprovals: 0,
|
||||
todayPrescriptions: 0,
|
||||
yesterdayPrescriptions: 0,
|
||||
prescriptionTrend: 0
|
||||
})
|
||||
|
||||
// 不同角色的统计数据配置
|
||||
@@ -724,8 +727,8 @@ const currentStats = computed(() => {
|
||||
statWith.value = statisticsData.value.pendingEmr;
|
||||
break;
|
||||
case 'prescriptions':
|
||||
statWith.value = statisticsData.value.todayAppointments;
|
||||
statWith.trend = statisticsData.value.appointmentTrend;
|
||||
statWith.value = statisticsData.value.todayPrescriptions;
|
||||
statWith.trend = statisticsData.value.prescriptionTrend;
|
||||
break;
|
||||
case 'wardPatients':
|
||||
statWith.value = statisticsData.value.totalPatients;
|
||||
@@ -743,8 +746,8 @@ const currentStats = computed(() => {
|
||||
statWith.trend = statisticsData.value.appointmentTrend;
|
||||
break;
|
||||
case 'todayPrescriptions':
|
||||
statWith.value = statisticsData.value.todayAppointments;
|
||||
statWith.trend = statisticsData.value.appointmentTrend;
|
||||
statWith.value = statisticsData.value.todayPrescriptions;
|
||||
statWith.trend = statisticsData.value.prescriptionTrend;
|
||||
break;
|
||||
case 'pendingReview':
|
||||
statWith.value = statisticsData.value.pendingApprovals;
|
||||
@@ -792,7 +795,9 @@ const handleStatClick = (stat) => {
|
||||
todayAppointments: '/doctorstation/today-outpatient',
|
||||
pendingApprovals: '/ybmanagement/ePrescribing',
|
||||
pendingReview: '/ybmanagement/ePrescribing',
|
||||
pendingEmr: '/pending-emr'
|
||||
pendingEmr: '/pending-emr',
|
||||
prescriptions: '/doctorstation',
|
||||
todayPrescriptions: '/pharmacyManagement/westernmedicine'
|
||||
}
|
||||
const path = routeMap[stat.key]
|
||||
if (!path) return
|
||||
|
||||
Reference in New Issue
Block a user