init:first commit of plus-ui

This commit is contained in:
Teo
2025-05-21 11:24:53 +08:00
commit 95e38df6a5
2219 changed files with 2478311 additions and 0 deletions

View File

@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { SafetyInspectionForm, SafetyInspectionQuery, SafetyInspectionVO } from '@/api/safety/safetyInspection/types';
/**
* 查询安全巡检工单列表
* @param query
* @returns {*}
*/
export const listSafetyInspection = (query?: SafetyInspectionQuery): AxiosPromise<SafetyInspectionVO[]> => {
return request({
url: '/safety/safetyInspection/list',
method: 'get',
params: query
});
};
/**
* 查询安全巡检工单详细
* @param id
*/
export const getSafetyInspection = (id: string | number): AxiosPromise<SafetyInspectionVO> => {
return request({
url: '/safety/safetyInspection/' + id,
method: 'get'
});
};
/**
* 新增安全巡检工单
* @param data
*/
export const addSafetyInspection = (data: SafetyInspectionForm) => {
return request({
url: '/safety/safetyInspection',
method: 'post',
data: data
});
};
/**
* 修改安全巡检工单
* @param data
*/
export const updateSafetyInspection = (data: SafetyInspectionForm) => {
return request({
url: '/safety/safetyInspection',
method: 'put',
data: data
});
};
/**
* 删除安全巡检工单
* @param id
*/
export const delSafetyInspection = (id: string | number | Array<string | number>) => {
return request({
url: '/safety/safetyInspection/' + id,
method: 'delete'
});
};

View File

@ -0,0 +1,350 @@
export interface SafetyInspectionVO {
/**
* 主键ID
*/
id: string | number;
/**
* 父id默认为0
*/
pid: string | number;
/**
* 项目ID
*/
projectId: string | number;
/**
* 检查类型
*/
checkType: string;
/**
* 违章类型
*/
violationType: string;
/**
* 巡检结果
*/
inspectionResult: string;
/**
* 整改班组id
*/
teamId: string | number;
/**
* 整改班组名字
*/
teamName: string;
/**
* 整改人班组长id
*/
correctorId: string | number;
/**
* 整改人(班组长)名字
*/
correctorName: string;
/**
* 整改期限
*/
rectificationDeadline: string;
/**
* 是否回复1回复 2不回复
*/
isReply: string;
/**
* 回复日期
*/
replyDate: string;
/**
* 工单状态1通知 2整改 3复查
*/
status: string;
/**
* 问题隐患
*/
hiddenDanger: string | number;
/**
* 整改措施
*/
measure: string;
/**
* 复查情况
*/
review: string;
/**
* 复查状态1通过 2未通过
*/
reviewType: string;
/**
* 检查时间
*/
checkTime: string;
/**
* 整改时间
*/
rectificationTime: string;
/**
* 复查时间
*/
reviewTime: string;
/**
* 检查附件
*/
checkFile: string;
/**
* 整改附件
*/
rectificationFile: string;
/**
* 备注
*/
remark: string;
/**
* 创建时间
*/
createTime: string;
/**
* 创建人id
*/
creatorId: string | number;
/**
* 创建人名字
*/
creatorName: string;
}
export interface SafetyInspectionForm extends BaseEntity {
/**
* 主键ID
*/
id?: string | number;
/**
* 父id默认为0
*/
pid?: string | number;
/**
* 项目ID
*/
projectId?: string | number;
/**
* 检查类型
*/
checkType?: string;
/**
* 违章类型
*/
violationType?: string;
/**
* 巡检结果
*/
inspectionResult?: string;
/**
* 整改班组id
*/
teamId?: string | number;
/**
* 整改人班组长id
*/
correctorId?: string | number;
/**
* 整改期限
*/
rectificationDeadline: string;
/**
* 是否回复1回复 2不回复
*/
isReply?: string;
/**
* 回复日期
*/
replyDate?: string;
/**
* 工单状态1通知 2整改 3复查
*/
status?: string;
/**
* 问题隐患
*/
hiddenDanger?: string | number;
/**
* 整改措施
*/
measure?: string;
/**
* 复查情况
*/
review?: string;
/**
* 复查状态1通过 2未通过
*/
reviewType?: string;
/**
* 检查时间
*/
checkTime?: string;
/**
* 整改时间
*/
rectificationTime?: string;
/**
* 复查时间
*/
reviewTime?: string;
/**
* 检查附件
*/
checkFile?: string;
/**
* 整改附件
*/
rectificationFile?: string;
/**
* 备注
*/
remark?: string;
}
export interface SafetyInspectionQuery extends PageQuery {
/**
* 主键ID
*/
id?: string | number;
/**
* 父id默认为0
*/
pid?: string | number;
/**
* 项目ID
*/
projectId?: string | number;
/**
* 检查类型
*/
checkType?: string;
/**
* 违章类型
*/
violationType?: string;
/**
* 巡检结果
*/
inspectionResult?: string;
/**
* 整改班组id
*/
teamId?: string | number;
/**
* 整改人班组长id
*/
correctorId?: string | number;
/**
* 是否回复1回复 2不回复
*/
isReply?: string;
/**
* 回复日期
*/
replyDate?: string;
/**
* 工单状态1通知 2整改 3复查
*/
status?: string;
/**
* 问题隐患
*/
hiddenDanger?: string | number;
/**
* 整改措施
*/
measure?: string;
/**
* 复查情况
*/
review?: string;
/**
* 复查状态1通过 2未通过
*/
reviewType?: string;
/**
* 检查时间
*/
checkTime?: string;
/**
* 整改时间
*/
rectificationTime?: string;
/**
* 复查时间
*/
reviewTime?: string;
/**
* 备注
*/
remark?: string;
/**
* 日期范围参数
*/
params?: any;
}