mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 16:29:19 +08:00
feat(ecom-dmb): 新增平台维度汇总功能
后端: - CompanyOverviewVO 新增 platformSummary 平台维度汇总数据 - CompanyOverviewServiceImpl 新增 calculatePlatformSummary() 方法,按平台聚合数据 - PlatformExportDTO 导出参数 DTO - ExportService/ExportServiceImpl 新增 exportPlatformOverview 导出方法 - ExportController 新增 POST /ec/platform-overview/export 接口 前端: - PlatformSummaryCard 组件显示各平台多维度经营明细对比 - 支持指定平台导出和导出全部两种模式 - 组件优先使用动态数据,无数据时降级到 mock 数据 - types.vo.ts 新增 PlatformSummary 类型定义 - index.vue 集成平台导出功能
This commit is contained in:
@@ -27,6 +27,8 @@ export namespace CompanyOverviewVO {
|
||||
shopComparisons?: ShopComparison[];
|
||||
/** 多品类数据横向对比 */
|
||||
categoryComparisons?: CategoryComparison[];
|
||||
/** 平台维度汇总 */
|
||||
platformSummary?: PlatformSummary[];
|
||||
/** 汇总ROI */
|
||||
totalROI?: number;
|
||||
/** 总税后盈亏 */
|
||||
@@ -148,4 +150,48 @@ export namespace CompanyOverviewVO {
|
||||
/** ROI */
|
||||
roi?: number;
|
||||
}
|
||||
|
||||
/** 平台维度汇总 */
|
||||
export interface PlatformSummary {
|
||||
/** 平台ID */
|
||||
platformId: number;
|
||||
/** 平台名称 */
|
||||
platformName: string;
|
||||
/** 目标单量 */
|
||||
targetOrderCount?: number;
|
||||
/** 单量达成率 */
|
||||
orderCountAchievementRate?: number;
|
||||
/** 目标销售额 */
|
||||
targetAmount?: number;
|
||||
/** 销售额达成率 */
|
||||
salesAmountAchievementRate?: number;
|
||||
/** 销售额 */
|
||||
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;
|
||||
/** ROI */
|
||||
roi?: number;
|
||||
/** 税后盈亏 */
|
||||
profitAfterTax?: number;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user