feat(工作台): 经营概览饼图展示各平台实际销售额占比

- 接口 finance.costStructure 改为 platformSalesShare,按平台聚合实际销售额及占比
- 饼图标题与交互改为「各平台实际销售额分布」,前端类型 PieSlice
- 汇总表组件 ShopComparisonTable/CategoryComparisonTable 重命名为 ShopSummaryTable/CategorySummaryTable
This commit is contained in:
小蟑螂
2026-05-23 23:13:43 +08:00
parent 34f2f83a5e
commit dc2042ffd5
10 changed files with 83 additions and 51 deletions
@@ -44,17 +44,20 @@ export namespace WorkbenchVO {
refundYuan?: number;
}
export interface CostSlice {
/** 饼图扇区(平台销售额占比等) */
export interface PieSlice {
name: string;
/** 金额(元,两位小数) */
value?: number;
/** 占实际销售额合计的比例 % */
pct?: number;
}
export interface FinancePanel {
kpis: KpiItem[];
gmvTrend: TrendPoint[];
costStructure: CostSlice[];
/** 各平台实际销售额占比 */
platformSalesShare: PieSlice[];
/** 环比对比期起(yyyy-MM-dd) */
momCompareDateStart?: string | null;
momCompareDateEnd?: string | null;