项目初始化
This commit is contained in:
62
web-vue/packages/erp/api/erp/screen.ts
Normal file
62
web-vue/packages/erp/api/erp/screen.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* 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 const ErpMonthChart = (params?: ErpTransactionFlow | any) =>
|
||||
defHttp.get<ChartDataItem[]>({ url: adminPath + '/erp/screen/getErpMonthChart', params });
|
||||
|
||||
export const CategoryChart = (params?: ErpTransactionFlow | any) =>
|
||||
defHttp.get<ChartDataItem[]>({ url: adminPath + '/erp/screen/getCategoryChart', params });
|
||||
|
||||
export const ErpAccountChart = (params?: ErpTransactionFlow | any) =>
|
||||
defHttp.get<ChartDataItem[]>({ url: adminPath + '/erp/screen/getErpAccountChart', params });
|
||||
Reference in New Issue
Block a user