feat(workbench): 新增区间对比 Tab,支持双日期段店铺汇总对比

This commit is contained in:
小蟑螂
2026-05-15 02:34:47 +08:00
parent f350169609
commit 4d1c9e5e8d
8 changed files with 932 additions and 0 deletions
@@ -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;
}
}