From bb21825c162a5a019315c27768ef5f42f9f5d6a7 Mon Sep 17 00:00:00 2001 From: long <452591453@qq.com> Date: Thu, 28 May 2026 11:49:23 +0800 Subject: [PATCH] ADD total_open_rate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加开口率 --- admin/src/views/stats/self_input/index.vue | 4 ++++ server/app/adminapi/logic/stats/SelfInputLogic.php | 1 + 2 files changed, 5 insertions(+) diff --git a/admin/src/views/stats/self_input/index.vue b/admin/src/views/stats/self_input/index.vue index 349a4acc..843ca5ec 100644 --- a/admin/src/views/stats/self_input/index.vue +++ b/admin/src/views/stats/self_input/index.vue @@ -293,9 +293,12 @@ const summaryCards: MetricCard[] = [ { key: 'interview_count', label: '面诊', type: 'count' }, { key: 'order_amount', label: '订单金额', type: 'money' }, { key: 'account_cost', label: '账户消耗', type: 'money' }, + { key: 'total_open_rate', label: '总开口率', type: 'percent' }, { key: 'paid_appointment_rate', label: '付费挂号率', type: 'percent' }, + { key: 'open_appointment_rate', label: '开口挂号率', type: 'percent' }, { key: 'interview_rate', label: '面诊率', type: 'percent' }, { key: 'receive_rate', label: '接诊率', type: 'percent' }, + { key: 'open_receive_rate', label: '开口接诊率', type: 'percent' }, { key: 'interview_receive_rate', label: '面诊接诊率', type: 'percent' }, { key: 'avg_unit_price', label: '平均单价', type: 'money' }, { key: 'cash_cost', label: '现金成本', type: 'money' }, @@ -313,6 +316,7 @@ const tableColumns: MetricColumn[] = [ { key: 'completed_order_count', label: '接诊诊单', type: 'count' }, { key: 'order_amount', label: '订单金额', type: 'money', minWidth: 110 }, { key: 'account_cost', label: '账户消耗', type: 'money', minWidth: 110 }, + { key: 'total_open_rate', label: '总开口率', type: 'percent', minWidth: 100 }, { key: 'paid_appointment_rate', label: '付费挂号率', type: 'percent', minWidth: 110 }, { key: 'open_appointment_rate', label: '开口挂号率', type: 'percent', minWidth: 110 }, { key: 'interview_rate', label: '面诊率', type: 'percent', minWidth: 100 }, diff --git a/server/app/adminapi/logic/stats/SelfInputLogic.php b/server/app/adminapi/logic/stats/SelfInputLogic.php index 22fd11a3..fb912c2b 100644 --- a/server/app/adminapi/logic/stats/SelfInputLogic.php +++ b/server/app/adminapi/logic/stats/SelfInputLogic.php @@ -302,6 +302,7 @@ class SelfInputLogic extends BaseLogic $entity['appointment_total_count'] = $appointmentTotalCount; $entity['order_amount'] = $orderAmount; $entity['account_cost'] = $accountCost; + $entity['total_open_rate'] = self::percent($totalOpenCount, $addFansCount); $entity['paid_appointment_rate'] = self::percent($paidAppointmentCount, $addFansCount); $entity['open_appointment_rate'] = self::percent($paidAppointmentCount, $totalOpenCount); $entity['interview_rate'] = self::percent($interviewCount, $appointmentTotalCount);