This commit is contained in:
2026-04-21 17:24:51 +08:00
parent d47ef8d680
commit 4f45ecbd63
13 changed files with 675 additions and 105 deletions
+43 -5
View File
@@ -326,6 +326,7 @@ const summaryCards: MetricCard[] = [
{ key: 'completed_order_count', label: '接诊诊单', type: 'count' },
{ key: 'completed_order_amount', label: '诊单金额', type: 'money' },
{ key: 'account_cost', label: '账户消耗', type: 'money' },
{ key: 'cash_cost', label: '现金成本', type: 'money' },
{ key: 'roi', label: 'ROI', type: 'ratio' }
]
@@ -346,7 +347,6 @@ const tableColumns: MetricColumn[] = [
{ key: 'interview_receive_rate', label: '面诊接诊率', type: 'percent', minWidth: 130 },
{ key: 'open_receive_rate', label: '开口接诊率', type: 'percent', placeholder: true, minWidth: 120 },
{ key: 'avg_unit_price', label: '平均单价', type: 'money', minWidth: 110 },
{ key: 'account_cost', label: '账户消耗', type: 'money', minWidth: 120 },
{ key: 'cash_cost', label: '现金成本', type: 'money', minWidth: 110 },
{ key: 'roi', label: 'ROI', type: 'ratio', minWidth: 90 }
]
@@ -421,12 +421,31 @@ const rankingChartOption = computed(() => ({
const amountPieOption = computed(() => ({
tooltip: { trigger: 'item' },
legend: { bottom: 0 },
legend: {
bottom: 0,
type: 'scroll',
pageIconColor: '#409eff',
pageTextStyle: {
color: '#909399',
},
},
series: [
{
name: '诊单金额',
type: 'pie',
radius: ['42%', '72%'],
radius: ['42%', '70%'],
center: ['50%', '42%'],
avoidLabelOverlap: true,
minAngle: 3,
label: {
show: true,
formatter: '{b}',
overflow: 'truncate',
width: 90,
},
labelLayout: {
hideOverlap: true,
},
data: overview.charts.amount_share
}
]
@@ -434,12 +453,31 @@ const amountPieOption = computed(() => ({
const fanPieOption = computed(() => ({
tooltip: { trigger: 'item' },
legend: { bottom: 0 },
legend: {
bottom: 0,
type: 'scroll',
pageIconColor: '#409eff',
pageTextStyle: {
color: '#909399',
},
},
series: [
{
name: '加粉数',
type: 'pie',
radius: ['42%', '72%'],
radius: ['42%', '70%'],
center: ['50%', '42%'],
avoidLabelOverlap: true,
minAngle: 3,
label: {
show: true,
formatter: '{b}',
overflow: 'truncate',
width: 90,
},
labelLayout: {
hideOverlap: true,
},
data: overview.charts.fan_share
}
]