61 lines
2.4 KiB
TypeScript
61 lines
2.4 KiB
TypeScript
/**
|
|
* 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 BizProjectReport extends BasicModel<BizProjectReport> {
|
|
createTime?: string; // 记录时间
|
|
reportId?: string; // 汇报标识
|
|
reportCycle: string; // 汇报周期
|
|
workTitle: string; // 汇报主题
|
|
workContent: string; // 本期内容
|
|
progressPercent: string; // 项目进度
|
|
problemDesc?: string; // 存在问题
|
|
solutionPlan?: string; // 解决方案
|
|
nextPlan?: string; // 下期计划
|
|
reportTime?: string; // 提交时间
|
|
approvalStatus: string; // 汇报状态
|
|
projectId: string; // 项目编号
|
|
employeeId: string; // 人员编号
|
|
ftenantId?: string; // 租户id
|
|
fflowId?: string; // 流程id
|
|
fflowTaskId?: string; // 流程任务主键
|
|
fflowState?: number; // 流程任务状态
|
|
}
|
|
|
|
export const bizProjectReportList = (params?: BizProjectReport | any) =>
|
|
defHttp.get<BizProjectReport>({ url: adminPath + '/biz/projectReport/list', params });
|
|
|
|
export const bizProjectReportListData = (params?: BizProjectReport | any) =>
|
|
defHttp.post<Page<BizProjectReport>>({ url: adminPath + '/biz/projectReport/listData', params });
|
|
|
|
export const bizProjectReportForm = (params?: BizProjectReport | any) =>
|
|
defHttp.get<BizProjectReport>({ url: adminPath + '/biz/projectReport/form', params });
|
|
|
|
export const bizProjectReportSave = (params?: any, data?: BizProjectReport | any) =>
|
|
defHttp.postJson<BizProjectReport>({ url: adminPath + '/biz/projectReport/save', params, data });
|
|
|
|
export const bizProjectReportImportData = (
|
|
params: UploadFileParams,
|
|
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
|
) =>
|
|
defHttp.uploadFile<UploadApiResult>(
|
|
{
|
|
url: ctxPath + adminPath + '/biz/projectReport/importData',
|
|
onUploadProgress,
|
|
},
|
|
params,
|
|
);
|
|
|
|
export const bizProjectReportDelete = (params?: BizProjectReport | any) =>
|
|
defHttp.get<BizProjectReport>({ url: adminPath + '/biz/projectReport/delete', params });
|