mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 05:09:19 +08:00
- company-overview/apis.ts 新增导出 API - Dashboard 页面导出按钮绑定事件,支持当前日期范围导出 - 复用已有 exportByPost 工具函数
31 lines
657 B
TypeScript
31 lines
657 B
TypeScript
import type { CompanyOverviewDTO, CompanyOverviewVO } from './types';
|
|
|
|
import { requestClient } from '#/api/request';
|
|
|
|
/**
|
|
* 全店铺概览管理API
|
|
*/
|
|
|
|
/**
|
|
* 获取全店铺概览统计数据
|
|
*/
|
|
export async function getCompanyOverviewApi(data: CompanyOverviewDTO.Query) {
|
|
return requestClient.post<CompanyOverviewVO.Info>(
|
|
'/ec/company-overview/statistics',
|
|
data,
|
|
);
|
|
}
|
|
|
|
/**
|
|
* 导出公司概览Excel
|
|
*/
|
|
export async function exportCompanyOverviewApi(params: {
|
|
dateRange: string[];
|
|
shopIds?: number[];
|
|
exportType?: string;
|
|
}) {
|
|
return requestClient.post('/ec/company-overview/export', params, {
|
|
responseType: 'blob',
|
|
});
|
|
}
|