关键指标

$total_customers, 'new_customers' => $new_customers, 'avg_customer_value' => $avg_customer_value, 'retention_rate' => $retention_data['retention_rate'], 'retained_count' => $retention_data['retained_count'], 'total_previous' => $retention_data['total_previous'], 'conversion_rate' => $conversion_data['conversion_rate'], 'customers_with_orders' => $conversion_data['customers_with_orders'] ]; // 渲染关键指标卡片 renderKeyMetricsCard($kpi_data); ?>
fetch_assoc()) { $type_labels[] = $row['businessType']; $type_data[] = $row['customer_count']; } renderCustomerTypeChart($type_labels, $type_data); ?>
fetch_assoc()) { $stage_labels[] = $row['stage_name']; $stage_data[] = $row['customer_count']; } renderDealStageChart($stage_labels, $stage_data); ?>
fetch_assoc()) { $growth_labels[] = $row['month']; $growth_data[] = $row['new_customers']; } renderCustomerGrowthChart($growth_labels, $growth_data); ?>