90 lines
3.5 KiB
TypeScript
90 lines
3.5 KiB
TypeScript
/**
|
|
* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
|
* No deletion without permission, or be held responsible to law.
|
|
* @author gaoxq
|
|
*/
|
|
import { defHttp } from '@jeesite/core/utils/http/axios';
|
|
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
|
import { BasicModel } from '@jeesite/core/api/model/baseModel';
|
|
|
|
const { adminPath } = useGlobSetting();
|
|
|
|
export interface ErpTransactionFlow extends BasicModel<ErpTransactionFlow> {
|
|
createTime?: string; // 记录时间
|
|
flowId?: string; // 流水
|
|
flowName: string; // 交易名称
|
|
flowType: string; // 交易类型
|
|
amount: number; // 交易金额
|
|
tradeTime: string; // 交易时间
|
|
accountId: string; // 交易账户
|
|
categoryId: string; // 交易分类
|
|
remark?: string; // 交易备注
|
|
updateTime?: string; // 更新时间
|
|
businessId: string; // 业务标识
|
|
yearDate: string; //年份
|
|
monthDate: string; //月份
|
|
}
|
|
|
|
|
|
export interface ChartDataItem extends BasicModel<ChartDataItem> {
|
|
itemCode: string; // 项目编号
|
|
soring: number; // 序号
|
|
axisName: string; // X轴名称
|
|
value01: string; // 指标01
|
|
value02: string; // 指标02
|
|
value03: string; // 指标03
|
|
value04: string; // 指标04
|
|
value05: string; // 指标05
|
|
value06: string; // 指标06
|
|
value07: string; // 指标07
|
|
value08: string; // 指标08
|
|
value09: string; // 指标09
|
|
value10: string; // 指标10
|
|
value11: string; // 指标11
|
|
value12: string; // 指标12
|
|
value13: string; // 指标13
|
|
value14: string; // 指标14
|
|
value15: string; // 指标15
|
|
bizKey: string; // 业务主键编号
|
|
indexSum: number; // 指标求和
|
|
indexAvg: number; // 指标平均
|
|
indexMax: number; // 指标最大
|
|
indexMin: number; // 指标最小
|
|
}
|
|
|
|
|
|
export interface ScreenTop extends BasicModel<ScreenTop> {
|
|
module: string; // 模块名称
|
|
title: string; // 说明描述
|
|
label?: string; // 名称
|
|
value?: number; // 数值
|
|
iconImg: string; // 图片路径
|
|
iconFilter?: string; // 图标颜色
|
|
sort: number; // 序号
|
|
}
|
|
|
|
export const ErpChartTop = (params?: ErpTransactionFlow | any) =>
|
|
defHttp.get<ScreenTop[]>({ url: adminPath + '/erp/screen/getErpChartTop', params });
|
|
|
|
export const ErpYearChart = (params?: ErpTransactionFlow | any) =>
|
|
defHttp.get<ChartDataItem[]>({ url: adminPath + '/erp/screen/getErpYearChart', params });
|
|
|
|
export const ErpMonthChart = (params?: ErpTransactionFlow | any) =>
|
|
defHttp.get<ChartDataItem[]>({ url: adminPath + '/erp/screen/getErpMonthChart', params });
|
|
|
|
export const ErpCategoryChart = (params?: ErpTransactionFlow | any) =>
|
|
defHttp.get<ChartDataItem[]>({ url: adminPath + '/erp/screen/getErpCategoryChart', params });
|
|
|
|
export const ErpAccountChart = (params?: ErpTransactionFlow | any) =>
|
|
defHttp.get<ChartDataItem[]>({ url: adminPath + '/erp/screen/getErpAccountChart', params });
|
|
|
|
export const ErpQuarterChart = (params?: ErpTransactionFlow | any) =>
|
|
defHttp.get<ChartDataItem[]>({ url: adminPath + '/erp/screen/getErpQuarterChart', params });
|
|
|
|
export const ErpAccountMonthChart = (params?: ErpTransactionFlow | any) =>
|
|
defHttp.get<ChartDataItem[]>({ url: adminPath + '/erp/screen/getErpAccountMonthChart', params });
|
|
|
|
export const ErpCategoryMonthChart = (params?: ErpTransactionFlow | any) =>
|
|
defHttp.get<ChartDataItem[]>({ url: adminPath + '/erp/screen/getErpCategoryMonthChart', params });
|
|
|