feat(statistics): 添加统计分析模块:天医币、实物、培训班。
- 新增天医币、实物和培训班报表页面 - 添加统计相关API接口 - 配置统计分析路由 - 优化SheetFooter和DialogFooter组件样式
This commit is contained in:
33
apps/finance/src/api/statistics/index.ts
Normal file
33
apps/finance/src/api/statistics/index.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
export const statisticsApi = {
|
||||
/**
|
||||
* 获取天医币报表列表
|
||||
*/
|
||||
getReportTianyibi: (data: { month?: string; year: number }) => {
|
||||
return requestClient.post('common/statistics/pointStatistics', data);
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取实物报表列表
|
||||
*/
|
||||
getPhysicalStatistics: (data: { month?: string; year: number }) => {
|
||||
return requestClient.post('common/statistics/physicalStatistics', data);
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取培训班报表列表
|
||||
*/
|
||||
getTrainingClassStatistics: (data: { month?: string; year: number }) => {
|
||||
return requestClient.post('common/statistics/trainingClassStatistics', data);
|
||||
},
|
||||
|
||||
/**
|
||||
* 下载天医币报表
|
||||
*/
|
||||
downloadReportTianyibi: (data: { date: string }) => {
|
||||
return requestClient.post('/common/import/getImportFile', data, {
|
||||
responseType: 'blob',
|
||||
});
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user