mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 12:29:19 +08:00
feat(store-overview): 全店大盘新增销售额与单量趋势平滑曲线
- CompanyOverviewVO 新增 TrendData / TrendDataItem 结构及 salesAmountTrend / orderCountTrend 字段 - CompanyOverviewServiceImpl 新增按日汇总销售额和单量的趋势计算逻辑 - ShopCharts.vue 重构:左侧替换为趋势平滑曲线(双Y轴),右侧保留店铺销售贡献排行柱状图,移除店铺经营健康度散点图 - 前端类型定义同步更新
This commit is contained in:
@@ -23,6 +23,10 @@ export namespace CompanyOverviewVO {
|
||||
shopSalesRatios?: ShopSalesRatio[];
|
||||
/** 店铺效率象限(ROI vs 净利) */
|
||||
shopEfficiencyQuadrants?: ShopEfficiencyQuadrant[];
|
||||
/** 销售额趋势分析 */
|
||||
salesAmountTrend?: TrendData;
|
||||
/** 单量趋势分析 */
|
||||
orderCountTrend?: TrendData;
|
||||
/** 多店铺数据横向汇总 */
|
||||
shopComparisons?: ShopOverview;
|
||||
/** 多品类数据横向汇总 */
|
||||
@@ -43,6 +47,22 @@ export namespace CompanyOverviewVO {
|
||||
salesAmountAchievementRate?: number;
|
||||
}
|
||||
|
||||
/** 趋势数据 */
|
||||
export interface TrendData {
|
||||
/** 时间范围的总值 */
|
||||
total?: number;
|
||||
/** 每日数据列表 */
|
||||
dailyDataList?: TrendDataItem[];
|
||||
}
|
||||
|
||||
/** 趋势数据项 */
|
||||
export interface TrendDataItem {
|
||||
/** 日期 */
|
||||
date: string;
|
||||
/** 对应的值 */
|
||||
value: number;
|
||||
}
|
||||
|
||||
/** 店铺销售占比 */
|
||||
export interface ShopSalesRatio {
|
||||
/** 店铺ID */
|
||||
|
||||
Reference in New Issue
Block a user