feat: 全店概览新增商品销量 Top10 榜单,移除冗余的税后盈亏字段

- ShopOverviewStatisticsVO:移除 totalProfitAfterTax,新增 productSalesTop10(按单量排序的销量 Top10 列表)
- ShopOverviewStatisticsServiceImpl:新增 fillProductSalesTop10(),从商品横向汇总中按单量取 Top10
- 前端 types.vo.ts:同步更新字段替换
- 前端:移除 FinancialPanel.vue,新增 ProductSalesTop10Panel.vue 商品销量榜单组件
This commit is contained in:
小蟑螂
2026-05-07 00:20:25 +08:00
parent ecc587197a
commit 13af3223e7
6 changed files with 152 additions and 88 deletions
@@ -91,8 +91,8 @@ export namespace ShopVO {
refundAmount?: number;
/** 店铺税前盈亏(扣销售额税额前) */
totalProfitBeforeTax?: number;
/** 总税后盈亏 */
totalProfitAfterTax?: number;
/** 各商品按单量排序的销量 Top10 */
productSalesTop10?: ProductSalesRankItem[];
/** 销售额趋势分析 */
salesAmountTrend?: TrendData;
/** 单量趋势分析 */
@@ -103,6 +103,15 @@ export namespace ShopVO {
categoryOverview?: CategoryOverview;
}
/** 商品销量排行项(店铺概览 Top10) */
export interface ProductSalesRankItem {
productId?: number;
productName?: string;
productCode?: string;
orderCount?: number;
salesAmount?: number;
}
/** 商品汇总数据 */
export interface ProductComparison {
/** 商品ID */