103 lines
2.7 KiB
JSON
103 lines
2.7 KiB
JSON
{
|
|
"name": "revenue_prediction",
|
|
"title": "收入预测",
|
|
"type": "page",
|
|
"components": [
|
|
{
|
|
"type": "container",
|
|
"name": "filters",
|
|
"title": "预测条件",
|
|
"components": [
|
|
{
|
|
"type": "select",
|
|
"name": "owner_id",
|
|
"label": "销售负责人",
|
|
"options": []
|
|
},
|
|
{
|
|
"type": "select",
|
|
"name": "region",
|
|
"label": "区域",
|
|
"options": []
|
|
},
|
|
{
|
|
"type": "select",
|
|
"name": "period",
|
|
"label": "历史数据周期",
|
|
"options": [
|
|
{"value": "last_3_months", "text": "最近3个月"},
|
|
{"value": "last_6_months", "text": "最近6个月"},
|
|
{"value": "last_year", "text": "最近1年"}
|
|
]
|
|
},
|
|
{
|
|
"type": "button",
|
|
"name": "predict",
|
|
"label": "生成预测",
|
|
"action": "run_prediction"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "card",
|
|
"name": "prediction_results",
|
|
"title": "预测结果",
|
|
"components": [
|
|
{
|
|
"type": "statistic",
|
|
"name": "final_prediction",
|
|
"label": "最终预测收入",
|
|
"format": "currency"
|
|
},
|
|
{
|
|
"type": "statistic",
|
|
"name": "stage_based_prediction",
|
|
"label": "阶段概率预测",
|
|
"format": "currency"
|
|
},
|
|
{
|
|
"type": "statistic",
|
|
"name": "historical_based_prediction",
|
|
"label": "历史转化率预测",
|
|
"format": "currency"
|
|
},
|
|
{
|
|
"type": "progress",
|
|
"name": "confidence_level",
|
|
"label": "预测置信度",
|
|
"value_field": "confidence_level",
|
|
"config": {
|
|
"high": 90,
|
|
"medium": 70,
|
|
"low": 50
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "chart",
|
|
"name": "historical_conversion",
|
|
"title": "历史转化率趋势",
|
|
"chart_type": "line",
|
|
"data_source": "conversion_rate_analysis_api",
|
|
"config": {
|
|
"x_field": "month",
|
|
"y_field": "conversion_rate",
|
|
"show_markers": true
|
|
}
|
|
},
|
|
{
|
|
"type": "table",
|
|
"name": "opportunity_details",
|
|
"title": "商机明细",
|
|
"data_source": "active_opportunities_api",
|
|
"columns": [
|
|
{"field": "customer_name", "title": "客户名称"},
|
|
{"field": "estimated_amount", "title": "预估金额", "format": "currency"},
|
|
{"field": "sales_stage", "title": "销售阶段"},
|
|
{"field": "probability", "title": "成交概率", "format": "percentage"},
|
|
{"field": "expected_close_date", "title": "预计成交时间"}
|
|
]
|
|
}
|
|
]
|
|
} |