82 lines
1.8 KiB
JSON
82 lines
1.8 KiB
JSON
{
|
|
"name": "funnel_analysis",
|
|
"title": "销售漏斗分析",
|
|
"type": "page",
|
|
"components": [
|
|
{
|
|
"type": "container",
|
|
"name": "filters",
|
|
"title": "筛选条件",
|
|
"components": [
|
|
{
|
|
"type": "select",
|
|
"name": "region",
|
|
"label": "区域",
|
|
"options": []
|
|
},
|
|
{
|
|
"type": "select",
|
|
"name": "owner_id",
|
|
"label": "销售负责人",
|
|
"options": []
|
|
},
|
|
{
|
|
"type": "date_range",
|
|
"name": "date_range",
|
|
"label": "时间范围"
|
|
},
|
|
{
|
|
"type": "button",
|
|
"name": "search",
|
|
"label": "查询",
|
|
"action": "refresh_funnel_data"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "chart",
|
|
"name": "funnel_chart",
|
|
"title": "销售漏斗图",
|
|
"chart_type": "funnel",
|
|
"data_source": "funnel_analysis_api",
|
|
"config": {
|
|
"value_field": "total_amount",
|
|
"category_field": "sales_stage",
|
|
"show_percentage": true
|
|
}
|
|
},
|
|
{
|
|
"type": "chart",
|
|
"name": "amount_pie",
|
|
"title": "各阶段金额占比",
|
|
"chart_type": "pie",
|
|
"data_source": "funnel_analysis_api",
|
|
"config": {
|
|
"value_field": "total_amount",
|
|
"category_field": "sales_stage"
|
|
}
|
|
},
|
|
{
|
|
"type": "card",
|
|
"name": "summary_stats",
|
|
"title": "汇总统计",
|
|
"components": [
|
|
{
|
|
"type": "statistic",
|
|
"name": "total_opportunities",
|
|
"label": "商机总数"
|
|
},
|
|
{
|
|
"type": "statistic",
|
|
"name": "total_amount",
|
|
"label": "预估总金额"
|
|
},
|
|
{
|
|
"type": "statistic",
|
|
"name": "predicted_revenue",
|
|
"label": "预测成交金额"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |