mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 01:09:19 +08:00
feat: 全店概览新增商品销量 Top10 榜单,移除冗余的税后盈亏字段
- ShopOverviewStatisticsVO:移除 totalProfitAfterTax,新增 productSalesTop10(按单量排序的销量 Top10 列表) - ShopOverviewStatisticsServiceImpl:新增 fillProductSalesTop10(),从商品横向汇总中按单量取 Top10 - 前端 types.vo.ts:同步更新字段替换 - 前端:移除 FinancialPanel.vue,新增 ProductSalesTop10Panel.vue 商品销量榜单组件
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user