新增预警页面
This commit is contained in:
40
web-vue/packages/erp/api/erp/categoryFlow.ts
Normal file
40
web-vue/packages/erp/api/erp/categoryFlow.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://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, Page } from '@jeesite/core/api/model/baseModel';
|
||||
|
||||
const { adminPath } = useGlobSetting();
|
||||
|
||||
export interface ErpCategoryFlow extends BasicModel<ErpCategoryFlow> {
|
||||
cycleType: string; // cycle_type
|
||||
categoryName: string; // 分类名称
|
||||
statDate?: string; // stat_date
|
||||
thisIncome: number; // this_income
|
||||
prevIncome: number; // prev_income
|
||||
incomeMom?: number; // income_mom
|
||||
thisExpense: number; // this_expense
|
||||
prevExpense: number; // prev_expense
|
||||
expenseMom?: number; // expense_mom
|
||||
}
|
||||
|
||||
export const erpCategoryFlowList = (params?: ErpCategoryFlow | any) =>
|
||||
defHttp.get<ErpCategoryFlow>({ url: adminPath + '/erp/categoryFlow/list', params });
|
||||
|
||||
export const erpCategoryFlowListAll = (params?: ErpCategoryFlow | any) =>
|
||||
defHttp.get<ErpCategoryFlow[]>({ url: adminPath + '/erp/categoryFlow/listAll', params });
|
||||
|
||||
export const erpCategoryFlowListData = (params?: ErpCategoryFlow | any) =>
|
||||
defHttp.post<Page<ErpCategoryFlow>>({ url: adminPath + '/erp/categoryFlow/listData', params });
|
||||
|
||||
export const erpCategoryFlowForm = (params?: ErpCategoryFlow | any) =>
|
||||
defHttp.get<ErpCategoryFlow>({ url: adminPath + '/erp/categoryFlow/form', params });
|
||||
|
||||
export const erpCategoryFlowSave = (params?: any, data?: ErpCategoryFlow | any) =>
|
||||
defHttp.postJson<ErpCategoryFlow>({ url: adminPath + '/erp/categoryFlow/save', params, data });
|
||||
|
||||
export const erpCategoryFlowDelete = (params?: ErpCategoryFlow | any) =>
|
||||
defHttp.get<ErpCategoryFlow>({ url: adminPath + '/erp/categoryFlow/delete', params });
|
||||
36
web-vue/packages/erp/api/erp/incExpRatio.ts
Normal file
36
web-vue/packages/erp/api/erp/incExpRatio.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://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, Page } from '@jeesite/core/api/model/baseModel';
|
||||
|
||||
const { adminPath } = useGlobSetting();
|
||||
|
||||
export interface ErpIncExpRatio extends BasicModel<ErpIncExpRatio> {
|
||||
cycleType: string; // cycle_type
|
||||
statDate?: string; // stat_date
|
||||
incomeAmount?: number; // income_amount
|
||||
expenseAmount?: number; // expense_amount
|
||||
expenseRatio: number; // expense_ratio
|
||||
}
|
||||
|
||||
export const erpIncExpRatioList = (params?: ErpIncExpRatio | any) =>
|
||||
defHttp.get<ErpIncExpRatio>({ url: adminPath + '/erp/incExpRatio/list', params });
|
||||
|
||||
export const erpIncExpRatioListAll = (params?: ErpIncExpRatio | any) =>
|
||||
defHttp.get<ErpIncExpRatio[]>({ url: adminPath + '/erp/incExpRatio/listAll', params });
|
||||
|
||||
export const erpIncExpRatioListData = (params?: ErpIncExpRatio | any) =>
|
||||
defHttp.post<Page<ErpIncExpRatio>>({ url: adminPath + '/erp/incExpRatio/listData', params });
|
||||
|
||||
export const erpIncExpRatioForm = (params?: ErpIncExpRatio | any) =>
|
||||
defHttp.get<ErpIncExpRatio>({ url: adminPath + '/erp/incExpRatio/form', params });
|
||||
|
||||
export const erpIncExpRatioSave = (params?: any, data?: ErpIncExpRatio | any) =>
|
||||
defHttp.postJson<ErpIncExpRatio>({ url: adminPath + '/erp/incExpRatio/save', params, data });
|
||||
|
||||
export const erpIncExpRatioDelete = (params?: ErpIncExpRatio | any) =>
|
||||
defHttp.get<ErpIncExpRatio>({ url: adminPath + '/erp/incExpRatio/delete', params });
|
||||
Reference in New Issue
Block a user