mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 19:09:19 +08:00
feat(shop-overview): 添加店铺运营数据表格展示及导出功能
- 后端: ShopOverviewStatisticsVO 新增 GMV/订单/转化率等 15 个指标字段 - 后端: ShopOverviewStatisticsServiceImpl 支持按店铺 ID 或全量查询聚合数据 - 后端: ExportController 支持按时间范围和店铺 ID 导出 Excel - 前端: 店铺总览表格页展示 15 列核心运营指标,列宽固定,tbody 独立滚动 - 前端: 新增导出功能,支持按时间和店铺筛选导出 Excel
This commit is contained in:
@@ -149,6 +149,8 @@ export namespace ShopVO {
|
||||
orderCountTrend?: TrendData;
|
||||
/** 多商品数据横向对比 */
|
||||
productComparisons?: ProductComparison[];
|
||||
/** 品类多维度数据对比 */
|
||||
categoryComparisons?: CategoryComparison[];
|
||||
}
|
||||
|
||||
/** 商品对比数据 */
|
||||
@@ -189,6 +191,42 @@ export namespace ShopVO {
|
||||
roi?: number;
|
||||
}
|
||||
|
||||
/** 品类对比数据 */
|
||||
export interface CategoryComparison {
|
||||
/** 品类ID */
|
||||
categoryId: number;
|
||||
/** 品类名称 */
|
||||
categoryName: string;
|
||||
/** 销售额 */
|
||||
salesAmount: number;
|
||||
/** 单量 */
|
||||
orderCount?: number;
|
||||
/** 客单价 */
|
||||
averageOrderValue?: number;
|
||||
/** 商品成本 */
|
||||
productCost?: number;
|
||||
/** 运费 */
|
||||
shippingCost?: number;
|
||||
/** 其他成本 */
|
||||
otherCost?: number;
|
||||
/** 退款金额 */
|
||||
refundAmount?: number;
|
||||
/** 推广费 */
|
||||
totalPromotionFee?: number;
|
||||
/** 刷单费用 */
|
||||
brushFee?: number;
|
||||
/** 费比 */
|
||||
feeRatio?: number;
|
||||
/** 税前盈亏 */
|
||||
totalProfitBeforeTax?: number;
|
||||
/** 销售额4%税额 */
|
||||
salesTaxAmount?: number;
|
||||
/** 税后盈亏 */
|
||||
profitAfterTax?: number;
|
||||
/** ROI */
|
||||
roi?: number;
|
||||
}
|
||||
|
||||
/** 趋势数据 */
|
||||
export interface TrendData {
|
||||
/** 时间范围的总值 */
|
||||
|
||||
Reference in New Issue
Block a user