mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 15:49:19 +08:00
feat(workbench): 新增区间对比 Tab,支持双日期段店铺汇总对比
This commit is contained in:
@@ -6,3 +6,11 @@ import { requestClient } from '#/api/request';
|
||||
export async function getWorkbenchSummaryApi(data: WorkbenchDTO.Query) {
|
||||
return requestClient.post<WorkbenchVO.Info>('/ec/workbench/summary', data);
|
||||
}
|
||||
|
||||
/** 区间对比:单段日期,返回店铺汇总「合计」行(轻量) */
|
||||
export async function getWorkbenchPeriodCompareSliceApi(data: WorkbenchDTO.Query) {
|
||||
return requestClient.post<WorkbenchVO.PeriodCompareSlice>(
|
||||
'/ec/workbench/period-compare/slice',
|
||||
data,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -74,4 +74,11 @@ export namespace WorkbenchVO {
|
||||
/** 底部四表:与全店概览同源(税额、ROI、推广/刷单、目标等) */
|
||||
summaryTables?: CompanyOverviewVO.WorkbenchTableBundle | null;
|
||||
}
|
||||
|
||||
/** 区间对比:单段日期对应的店铺汇总「合计」行(与 /period-compare/slice 对齐) */
|
||||
export interface PeriodCompareSlice {
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
total: CompanyOverviewVO.ShopSummary;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user