新增预警页面
This commit is contained in:
53
web-vue/packages/erp/api/erp/summaryAll.ts
Normal file
53
web-vue/packages/erp/api/erp/summaryAll.ts
Normal file
@@ -0,0 +1,53 @@
|
||||
/**
|
||||
* 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';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface ErpSummaryAll extends BasicModel<ErpSummaryAll> {
|
||||
createTime?: string; // 记录时间
|
||||
cdate?: string; // 汇总日期
|
||||
ctype: string; // 交易类型
|
||||
thisValue?: number; // 当期金额
|
||||
prevValue?: number; // 上期金额
|
||||
momRate?: number; // 环比
|
||||
fcycle: string; // 周期类型
|
||||
}
|
||||
|
||||
export const erpSummaryAllList = (params?: ErpSummaryAll | any) =>
|
||||
defHttp.get<ErpSummaryAll>({ url: adminPath + '/erp/summaryAll/list', params });
|
||||
|
||||
export const erpSummaryAllListAll = (params?: ErpSummaryAll | any) =>
|
||||
defHttp.get<ErpSummaryAll[]>({ url: adminPath + '/erp/summaryAll/listAll', params });
|
||||
|
||||
export const erpSummaryAllListData = (params?: ErpSummaryAll | any) =>
|
||||
defHttp.post<Page<ErpSummaryAll>>({ url: adminPath + '/erp/summaryAll/listData', params });
|
||||
|
||||
export const erpSummaryAllForm = (params?: ErpSummaryAll | any) =>
|
||||
defHttp.get<ErpSummaryAll>({ url: adminPath + '/erp/summaryAll/form', params });
|
||||
|
||||
export const erpSummaryAllSave = (params?: any, data?: ErpSummaryAll | any) =>
|
||||
defHttp.postJson<ErpSummaryAll>({ url: adminPath + '/erp/summaryAll/save', params, data });
|
||||
|
||||
export const erpSummaryAllImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/erp/summaryAll/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const erpSummaryAllDelete = (params?: ErpSummaryAll | any) =>
|
||||
defHttp.get<ErpSummaryAll>({ url: adminPath + '/erp/summaryAll/delete', params });
|
||||
Reference in New Issue
Block a user