[add] 同步前端代码
This commit is contained in:
430
plus-ui/src/api/air/index.ts
Normal file
430
plus-ui/src/api/air/index.ts
Normal file
@ -0,0 +1,430 @@
|
||||
import { request } from '../../utils/requset2.js';
|
||||
|
||||
// 开关空调
|
||||
export function airConditionerModeSwitch(data) {
|
||||
return request({
|
||||
url: '/dj/remote/debug/airConditionerModeSwitch',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 生成航线文件
|
||||
export function waypoint(data) {
|
||||
return request({
|
||||
url: '/dj/router/waypoint',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 创建任务 /dj/task/create
|
||||
export function taskCreate(data) {
|
||||
return request({
|
||||
url: '/dj/missions/create',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 下发任务 /dj/flightTaskPrepare
|
||||
export function flightTaskPrepare(data) {
|
||||
return request({
|
||||
url: '/dj/flightTaskPrepare',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 执行任务
|
||||
export function flightTaskExecute(data) {
|
||||
return request({
|
||||
url: '/dj/flightTaskExecute',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 取消任务
|
||||
export function flightTaskUndo(data) {
|
||||
return request({
|
||||
url: '/dj/flightTaskUndo',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 恢复航线
|
||||
export function flightTaskRecovery(data) {
|
||||
return request({
|
||||
url: '/dj/flightTaskRecovery',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 恢复航线
|
||||
export function flightTaskPause(data) {
|
||||
return request({
|
||||
url: '/dj/flightTaskPause',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 一键返航
|
||||
export function returnHome(data) {
|
||||
return request({
|
||||
url: '/dj/returnHome',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 无参飞行指令
|
||||
export function noDataFlight(data) {
|
||||
return request({
|
||||
url: '/dj/cmdFly/noDataFlight',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 有参飞行指令
|
||||
export function hasDataFlight(data) {
|
||||
return request({
|
||||
url: '/dj/cmdFly/hasDataFlight',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 开启指令
|
||||
export function drcModeEnte(data) {
|
||||
return request({
|
||||
url: '/dj/cmdFly/drcModeEnter',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 查询航线文件信息列表
|
||||
export function listPaths(query) {
|
||||
return request({
|
||||
url: '/system/paths/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
// 删除航线文件信息
|
||||
export function delPaths(id) {
|
||||
return request({
|
||||
url: '/system/paths/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
// 查询任务列表
|
||||
export function listTasks(query) {
|
||||
return request({
|
||||
url: '/system/tasks/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
// 查询无人机任务列表
|
||||
export function listMissions(query) {
|
||||
return request({
|
||||
url: '/system/missions/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
// 删除无人机任务
|
||||
export function delMissions(id) {
|
||||
return request({
|
||||
url: '/system/missions/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
// 远程调试
|
||||
export function remoteDebug(data) {
|
||||
return request({
|
||||
url: '/dj/remote/debug/service',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 增强图传
|
||||
export function sdrWorkmodeSwitch(data) {
|
||||
return request({
|
||||
url: '/dj/remote/debug/sdrWorkmodeSwitch',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 查询视频设备列表
|
||||
export function listInfo(query) {
|
||||
return request({
|
||||
url: '/system/info/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
// 登录
|
||||
export function login(data) {
|
||||
return request({
|
||||
url: '/login',
|
||||
headers: {
|
||||
isToken: false,
|
||||
repeatSubmit: false
|
||||
},
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 获取文件
|
||||
export function getFileByflightId(data) {
|
||||
return request({
|
||||
url: '/dj/getFileByflightId',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 机场列表
|
||||
export function droneList(data) {
|
||||
return request({
|
||||
url: '/system/drone/list',
|
||||
method: 'get',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 监听网关
|
||||
export function gatewaysAdd(data) {
|
||||
return request({
|
||||
url: '/dj/gateways/add',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 关闭网关
|
||||
export function gatewaysRemove(data) {
|
||||
return request({
|
||||
url: '/dj/gateways/remove',
|
||||
method: 'delete',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 添加航线
|
||||
export function routerAdd(data) {
|
||||
return request({
|
||||
url: '/dj/router/add',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 复制航线 /dj/router/copy/{id}
|
||||
export function routerCopy(id) {
|
||||
return request({
|
||||
url: '/dj/router/copy/' + id,
|
||||
method: 'post'
|
||||
});
|
||||
}
|
||||
// 重命名文件
|
||||
|
||||
export function routerRename(data) {
|
||||
return request({
|
||||
url: '/dj/router/rename',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 获取文件
|
||||
export function takeoffList(data) {
|
||||
return request({
|
||||
url: '/system/takeoff/list',
|
||||
method: 'get',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 切换直播流
|
||||
export function liveChange(data) {
|
||||
return request({
|
||||
url: '/dj/live/change',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 设置清晰度 /dj/live/quality
|
||||
export function liveChangeQuality(data) {
|
||||
return request({
|
||||
url: '/dj/live/quality',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 开启直播
|
||||
export function liveStart(data) {
|
||||
return request({
|
||||
url: '/dj/live/start',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 关闭直播
|
||||
export function liveStop(data) {
|
||||
return request({
|
||||
url: '/dj/live/stop',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 静音模式开关
|
||||
export function propertySet(data) {
|
||||
return request({
|
||||
url: '/property/set',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 直播相机切换
|
||||
export function cameraChange(data) {
|
||||
return request({
|
||||
url: '/dj/live/camera/change',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 新建计划
|
||||
export function taskAdd(data) {
|
||||
return request({
|
||||
url: '/dj/task/add',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 计划列表
|
||||
export function taskList(data) {
|
||||
return request({
|
||||
url: '/dj/task/list',
|
||||
method: 'get',
|
||||
params: data
|
||||
});
|
||||
}
|
||||
// 新暂停
|
||||
export function flightTaskPauseNew(data) {
|
||||
return request({
|
||||
url: '/dj/task/flightTaskPause',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 新恢复
|
||||
export function flightTaskRecoveryNew(data) {
|
||||
return request({
|
||||
url: '/dj/task/flightTaskRecovery',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 取消任务
|
||||
export function flightTaskUndoNew(data) {
|
||||
return request({
|
||||
url: '/dj/task/flightTaskUndo',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 一键返航 post
|
||||
export function returnHomeNew(data) {
|
||||
return request({
|
||||
url: '/dj/task/returnHome',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 删除
|
||||
export function delMissionsNew(id) {
|
||||
return request({
|
||||
url: '/system/new/missions/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
// drc飞行控制 /dj/cmdFly/droneControl
|
||||
export function droneControl(data) {
|
||||
return request({
|
||||
url: '/dj/cmdFly/droneControl',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// drc急停 /dj/cmdFly/droneEmergencyStop
|
||||
export function droneEmergencyStop(data) {
|
||||
return request({
|
||||
url: '/dj/cmdFly/droneEmergencyStop',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 取消返航 /dj/returnHomeCancel
|
||||
export function returnHomeCancel(data) {
|
||||
return request({
|
||||
url: '/dj/returnHomeCancel',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// 导入航线
|
||||
export function returnImport(data) {
|
||||
return request({
|
||||
url: '/dj/router/import',
|
||||
method: 'post',
|
||||
data,
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// DRC心跳
|
||||
export function heartBeat(data) {
|
||||
return request({
|
||||
url: '/dj/cmdFly/heartBeat',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
// AI识别
|
||||
export function aiInfo(data) {
|
||||
return request({
|
||||
url: '/minio/ai/info',
|
||||
method: 'get',
|
||||
params: data
|
||||
});
|
||||
}
|
||||
|
||||
// 当前最新任务
|
||||
export function getLatest(data) {
|
||||
return request({
|
||||
url: '/dj/task/getLatest',
|
||||
method: 'get',
|
||||
params: data
|
||||
});
|
||||
}
|
||||
118
plus-ui/src/api/fileMangement/index.ts
Normal file
118
plus-ui/src/api/fileMangement/index.ts
Normal file
@ -0,0 +1,118 @@
|
||||
import { request } from '../../utils/requset2';
|
||||
// 获取文件列表
|
||||
export function getFiles(data) {
|
||||
return request({
|
||||
url: '/minio/file',
|
||||
method: 'get',
|
||||
data,
|
||||
params: data
|
||||
});
|
||||
}
|
||||
// 获取ai文件列表
|
||||
export function getAiFiles(data) {
|
||||
return request({
|
||||
url: '/minio/ai/file',
|
||||
method: 'get',
|
||||
data,
|
||||
params: data
|
||||
});
|
||||
}
|
||||
// 获取文件信息
|
||||
export function getInfo(data) {
|
||||
return request({
|
||||
url: '/minio/info',
|
||||
method: 'get',
|
||||
data,
|
||||
params: data,
|
||||
timeout: 30000
|
||||
});
|
||||
}
|
||||
// 获取ai文件信息
|
||||
export function getAiInfo(data) {
|
||||
return request({
|
||||
url: '/minio/ai/info',
|
||||
method: 'get',
|
||||
data,
|
||||
params: data,
|
||||
timeout: 30000
|
||||
});
|
||||
}
|
||||
// 下载文件
|
||||
export function fileDownload(params, onProgress) {
|
||||
return request({
|
||||
url: '/minio/download',
|
||||
method: 'post',
|
||||
params,
|
||||
responseType: 'blob',
|
||||
timeout: 0,
|
||||
// header: {
|
||||
// "Content-Length": Buffer.byteLength(JSON.stringify(params)),
|
||||
// },
|
||||
onDownloadProgress: (progressEvent) => {
|
||||
if (onProgress && typeof onProgress === 'function') {
|
||||
const { loaded, total } = progressEvent;
|
||||
console.log('progressEvent', progressEvent);
|
||||
const percentage = Math.round((loaded / total) * 100); // 计算百分比
|
||||
onProgress(percentage); // 调用传入的 onProgress 回调函数
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
// 删除文件
|
||||
export function deleteFile(data) {
|
||||
return request({
|
||||
url: '/minio/deleteBatch',
|
||||
method: 'delete',
|
||||
data,
|
||||
timeout: 0
|
||||
});
|
||||
}
|
||||
// 删除ai文件
|
||||
export function deleteAiFile(data) {
|
||||
return request({
|
||||
url: '/minio/ai/deleteBatch',
|
||||
method: 'delete',
|
||||
data,
|
||||
timeout: 0
|
||||
});
|
||||
}
|
||||
// 批量下载文件或目录
|
||||
export function downloadBatch(data, onProgress) {
|
||||
return request({
|
||||
url: '/minio/downloadBatch',
|
||||
method: 'post',
|
||||
responseType: 'blob',
|
||||
data,
|
||||
timeout: 0,
|
||||
onDownloadProgress: (progressEvent) => {
|
||||
if (onProgress && typeof onProgress === 'function') {
|
||||
const { loaded, total } = progressEvent;
|
||||
console.log('progressEvent', progressEvent);
|
||||
const percentage = Math.round((loaded / total) * 100); // 计算百分比
|
||||
onProgress(percentage); // 调用传入的 onProgress 回调函数
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 获取某个目录下面的所有文件的URL列表
|
||||
export function getUrlList(data) {
|
||||
return request({
|
||||
url: '/minio/urlList',
|
||||
method: 'post',
|
||||
data,
|
||||
params: data,
|
||||
timeout: 0
|
||||
});
|
||||
}
|
||||
// 获取某个目录下面的所有文件的URL列表
|
||||
|
||||
export function getAiUrlList(data) {
|
||||
return request({
|
||||
url: '/minio/ai/urlList',
|
||||
method: 'post',
|
||||
data,
|
||||
params: data,
|
||||
timeout: 0
|
||||
});
|
||||
}
|
||||
136
plus-ui/src/api/gis/index.ts
Normal file
136
plus-ui/src/api/gis/index.ts
Normal file
@ -0,0 +1,136 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import {
|
||||
QualityVO,
|
||||
Query,
|
||||
ConstructionUserVO,
|
||||
MachineryrVO,
|
||||
MaterialsVO,
|
||||
projectNewsVO,
|
||||
safetyInspectionVO,
|
||||
projectNewsDetailVO,
|
||||
weatherVO,
|
||||
safetyDayVO
|
||||
} from './type';
|
||||
/**
|
||||
* 查询大屏质量信息
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getQualityList = (query?: Query): AxiosPromise<QualityVO> => {
|
||||
return request({
|
||||
url: '/quality/qualityInspection/gis',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询大屏项目新闻列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getprojectNewsList = (query?: Query): AxiosPromise<projectNewsVO[]> => {
|
||||
return request({
|
||||
url: '/project/projectNews/list/gis',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取项目新闻详细信息
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getprojectNewsDetailList = (id: number): AxiosPromise<projectNewsDetailVO> => {
|
||||
return request({
|
||||
url: '/project/projectNews/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询大屏安全信息
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getsafetyInspectionList = (query?: Query): AxiosPromise<safetyInspectionVO> => {
|
||||
return request({
|
||||
url: '/safety/safetyInspection/gis',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询施工人员大屏数据
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getConstructionUserList = (query?: Query): AxiosPromise<ConstructionUserVO> => {
|
||||
return request({
|
||||
url: '/project/constructionUser/gis',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询大屏机械列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getMachineryrList = (query?: Query): AxiosPromise<MachineryrVO[]> => {
|
||||
return request({
|
||||
url: '/machinery/machinery/list/gis',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询大屏材料信息
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getMaterialsList = (query?: Query): AxiosPromise<MaterialsVO[]> => {
|
||||
return request({
|
||||
url: '/materials/materials/list/gis',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询项目天气
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getweatherList = (id?: string): AxiosPromise<weatherVO[]> => {
|
||||
return request({
|
||||
url: '/project/project/weather/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询项目安全天数
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getSafetyDay = (id?: string): AxiosPromise<safetyDayVO> => {
|
||||
return request({
|
||||
url: '/project/project/safetyDay/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
92
plus-ui/src/api/gis/type.ts
Normal file
92
plus-ui/src/api/gis/type.ts
Normal file
@ -0,0 +1,92 @@
|
||||
export interface QualityVO {
|
||||
count: number;
|
||||
correctSituation: string;
|
||||
list: Qualitylist[];
|
||||
}
|
||||
export interface Qualitylist {
|
||||
id: number;
|
||||
inspectionTypeLabel: string;
|
||||
inspectionHeadline: string;
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
export interface Query {
|
||||
projectId: string | number;
|
||||
pageSize?: string | number;
|
||||
}
|
||||
|
||||
export interface ConstructionUserVO {
|
||||
peopleCount: number;
|
||||
attendanceCount: number;
|
||||
attendanceRate: string;
|
||||
}
|
||||
|
||||
export interface MachineryrVO {
|
||||
//机械名称
|
||||
machineryName: string;
|
||||
//机械数量
|
||||
machineryCount: string;
|
||||
}
|
||||
|
||||
export interface MaterialsVO {
|
||||
//材料名称
|
||||
materialsName: string;
|
||||
//计量单位
|
||||
weightId: string;
|
||||
//预计材料数量
|
||||
quantityCount: string;
|
||||
//入库数量
|
||||
putCount: string;
|
||||
//出库数量
|
||||
outCount: string;
|
||||
value: number;
|
||||
}
|
||||
|
||||
export interface projectNewsVO {
|
||||
id: string;
|
||||
title: string;
|
||||
|
||||
show?: boolean;
|
||||
}
|
||||
|
||||
export interface projectNewsDetailVO {
|
||||
id: string;
|
||||
title: string;
|
||||
content: string;
|
||||
file: string;
|
||||
}
|
||||
|
||||
export interface safetyInspectionVO {
|
||||
//站班会总数
|
||||
teamMeetingCount: string;
|
||||
//安全巡检总数
|
||||
safetyInspectionCount: string;
|
||||
//整改情况
|
||||
correctSituationCount: string;
|
||||
//站班会列表
|
||||
teamMeetingList: safetyInspectionlist[];
|
||||
}
|
||||
|
||||
export interface safetyInspectionlist {
|
||||
id: string;
|
||||
teamName: string;
|
||||
name: string;
|
||||
meetingDate: string;
|
||||
}
|
||||
|
||||
export interface weatherVO {
|
||||
date: string;
|
||||
week: string;
|
||||
tempMax: string;
|
||||
tempMin: string;
|
||||
dayStatus: string;
|
||||
dayIcon: string;
|
||||
nightStatus: string;
|
||||
nightIcon: string;
|
||||
sunRise: string;
|
||||
sunSet: string;
|
||||
}
|
||||
|
||||
export interface safetyDayVO {
|
||||
safetyDay: string;
|
||||
}
|
||||
74
plus-ui/src/api/other/devicePreset/index.ts
Normal file
74
plus-ui/src/api/other/devicePreset/index.ts
Normal file
@ -0,0 +1,74 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { DevicePresetVO, DevicePresetForm, DevicePresetQuery } from '@/api/other/devicePreset/types';
|
||||
|
||||
/**
|
||||
* 查询摄像头预置位列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listDevicePreset = (query?: DevicePresetQuery): AxiosPromise<DevicePresetVO[]> => {
|
||||
return request({
|
||||
url: '/other/devicePreset/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询摄像头预置位详细
|
||||
* @param id
|
||||
*/
|
||||
export const getDevicePreset = (id: string | number): AxiosPromise<DevicePresetVO> => {
|
||||
return request({
|
||||
url: '/other/devicePreset/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增摄像头预置位
|
||||
* @param data
|
||||
*/
|
||||
export const addDevicePreset = (data: DevicePresetForm) => {
|
||||
return request({
|
||||
url: '/other/devicePreset',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改摄像头预置位
|
||||
* @param data
|
||||
*/
|
||||
export const updateDevicePreset = (data: DevicePresetForm) => {
|
||||
return request({
|
||||
url: '/other/devicePreset',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除摄像头预置位
|
||||
* @param id
|
||||
*/
|
||||
export const delDevicePreset = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/other/devicePreset/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 调用摄像头预置位
|
||||
* @param data
|
||||
*/
|
||||
export const callDevicePreset = (id: number | string) => {
|
||||
return request({
|
||||
url: '/other/devicePreset/move/' + id,
|
||||
method: 'put'
|
||||
});
|
||||
};
|
||||
80
plus-ui/src/api/other/devicePreset/types.ts
Normal file
80
plus-ui/src/api/other/devicePreset/types.ts
Normal file
@ -0,0 +1,80 @@
|
||||
export interface DevicePresetVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 设备序列号
|
||||
*/
|
||||
deviceSerial: string;
|
||||
|
||||
/**
|
||||
* 通道号
|
||||
*/
|
||||
channelNo: number;
|
||||
|
||||
/**
|
||||
* 预置点序号
|
||||
*/
|
||||
index: number;
|
||||
|
||||
/**
|
||||
* 预置点
|
||||
*/
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface DevicePresetForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 设备序列号
|
||||
*/
|
||||
deviceSerial?: string;
|
||||
|
||||
/**
|
||||
* 通道号
|
||||
*/
|
||||
channelNo?: number | string;
|
||||
|
||||
/**
|
||||
* 预置点序号
|
||||
*/
|
||||
index?: number;
|
||||
|
||||
/**
|
||||
* 预置点
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export interface DevicePresetQuery extends PageQuery {
|
||||
/**
|
||||
* 设备序列号
|
||||
*/
|
||||
deviceSerial?: string;
|
||||
|
||||
/**
|
||||
* 通道号
|
||||
*/
|
||||
channelNo?: number;
|
||||
|
||||
/**
|
||||
* 预置点序号
|
||||
*/
|
||||
index?: number;
|
||||
|
||||
/**
|
||||
* 预置点
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
91
plus-ui/src/api/other/ys7Device/index.ts
Normal file
91
plus-ui/src/api/other/ys7Device/index.ts
Normal file
@ -0,0 +1,91 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { Ys7DeviceVO, Ys7DeviceForm, Ys7DeviceQuery } from '@/api/other/ys7Device/types';
|
||||
|
||||
/**
|
||||
* 查询萤石摄像头列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listYs7Device = (query?: Ys7DeviceQuery): AxiosPromise<Ys7DeviceVO[]> => {
|
||||
return request({
|
||||
url: '/other/ys7Device/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询萤石摄像头详细
|
||||
* @param id
|
||||
*/
|
||||
export const getYs7Device = (id: string | number): AxiosPromise<Ys7DeviceVO> => {
|
||||
return request({
|
||||
url: '/other/ys7Device/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增萤石摄像头
|
||||
* @param data
|
||||
*/
|
||||
export const addYs7Device = (data: Ys7DeviceForm) => {
|
||||
return request({
|
||||
url: '/other/ys7Device',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改萤石摄像头
|
||||
* @param data
|
||||
*/
|
||||
export const updateYs7Device = (data: Ys7DeviceForm) => {
|
||||
return request({
|
||||
url: '/other/ys7Device',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除萤石摄像头
|
||||
* @param id
|
||||
*/
|
||||
export const delYs7Device = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/other/ys7Device/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/// 修改加密状态
|
||||
export const toggleEncrypt = (data?: any): AxiosPromise<{}> => {
|
||||
return request({
|
||||
url: '/other/ys7Device/video/encrypted',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
export const devicesLinkPro = (data: { id: string | number; projectId: string | number }): AxiosPromise<Ys7DeviceVO> => {
|
||||
return request({
|
||||
url: '/other/ys7Device/with/project',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取 token
|
||||
* @param id
|
||||
*/
|
||||
export const getAccessToken = () => {
|
||||
return request({
|
||||
url: '/other/ys7Device/get/token',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
131
plus-ui/src/api/other/ys7Device/types.ts
Normal file
131
plus-ui/src/api/other/ys7Device/types.ts
Normal file
@ -0,0 +1,131 @@
|
||||
export interface Ys7DeviceVO {
|
||||
id: any;
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 设备序列号
|
||||
*/
|
||||
deviceSerial: string;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
deviceName: string;
|
||||
|
||||
/**
|
||||
* 设备型号
|
||||
*/
|
||||
deviceType: string;
|
||||
|
||||
/**
|
||||
* 设备在线状态(0离线 1在线)
|
||||
*/
|
||||
status: number;
|
||||
|
||||
/**
|
||||
* 固件版本号
|
||||
*/
|
||||
deviceVersion: string;
|
||||
|
||||
/**
|
||||
* 设备添加时间
|
||||
*/
|
||||
deviceCreateTime: string;
|
||||
|
||||
/**
|
||||
* 视频加密(0关闭 1开启)
|
||||
*/
|
||||
videoEncrypted: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface Ys7DeviceForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设备序列号
|
||||
*/
|
||||
deviceSerial?: string;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
deviceName?: string;
|
||||
|
||||
/**
|
||||
* 设备型号
|
||||
*/
|
||||
deviceType?: string;
|
||||
|
||||
/**
|
||||
* 设备在线状态(0离线 1在线)
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 固件版本号
|
||||
*/
|
||||
deviceVersion?: string;
|
||||
|
||||
/**
|
||||
* 视频加密(0关闭 1开启)
|
||||
*/
|
||||
videoEncrypted?: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface Ys7DeviceQuery extends PageQuery {
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 设备序列号
|
||||
*/
|
||||
deviceSerial?: string;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
deviceName?: string;
|
||||
|
||||
/**
|
||||
* 设备型号
|
||||
*/
|
||||
deviceType?: string;
|
||||
|
||||
/**
|
||||
* 设备在线状态(0离线 1在线)
|
||||
*/
|
||||
status?: number;
|
||||
|
||||
/**
|
||||
* 固件版本号
|
||||
*/
|
||||
deviceVersion?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
193
plus-ui/src/api/progress/plan/index.ts
Normal file
193
plus-ui/src/api/progress/plan/index.ts
Normal file
@ -0,0 +1,193 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import {
|
||||
ProgressCategoryVO,
|
||||
ProgressCategoryForm,
|
||||
ProgressCategoryQuery,
|
||||
ProgressPlanForm,
|
||||
lastTimeVo,
|
||||
workScheduleListVO,
|
||||
workScheduleListQuery,
|
||||
progressPlanDetailForm,
|
||||
pvModuleListQuery,
|
||||
pvModuleListVO
|
||||
} from '@/api/progress/plan/types';
|
||||
|
||||
/**
|
||||
* 查询进度类别列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listProgressCategory = (query?: ProgressCategoryQuery): AxiosPromise<ProgressCategoryVO[]> => {
|
||||
return request({
|
||||
url: '/progress/progressCategory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询进度类别详细
|
||||
* @param id
|
||||
*/
|
||||
export const getProgressCategory = (id: string | number): AxiosPromise<ProgressCategoryVO> => {
|
||||
return request({
|
||||
url: '/progress/progressCategory/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增进度类别
|
||||
* @param data
|
||||
*/
|
||||
export const addProgressCategory = (data: ProgressCategoryForm) => {
|
||||
return request({
|
||||
url: '/progress/progressCategory',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改进度类别
|
||||
* @param data
|
||||
*/
|
||||
export const updateProgressCategory = (data: ProgressCategoryForm) => {
|
||||
return request({
|
||||
url: '/progress/progressCategory',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除进度类别
|
||||
* @param id
|
||||
*/
|
||||
export const delProgressCategory = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/progress/progressCategory/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询设施-方阵列表
|
||||
* @param data
|
||||
*/
|
||||
export const getProjectSquare = (projectId: string) => {
|
||||
return request({
|
||||
url: '/project/project/list/sub/matrix/' + projectId,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取进度类别最后一次进度信息
|
||||
* @param id
|
||||
*/
|
||||
export const lastTime = (id: string | number): AxiosPromise<lastTimeVo> => {
|
||||
return request({
|
||||
url: '/progress/progressCategory/lastTime/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增进度计划
|
||||
* @param data
|
||||
*/
|
||||
export const workScheduleAddPlan = (data: ProgressPlanForm) => {
|
||||
return request({
|
||||
url: '/progress/progressPlan',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取进度计划详细信息
|
||||
* @param params
|
||||
*/
|
||||
export const workScheduleList = (query: workScheduleListQuery): AxiosPromise<workScheduleListVO[]> => {
|
||||
return request({
|
||||
url: '/progress/progressPlan/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取进度类别坐标信息
|
||||
* @param params
|
||||
*/
|
||||
export const workScheduleListPosition = (id: string): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/progress/progressCategory/coordinate/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增进度计划详情(百分比设施)
|
||||
* @param data
|
||||
*/
|
||||
export const workScheduleSubmit = (data: progressPlanDetailForm) => {
|
||||
return request({
|
||||
url: '/progress/progressPlanDetail/insert/percentage',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取进度计划详情未完成设施详细信息
|
||||
* @param params
|
||||
*/
|
||||
export const pvModuleList = (query: pvModuleListQuery): AxiosPromise<pvModuleListVO[]> => {
|
||||
return request({
|
||||
url: '/progress/progressPlanDetail/detail/unFinish/' + query.id,
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增进度计划详情(普通设施)
|
||||
* @param data
|
||||
*/
|
||||
export const addDaily = (data: progressPlanDetailForm) => {
|
||||
return request({
|
||||
url: '/progress/progressPlanDetail/insert/detail',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取进度计划详情已完成设施详细信息
|
||||
* @param params
|
||||
*/
|
||||
export const getDailyBook = (query: pvModuleListQuery): AxiosPromise<pvModuleListVO[]> => {
|
||||
return request({
|
||||
url: '/progress/progressPlanDetail/detail/finished/' + query.id,
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除进度计划详情
|
||||
* @param id
|
||||
*/
|
||||
export const deleteDaily = (query: { id: string; detailIdList: string[] }) => {
|
||||
return request({
|
||||
url: '/progress/progressPlanDetail/remove/detail',
|
||||
method: 'delete',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
export const workScheduleDel = () => {};
|
||||
153
plus-ui/src/api/progress/plan/types.ts
Normal file
153
plus-ui/src/api/progress/plan/types.ts
Normal file
@ -0,0 +1,153 @@
|
||||
export interface ProgressCategoryVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 父类别id
|
||||
*/
|
||||
pid: string | number;
|
||||
|
||||
/**
|
||||
* 类别名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 计量方式(1数量 2百分比)
|
||||
*/
|
||||
unitType: string;
|
||||
|
||||
/**
|
||||
* 项目id(0表示共用)
|
||||
*/
|
||||
projectId: string | number;
|
||||
matrixId?: string | number;
|
||||
/**
|
||||
* 子对象
|
||||
*/
|
||||
children: ProgressCategoryVO[];
|
||||
threeChildren: any[];
|
||||
hasChildren: any;
|
||||
detailChildren: any;
|
||||
}
|
||||
|
||||
export interface ProgressCategoryForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 父类别id
|
||||
*/
|
||||
pid?: string | number;
|
||||
|
||||
/**
|
||||
* 类别名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 计量方式(1数量 2百分比)
|
||||
*/
|
||||
unitType?: string;
|
||||
|
||||
/**
|
||||
* 项目id(0表示共用)
|
||||
*/
|
||||
projectId?: string | number;
|
||||
matrixId?: string | number;
|
||||
}
|
||||
|
||||
export interface ProgressPlanForm {
|
||||
projectId?: string | number;
|
||||
matrixId?: string | number;
|
||||
progressCategoryId?: string | number;
|
||||
startDate?: string;
|
||||
endDate?: string;
|
||||
planNumber?: number;
|
||||
detailList: {
|
||||
date: string;
|
||||
planNumber: number;
|
||||
}[];
|
||||
}
|
||||
|
||||
export interface workScheduleListVO {
|
||||
id: string | number;
|
||||
progressCategoryId: string | number;
|
||||
progressCategoryName: string;
|
||||
startDate: string;
|
||||
endDate: string;
|
||||
planNumber: number;
|
||||
finishedNumber: number;
|
||||
detailList: {
|
||||
id: string | number;
|
||||
date: string;
|
||||
planNumber: number;
|
||||
finishedNumber: number;
|
||||
aiFill: boolean;
|
||||
}[];
|
||||
}
|
||||
|
||||
export interface pvModuleListQuery {
|
||||
id: string | number;
|
||||
pageSize?: number;
|
||||
pageNum?: number;
|
||||
}
|
||||
|
||||
export interface pvModuleListVO {
|
||||
id: string | number;
|
||||
name: string;
|
||||
status: string;
|
||||
}
|
||||
|
||||
export interface progressPlanDetailForm {
|
||||
id: string | number;
|
||||
finishedNumber?: number;
|
||||
finishedDetailIdList?: any[];
|
||||
submitTime?: string;
|
||||
}
|
||||
|
||||
export interface workScheduleListQuery {
|
||||
progressCategoryId?: string | number;
|
||||
pageSize?: number;
|
||||
pageNum?: number;
|
||||
}
|
||||
|
||||
export interface lastTimeVo {
|
||||
endDate: string;
|
||||
leftNum: number;
|
||||
}
|
||||
|
||||
export interface ProgressCategoryQuery {
|
||||
/**
|
||||
* 父类别id
|
||||
*/
|
||||
pid?: string | number;
|
||||
|
||||
/**
|
||||
* 类别名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 计量方式(1数量 2百分比)
|
||||
*/
|
||||
unitType?: string;
|
||||
|
||||
/**
|
||||
* 项目id(0表示共用)
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
/**
|
||||
* 方阵id
|
||||
*/
|
||||
matrixId?: string | number;
|
||||
}
|
||||
63
plus-ui/src/api/progress/progressCategoryTemplate/index.ts
Normal file
63
plus-ui/src/api/progress/progressCategoryTemplate/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ProgressCategoryTemplateVO, ProgressCategoryTemplateForm, ProgressCategoryTemplateQuery } from '@/api/progress/progressCategoryTemplate/types';
|
||||
|
||||
/**
|
||||
* 查询进度类别模版列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listProgressCategoryTemplate = (query?: ProgressCategoryTemplateQuery): AxiosPromise<ProgressCategoryTemplateVO[]> => {
|
||||
return request({
|
||||
url: '/progress/progressCategoryTemplate/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询进度类别模版详细
|
||||
* @param id
|
||||
*/
|
||||
export const getProgressCategoryTemplate = (id: string | number): AxiosPromise<ProgressCategoryTemplateVO> => {
|
||||
return request({
|
||||
url: '/progress/progressCategoryTemplate/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增进度类别模版
|
||||
* @param data
|
||||
*/
|
||||
export const addProgressCategoryTemplate = (data: ProgressCategoryTemplateForm) => {
|
||||
return request({
|
||||
url: '/progress/progressCategoryTemplate',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改进度类别模版
|
||||
* @param data
|
||||
*/
|
||||
export const updateProgressCategoryTemplate = (data: ProgressCategoryTemplateForm) => {
|
||||
return request({
|
||||
url: '/progress/progressCategoryTemplate',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除进度类别模版
|
||||
* @param id
|
||||
*/
|
||||
export const delProgressCategoryTemplate = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/progress/progressCategoryTemplate/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
105
plus-ui/src/api/progress/progressCategoryTemplate/types.ts
Normal file
105
plus-ui/src/api/progress/progressCategoryTemplate/types.ts
Normal file
@ -0,0 +1,105 @@
|
||||
export interface ProgressCategoryTemplateVO {
|
||||
/**
|
||||
* 类别名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 计量方式(0无 1数量 2百分比)
|
||||
*/
|
||||
unitType: string;
|
||||
|
||||
/**
|
||||
* 工作类型
|
||||
*/
|
||||
workType: string;
|
||||
|
||||
/**
|
||||
* 项目id(0表示共用)
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 子对象
|
||||
*/
|
||||
children: ProgressCategoryTemplateVO[];
|
||||
}
|
||||
|
||||
export interface ProgressCategoryTemplateForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 父类别id
|
||||
*/
|
||||
pid?: string | number;
|
||||
|
||||
/**
|
||||
* 类别名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 计量方式(0无 1数量 2百分比)
|
||||
*/
|
||||
unitType?: string;
|
||||
|
||||
/**
|
||||
* 工作类型
|
||||
*/
|
||||
workType?: string;
|
||||
|
||||
/**
|
||||
* 项目id(0表示共用)
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ProgressCategoryTemplateQuery {
|
||||
|
||||
/**
|
||||
* 父类别id
|
||||
*/
|
||||
pid?: string | number;
|
||||
|
||||
/**
|
||||
* 类别名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 计量方式(0无 1数量 2百分比)
|
||||
*/
|
||||
unitType?: string;
|
||||
|
||||
/**
|
||||
* 工作类型
|
||||
*/
|
||||
workType?: string;
|
||||
|
||||
/**
|
||||
* 项目id(0表示共用)
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
||||
63
plus-ui/src/api/project/attendance/echarts.ts
Normal file
63
plus-ui/src/api/project/attendance/echarts.ts
Normal file
@ -0,0 +1,63 @@
|
||||
const grid = {
|
||||
left: 100,
|
||||
right: 100,
|
||||
top: 30,
|
||||
bottom: 50
|
||||
};
|
||||
|
||||
const color = ['#4FD6A9', '#409EFF', '#ECF5FF', '#FFC069'];
|
||||
const titleList = [
|
||||
{ name: '全勤人数', color: '#fff' },
|
||||
{ name: '半勤人数', color: '#fff' },
|
||||
{ name: '缺勤人数', color: '#000' },
|
||||
{ name: '请假人数', color: '#000' }
|
||||
];
|
||||
|
||||
// export const echartsConfig = (ref: any, list?: any) => {
|
||||
// const commandstatsIntance = echarts.init(ref, 'macarons');
|
||||
// };
|
||||
|
||||
export const option = (list?: any) => {
|
||||
const attendanceArray = list.map((item) => item.attendance);
|
||||
const halfAttendanceArray = list.map((item) => item.halfAttendance);
|
||||
const absenteeismArray = list.map((item) => item.absenteeism);
|
||||
const leaveArray = list.map((item) => item.leave);
|
||||
|
||||
const rawData = [attendanceArray, halfAttendanceArray, absenteeismArray, leaveArray];
|
||||
const series: any = titleList.map((item, sid) => {
|
||||
return {
|
||||
name: item.name,
|
||||
type: 'bar',
|
||||
stack: 'total',
|
||||
barWidth: '25',
|
||||
label: {
|
||||
show: true,
|
||||
color: item.color,
|
||||
fontSize: 10,
|
||||
formatter: function (params) {
|
||||
return params.value > 0 ? params.value : '';
|
||||
}
|
||||
},
|
||||
data: rawData[sid]
|
||||
};
|
||||
});
|
||||
const data = list.map((item) => item.clockDate);
|
||||
const option = {
|
||||
legend: {
|
||||
selectedMode: false,
|
||||
right: 0
|
||||
},
|
||||
grid,
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
show: false
|
||||
},
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
data
|
||||
},
|
||||
series,
|
||||
color
|
||||
};
|
||||
return option;
|
||||
};
|
||||
99
plus-ui/src/api/project/attendance/index.ts
Normal file
99
plus-ui/src/api/project/attendance/index.ts
Normal file
@ -0,0 +1,99 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import {
|
||||
AttendanceVO,
|
||||
AttendanceForm,
|
||||
AttendanceQuery,
|
||||
AttendanceTwoWeekQuery,
|
||||
AttendanceTwoWeekVO,
|
||||
AttendanceMonthVO,
|
||||
AttendanceMonthQuery
|
||||
} from '@/api/project/attendance/types';
|
||||
|
||||
/**
|
||||
* 查询考勤列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listAttendance = (query?: AttendanceQuery): AxiosPromise<AttendanceVO[]> => {
|
||||
return request({
|
||||
url: '/project/constructionUser/list/attendance/total',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询近两周考勤列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listAttendanceTwoWeek = (query?: AttendanceTwoWeekQuery): AxiosPromise<AttendanceTwoWeekVO[]> => {
|
||||
return request({
|
||||
url: '/project/attendance/list/clockDate/twoWeek',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询施工人员月份考勤列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listAttendanceMonth = (query?: AttendanceMonthQuery): AxiosPromise<AttendanceMonthVO[]> => {
|
||||
return request({
|
||||
url: '/project/attendance/list/month/byUserId',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询考勤详细
|
||||
* @param id
|
||||
*/
|
||||
export const getAttendance = (id: string | number): AxiosPromise<AttendanceVO> => {
|
||||
return request({
|
||||
url: '/project/attendance/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增考勤
|
||||
* @param data
|
||||
*/
|
||||
export const addAttendance = (data: AttendanceForm) => {
|
||||
return request({
|
||||
url: '/project/attendance',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改考勤
|
||||
* @param data
|
||||
*/
|
||||
export const updateAttendance = (data: AttendanceForm) => {
|
||||
return request({
|
||||
url: '/project/attendance',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除考勤
|
||||
* @param id
|
||||
*/
|
||||
export const delAttendance = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/project/attendance/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
210
plus-ui/src/api/project/attendance/types.ts
Normal file
210
plus-ui/src/api/project/attendance/types.ts
Normal file
@ -0,0 +1,210 @@
|
||||
export interface AttendanceVO {
|
||||
/**
|
||||
* 人员姓名
|
||||
*/
|
||||
userName: string;
|
||||
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 人员id
|
||||
*/
|
||||
|
||||
/**
|
||||
* 上班打卡时间
|
||||
*/
|
||||
onClockTime: string;
|
||||
|
||||
/**
|
||||
* 下班打卡时间
|
||||
*/
|
||||
offClockTime: string;
|
||||
|
||||
/**
|
||||
* 打卡日期
|
||||
*/
|
||||
clockDate: string;
|
||||
|
||||
/**
|
||||
* 1正常,2迟到,3早退,4缺勤,5补卡
|
||||
*/
|
||||
clockStatus: string;
|
||||
|
||||
/**
|
||||
* 上下班(1上班,2下班)
|
||||
*/
|
||||
commuter: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface AttendanceTwoWeekQuery {
|
||||
projectId?: string | number;
|
||||
}
|
||||
|
||||
export interface AttendanceMonthQuery {
|
||||
userId: string | number;
|
||||
clockMonth?: string;
|
||||
}
|
||||
|
||||
export interface AttendanceMonthVO {
|
||||
id: string | number;
|
||||
clockDate: string;
|
||||
status: string;
|
||||
attendanceList?: monthList[];
|
||||
clockList?: clockObject;
|
||||
}
|
||||
|
||||
interface clockObject {
|
||||
downClockTime?: string;
|
||||
downClockPic?: string;
|
||||
upClockTime?: string;
|
||||
upClockPic?: string;
|
||||
}
|
||||
|
||||
interface monthList {
|
||||
commuter: string;
|
||||
clockTime: string;
|
||||
clockStatus: string;
|
||||
}
|
||||
|
||||
export interface AttendanceTwoWeekVO {
|
||||
/**
|
||||
* 出勤人数
|
||||
*/
|
||||
attendance: string;
|
||||
|
||||
/**
|
||||
* 半勤人数
|
||||
|
||||
*/
|
||||
halfAttendance: string;
|
||||
|
||||
/**
|
||||
* 打卡日期
|
||||
*/
|
||||
clockDate: string;
|
||||
|
||||
/**
|
||||
* 缺勤人数
|
||||
|
||||
*/
|
||||
absenteeism: string;
|
||||
}
|
||||
|
||||
export interface AttendanceForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 人员id
|
||||
*/
|
||||
userId?: string | number;
|
||||
typeOfWork?: string;
|
||||
teamId?: string;
|
||||
clockDate?: string;
|
||||
|
||||
/**
|
||||
* 人脸照
|
||||
*/
|
||||
facePic?: string;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 上班打卡时间
|
||||
*/
|
||||
onClockTime?: string;
|
||||
|
||||
/**
|
||||
* 下班打卡时间
|
||||
*/
|
||||
offClockTime?: string;
|
||||
|
||||
/**
|
||||
* 打卡日期
|
||||
*/
|
||||
clockDate?: string;
|
||||
|
||||
/**
|
||||
* 1正常,2迟到,3早退,4缺勤,5补卡
|
||||
*/
|
||||
clockStatus?: string;
|
||||
|
||||
/**
|
||||
* 代打人员id
|
||||
*/
|
||||
pinchUserId?: string | number;
|
||||
|
||||
/**
|
||||
* 多次打卡时间记录
|
||||
*/
|
||||
clockRecord?: string;
|
||||
|
||||
/**
|
||||
* 上下班(1上班,2下班)
|
||||
*/
|
||||
commuter?: string;
|
||||
|
||||
/**
|
||||
* 日薪
|
||||
*/
|
||||
dailyWage?: number;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
lng?: string;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
lat?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface AttendanceQuery extends PageQuery {
|
||||
/**
|
||||
* 人员姓名
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
typeOfWork?: string | number;
|
||||
teamId?: string | number;
|
||||
|
||||
/**
|
||||
* 打卡日期
|
||||
*/
|
||||
clockDate?: string;
|
||||
|
||||
/**
|
||||
* 1正常,2迟到,3早退,4缺勤,5补卡
|
||||
*/
|
||||
clockStatus?: string;
|
||||
|
||||
/**
|
||||
* 上下班(1上班,2下班)
|
||||
*/
|
||||
commuter?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
63
plus-ui/src/api/project/attendanceRecords/index.ts
Normal file
63
plus-ui/src/api/project/attendanceRecords/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { AttendanceVO, AttendanceForm, AttendanceQuery } from '@/api/project/attendance/types';
|
||||
|
||||
/**
|
||||
* 查询考勤列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listAttendance = (query?: AttendanceQuery): AxiosPromise<AttendanceVO[]> => {
|
||||
return request({
|
||||
url: '/project/attendance/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询考勤详细
|
||||
* @param id
|
||||
*/
|
||||
export const getAttendance = (id: string | number): AxiosPromise<AttendanceVO> => {
|
||||
return request({
|
||||
url: '/project/attendance/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增考勤
|
||||
* @param data
|
||||
*/
|
||||
export const addAttendance = (data: AttendanceForm) => {
|
||||
return request({
|
||||
url: '/project/attendance',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改考勤
|
||||
* @param data
|
||||
*/
|
||||
export const updateAttendance = (data: AttendanceForm) => {
|
||||
return request({
|
||||
url: '/project/attendance',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除考勤
|
||||
* @param id
|
||||
*/
|
||||
export const delAttendance = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/project/attendance/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
146
plus-ui/src/api/project/attendanceRecords/types.ts
Normal file
146
plus-ui/src/api/project/attendanceRecords/types.ts
Normal file
@ -0,0 +1,146 @@
|
||||
export interface AttendanceVO {
|
||||
/**
|
||||
* 人员姓名
|
||||
*/
|
||||
userName: string;
|
||||
|
||||
/**
|
||||
* 上班打卡时间
|
||||
*/
|
||||
onClockTime: string;
|
||||
|
||||
/**
|
||||
* 下班打卡时间
|
||||
*/
|
||||
offClockTime: string;
|
||||
|
||||
/**
|
||||
* 打卡日期
|
||||
*/
|
||||
clockDate: string;
|
||||
|
||||
/**
|
||||
* 1正常,2迟到,3早退,4缺勤,5补卡
|
||||
*/
|
||||
clockStatus: string;
|
||||
|
||||
/**
|
||||
* 上下班(1上班,2下班)
|
||||
*/
|
||||
commuter: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface AttendanceForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 人员id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 人脸照
|
||||
*/
|
||||
facePic?: string;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 上班打卡时间
|
||||
*/
|
||||
onClockTime?: string;
|
||||
|
||||
/**
|
||||
* 下班打卡时间
|
||||
*/
|
||||
offClockTime?: string;
|
||||
|
||||
/**
|
||||
* 打卡日期
|
||||
*/
|
||||
clockDate?: string;
|
||||
|
||||
/**
|
||||
* 1正常,2迟到,3早退,4缺勤,5补卡
|
||||
*/
|
||||
clockStatus?: string;
|
||||
|
||||
/**
|
||||
* 代打人员id
|
||||
*/
|
||||
pinchUserId?: string | number;
|
||||
|
||||
/**
|
||||
* 多次打卡时间记录
|
||||
*/
|
||||
clockRecord?: string;
|
||||
|
||||
/**
|
||||
* 上下班(1上班,2下班)
|
||||
*/
|
||||
commuter?: string;
|
||||
|
||||
/**
|
||||
* 日薪
|
||||
*/
|
||||
dailyWage?: number;
|
||||
|
||||
/**
|
||||
* 经度
|
||||
*/
|
||||
lng?: string;
|
||||
|
||||
/**
|
||||
* 纬度
|
||||
*/
|
||||
lat?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface AttendanceQuery extends PageQuery {
|
||||
/**
|
||||
* 人员姓名
|
||||
*/
|
||||
userName?: string;
|
||||
teamId?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 打卡日期
|
||||
*/
|
||||
clockDate?: string;
|
||||
|
||||
/**
|
||||
* 1正常,2迟到,3早退,4缺勤,5补卡
|
||||
*/
|
||||
clockStatus?: string;
|
||||
|
||||
/**
|
||||
* 上下班(1上班,2下班)
|
||||
*/
|
||||
commuter?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
40
plus-ui/src/api/project/constructionUserFile/index.ts
Normal file
40
plus-ui/src/api/project/constructionUserFile/index.ts
Normal file
@ -0,0 +1,40 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ConstructionUserFileVO, ConstructionUserFileForm, ConstructionUserFileQuery } from '@/api/project/constructionUserFile/types';
|
||||
|
||||
/**
|
||||
* 查询施工人员文件存储列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listConstructionUserFile = (query?: ConstructionUserFileQuery): AxiosPromise<ConstructionUserFileVO[]> => {
|
||||
return request({
|
||||
url: '/project/constructionUserFile/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询施工人员文件存储详细
|
||||
* @param data
|
||||
*/
|
||||
export const setConstructionUserFile = (data: ConstructionUserFileForm): AxiosPromise<string | number> => {
|
||||
return request({
|
||||
url: '/project/constructionUserFile/save',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除施工人员文件存储
|
||||
* @param id
|
||||
*/
|
||||
export const delConstructionUserFile = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/project/constructionUserFile/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
137
plus-ui/src/api/project/constructionUserFile/types.ts
Normal file
137
plus-ui/src/api/project/constructionUserFile/types.ts
Normal file
@ -0,0 +1,137 @@
|
||||
export interface ConstructionUserFileVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId: string | number;
|
||||
|
||||
/**
|
||||
* 文件类型
|
||||
*/
|
||||
fileType: string;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName: string;
|
||||
|
||||
/**
|
||||
* 文件路径
|
||||
*/
|
||||
path: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface ConstructionUserExitVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId: string | number;
|
||||
/**
|
||||
* 文件路径地址
|
||||
*/
|
||||
pathUrl: Array<string>;
|
||||
|
||||
/**
|
||||
* 身份证号码
|
||||
|
||||
*/
|
||||
sfzNumber: string;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId: string;
|
||||
/**
|
||||
* 班组id
|
||||
*/
|
||||
teamId: string;
|
||||
/**
|
||||
* 入场时间
|
||||
|
||||
*/
|
||||
entryDate: string;
|
||||
/**
|
||||
* 退场时间
|
||||
|
||||
*/
|
||||
leaveDate: string;
|
||||
|
||||
/**
|
||||
* 退场文件
|
||||
|
||||
*/
|
||||
path: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface ConstructionUserFileForm extends BaseEntity {
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 文件类型
|
||||
*/
|
||||
fileList?: Array<fileListType>;
|
||||
}
|
||||
|
||||
interface fileListType {
|
||||
fileId: string | number;
|
||||
fileType: string | number;
|
||||
}
|
||||
|
||||
export interface ConstructionUserFileQuery {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 文件类型
|
||||
*/
|
||||
fileType?: string;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
fileName?: string;
|
||||
|
||||
/**
|
||||
* 文件路径
|
||||
*/
|
||||
path?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
76
plus-ui/src/api/project/leave/index.ts
Normal file
76
plus-ui/src/api/project/leave/index.ts
Normal file
@ -0,0 +1,76 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { LeaveVO, LeaveForm, LeaveQuery } from '@/api/project/leave/types';
|
||||
import { AuditReissueCardForm } from '../reissueCard/types';
|
||||
|
||||
/**
|
||||
* 查询施工人员请假申请列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listLeave = (query?: LeaveQuery): AxiosPromise<LeaveVO[]> => {
|
||||
return request({
|
||||
url: '/project/leave/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询施工人员请假申请详细
|
||||
* @param id
|
||||
*/
|
||||
export const getLeave = (id: string | number): AxiosPromise<LeaveVO> => {
|
||||
return request({
|
||||
url: '/project/leave/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增施工人员请假申请
|
||||
* @param data
|
||||
*/
|
||||
export const addLeave = (data: LeaveForm) => {
|
||||
return request({
|
||||
url: '/project/leave',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改施工人员请假申请
|
||||
* @param data
|
||||
*/
|
||||
export const updateLeave = (data: LeaveForm) => {
|
||||
return request({
|
||||
url: '/project/leave',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除施工人员请假申请
|
||||
* @param id
|
||||
*/
|
||||
export const delLeave = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/project/leave/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 管理员审核施工人员请假申请
|
||||
* @param data
|
||||
*/
|
||||
export const AuditReissueCard = (data: AuditReissueCardForm) => {
|
||||
return request({
|
||||
url: '/project/leave/review/manager',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
206
plus-ui/src/api/project/leave/types.ts
Normal file
206
plus-ui/src/api/project/leave/types.ts
Normal file
@ -0,0 +1,206 @@
|
||||
export interface LeaveVO {
|
||||
/**
|
||||
* 申请人名字
|
||||
*/
|
||||
userName: string;
|
||||
id?: string | number;
|
||||
/**
|
||||
* 申请请假说明
|
||||
*/
|
||||
userExplain: string;
|
||||
status?: string;
|
||||
/**
|
||||
* 请假申请时间
|
||||
*/
|
||||
userTime: string;
|
||||
|
||||
/**
|
||||
* 请假类型(1事假 2病假)
|
||||
*/
|
||||
leaveType: string;
|
||||
|
||||
/**
|
||||
* 请假开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 请假结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 班组长名字
|
||||
*/
|
||||
gangerName: string;
|
||||
|
||||
/**
|
||||
* 班组长意见(1未读 2同意 3拒绝)
|
||||
*/
|
||||
gangerOpinion: string;
|
||||
|
||||
/**
|
||||
* 班组长说明
|
||||
*/
|
||||
gangerExplain: string;
|
||||
|
||||
/**
|
||||
* 班组长操作时间
|
||||
*/
|
||||
gangerTime: string;
|
||||
|
||||
/**
|
||||
* 管理员意见(1未读 2同意 3拒绝)
|
||||
*/
|
||||
managerOpinion: string;
|
||||
|
||||
/**
|
||||
* 管理员说明
|
||||
*/
|
||||
managerExplain: string;
|
||||
|
||||
/**
|
||||
* 管理员操作时间
|
||||
*/
|
||||
managerTime: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
managerName?: string;
|
||||
}
|
||||
|
||||
export interface LeaveForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 申请人id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 申请人名字
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
/**
|
||||
* 申请请假说明
|
||||
*/
|
||||
userExplain?: string;
|
||||
|
||||
/**
|
||||
* 请假申请时间
|
||||
*/
|
||||
userTime?: string;
|
||||
|
||||
/**
|
||||
* 请假类型(1事假 2病假)
|
||||
*/
|
||||
leaveType?: string;
|
||||
|
||||
/**
|
||||
* 请假开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 请假结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 班组长
|
||||
*/
|
||||
gangerId?: string | number;
|
||||
|
||||
/**
|
||||
* 班组长名字
|
||||
*/
|
||||
gangerName?: string;
|
||||
|
||||
/**
|
||||
* 班组长意见(1未读 2同意 3拒绝)
|
||||
*/
|
||||
gangerOpinion?: string;
|
||||
|
||||
/**
|
||||
* 班组长说明
|
||||
*/
|
||||
gangerExplain?: string;
|
||||
|
||||
/**
|
||||
* 班组长操作时间
|
||||
*/
|
||||
gangerTime?: string;
|
||||
|
||||
/**
|
||||
* 管理员意见(1未读 2同意 3拒绝)
|
||||
*/
|
||||
managerOpinion?: string;
|
||||
|
||||
/**
|
||||
* 管理员说明
|
||||
*/
|
||||
managerExplain?: string;
|
||||
|
||||
/**
|
||||
* 管理员操作时间
|
||||
*/
|
||||
managerTime?: string;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 班组id
|
||||
*/
|
||||
teamId?: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface LeaveQuery extends PageQuery {
|
||||
/**
|
||||
* 申请人名字
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
/**
|
||||
* 请假类型(1事假 2病假)
|
||||
*/
|
||||
leaveType?: string;
|
||||
|
||||
/**
|
||||
* 班组长意见(1未读 2同意 3拒绝)
|
||||
*/
|
||||
gangerOpinion?: string;
|
||||
|
||||
/**
|
||||
* 管理员意见(1未读 2同意 3拒绝)
|
||||
*/
|
||||
managerOpinion?: string;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 班组id
|
||||
*/
|
||||
teamId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
75
plus-ui/src/api/project/reissueCard/index.ts
Normal file
75
plus-ui/src/api/project/reissueCard/index.ts
Normal file
@ -0,0 +1,75 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ReissueCardVO, ReissueCardForm, ReissueCardQuery, AuditReissueCardForm } from '@/api/project/reissueCard/types';
|
||||
|
||||
/**
|
||||
* 查询施工人员补卡申请列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listReissueCard = (query?: ReissueCardQuery): AxiosPromise<ReissueCardVO[]> => {
|
||||
return request({
|
||||
url: '/project/reissueCard/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询施工人员补卡申请详细
|
||||
* @param id
|
||||
*/
|
||||
export const getReissueCard = (id: string | number): AxiosPromise<ReissueCardVO> => {
|
||||
return request({
|
||||
url: '/project/reissueCard/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增施工人员补卡申请
|
||||
* @param data
|
||||
*/
|
||||
export const addReissueCard = (data: ReissueCardForm) => {
|
||||
return request({
|
||||
url: '/project/reissueCard',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改施工人员补卡申请
|
||||
* @param data
|
||||
*/
|
||||
export const updateReissueCard = (data: ReissueCardForm) => {
|
||||
return request({
|
||||
url: '/project/reissueCard',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除施工人员补卡申请
|
||||
* @param id
|
||||
*/
|
||||
export const delReissueCard = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/project/reissueCard/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 管理员审核施工人员补卡申请
|
||||
* @param data
|
||||
*/
|
||||
export const AuditReissueCard = (data: AuditReissueCardForm) => {
|
||||
return request({
|
||||
url: '/project/reissueCard/review/manager',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
173
plus-ui/src/api/project/reissueCard/types.ts
Normal file
173
plus-ui/src/api/project/reissueCard/types.ts
Normal file
@ -0,0 +1,173 @@
|
||||
export interface ReissueCardVO {
|
||||
/**
|
||||
* 申请人名字
|
||||
*/
|
||||
userName: string;
|
||||
id?: string | number;
|
||||
status?: string;
|
||||
managerName?: string;
|
||||
/**
|
||||
* 申请补卡说明
|
||||
*/
|
||||
userExplain: string;
|
||||
|
||||
/**
|
||||
* 补卡申请时间
|
||||
*/
|
||||
userTime: string;
|
||||
|
||||
/**
|
||||
* 班组长名字
|
||||
*/
|
||||
gangerName: string;
|
||||
|
||||
/**
|
||||
* 班组长意见(1未读 2同意 3拒绝)
|
||||
*/
|
||||
gangerOpinion: string;
|
||||
|
||||
/**
|
||||
* 班组长说明
|
||||
*/
|
||||
gangerExplain: string;
|
||||
|
||||
/**
|
||||
* 班组长操作时间
|
||||
*/
|
||||
gangerTime: string;
|
||||
|
||||
/**
|
||||
* 管理员意见(1未读 2同意 3拒绝)
|
||||
*/
|
||||
managerOpinion: string;
|
||||
|
||||
/**
|
||||
* 管理员说明
|
||||
*/
|
||||
managerExplain: string;
|
||||
|
||||
/**
|
||||
* 管理员操作时间
|
||||
*/
|
||||
managerTime: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
export interface AuditReissueCardForm {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 管理员意见
|
||||
*/
|
||||
managerOpinion?: string;
|
||||
|
||||
/**
|
||||
* 管理员说明
|
||||
*/
|
||||
managerExplain?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface ReissueCardForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 申请人id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 申请补卡说明
|
||||
*/
|
||||
userExplain?: string;
|
||||
|
||||
/**
|
||||
* 班组长
|
||||
*/
|
||||
gangerId?: string | number;
|
||||
|
||||
/**
|
||||
* 班组长意见(1未读 2同意 3拒绝)
|
||||
*/
|
||||
gangerOpinion?: string;
|
||||
|
||||
/**
|
||||
* 班组长说明
|
||||
*/
|
||||
gangerExplain?: string;
|
||||
|
||||
/**
|
||||
* 管理员意见(1未读 2同意 3拒绝)
|
||||
*/
|
||||
managerOpinion?: string;
|
||||
|
||||
/**
|
||||
* 管理员说明
|
||||
*/
|
||||
managerExplain?: string;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 考勤表主键id
|
||||
*/
|
||||
attendanceId?: string | number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface ReissueCardQuery extends PageQuery {
|
||||
/**
|
||||
* 申请人名字
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
/**
|
||||
* 班组长意见(1未读 2同意 3拒绝)
|
||||
*/
|
||||
gangerOpinion?: string;
|
||||
|
||||
/**
|
||||
* 管理员意见(1未读 2同意 3拒绝)
|
||||
*/
|
||||
managerOpinion?: string;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 班组id
|
||||
*/
|
||||
teamId?: string | number;
|
||||
|
||||
/**
|
||||
* 补卡类型(1上班 2下班)
|
||||
*/
|
||||
reissueCardType?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
63
plus-ui/src/api/project/workerDailyReport/index.ts
Normal file
63
plus-ui/src/api/project/workerDailyReport/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { WorkerDailyReportVO, WorkerDailyReportForm, WorkerDailyReportQuery } from '@/api/project/workerDailyReport/types';
|
||||
|
||||
/**
|
||||
* 查询施工人员日报列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listWorkerDailyReport = (query?: WorkerDailyReportQuery): AxiosPromise<WorkerDailyReportVO[]> => {
|
||||
return request({
|
||||
url: '/project/workerDailyReport/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询施工人员日报详细
|
||||
* @param id
|
||||
*/
|
||||
export const getWorkerDailyReport = (id: string | number): AxiosPromise<WorkerDailyReportVO> => {
|
||||
return request({
|
||||
url: '/project/workerDailyReport/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增施工人员日报
|
||||
* @param data
|
||||
*/
|
||||
export const addWorkerDailyReport = (data: WorkerDailyReportForm) => {
|
||||
return request({
|
||||
url: '/project/workerDailyReport',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改施工人员日报
|
||||
* @param data
|
||||
*/
|
||||
export const updateWorkerDailyReport = (data: WorkerDailyReportForm) => {
|
||||
return request({
|
||||
url: '/project/workerDailyReport',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除施工人员日报
|
||||
* @param id
|
||||
*/
|
||||
export const delWorkerDailyReport = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/project/workerDailyReport/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
132
plus-ui/src/api/project/workerDailyReport/types.ts
Normal file
132
plus-ui/src/api/project/workerDailyReport/types.ts
Normal file
@ -0,0 +1,132 @@
|
||||
export interface WorkerDailyReportVO {
|
||||
/**
|
||||
* 申请人名字
|
||||
*/
|
||||
userName: string;
|
||||
userId?: string;
|
||||
id?: string;
|
||||
|
||||
/**
|
||||
* 今日完成工作
|
||||
*/
|
||||
todayCompletedWork: string;
|
||||
|
||||
/**
|
||||
* 未完成工作
|
||||
*/
|
||||
unfinishedWork: string;
|
||||
|
||||
/**
|
||||
* 明日工作
|
||||
*/
|
||||
tomorrowWork: string;
|
||||
|
||||
/**
|
||||
* 需协调与帮助
|
||||
*/
|
||||
coordinationHelp: string;
|
||||
}
|
||||
|
||||
export interface WorkerDailyReportForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
teamName?: string;
|
||||
resubmitReason?: string;
|
||||
reportDate?: string;
|
||||
isResubmit: string;
|
||||
|
||||
/**
|
||||
* 班组id
|
||||
*/
|
||||
teamId?: string | number;
|
||||
|
||||
/**
|
||||
* 申请人id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 申请人名字
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
/**
|
||||
* 今日完成工作
|
||||
*/
|
||||
todayCompletedWork?: string;
|
||||
|
||||
/**
|
||||
* 未完成工作
|
||||
*/
|
||||
unfinishedWork?: string;
|
||||
|
||||
/**
|
||||
* 明日工作
|
||||
*/
|
||||
tomorrowWork?: string;
|
||||
|
||||
/**
|
||||
* 需协调与帮助
|
||||
*/
|
||||
coordinationHelp?: string;
|
||||
|
||||
/**
|
||||
* 附件
|
||||
*/
|
||||
fileList?: Array<string>;
|
||||
dailyPieceItemVoList?: dailyPieceItemVO[];
|
||||
}
|
||||
|
||||
interface dailyPieceItemVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 计件类型
|
||||
*/
|
||||
pieceType?: string;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
pieceCount?: number;
|
||||
pieceUnit?: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface WorkerDailyReportQuery extends PageQuery {
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 班组id
|
||||
*/
|
||||
teamId?: string | number;
|
||||
|
||||
/**
|
||||
* 申请人id
|
||||
*/
|
||||
userId?: string | number;
|
||||
|
||||
/**
|
||||
* 申请人名字
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
isResubmit?: string;
|
||||
}
|
||||
63
plus-ui/src/api/quality/qualityConstructionLog/index.ts
Normal file
63
plus-ui/src/api/quality/qualityConstructionLog/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { QualityConstructionLogVO, QualityConstructionLogForm, QualityConstructionLogQuery } from '@/api/quality/qualityConstructionLog/types';
|
||||
|
||||
/**
|
||||
* 查询质量-施工日志列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listQualityConstructionLog = (query?: QualityConstructionLogQuery): AxiosPromise<QualityConstructionLogVO[]> => {
|
||||
return request({
|
||||
url: '/quality/qualityConstructionLog/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询质量-施工日志详细
|
||||
* @param id
|
||||
*/
|
||||
export const getQualityConstructionLog = (id: string | number): AxiosPromise<QualityConstructionLogVO> => {
|
||||
return request({
|
||||
url: '/quality/qualityConstructionLog/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增质量-施工日志
|
||||
* @param data
|
||||
*/
|
||||
export const addQualityConstructionLog = (data: QualityConstructionLogForm) => {
|
||||
return request({
|
||||
url: '/quality/qualityConstructionLog',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改质量-施工日志
|
||||
* @param data
|
||||
*/
|
||||
export const updateQualityConstructionLog = (data: QualityConstructionLogForm) => {
|
||||
return request({
|
||||
url: '/quality/qualityConstructionLog',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除质量-施工日志
|
||||
* @param id
|
||||
*/
|
||||
export const delQualityConstructionLog = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/quality/qualityConstructionLog/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
84
plus-ui/src/api/quality/qualityConstructionLog/types.ts
Normal file
84
plus-ui/src/api/quality/qualityConstructionLog/types.ts
Normal file
@ -0,0 +1,84 @@
|
||||
export interface QualityConstructionLogVO {
|
||||
/**
|
||||
* 发生日期
|
||||
*/
|
||||
happenDate: string;
|
||||
id?: string | number;
|
||||
projectName: string;
|
||||
createTime: string;
|
||||
fileList: any[];
|
||||
file?: string;
|
||||
/**
|
||||
* 生产情况
|
||||
*/
|
||||
productionStatus: string;
|
||||
|
||||
/**
|
||||
* 技术质量安全工作
|
||||
*/
|
||||
technologyQuality: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
createBy: string;
|
||||
}
|
||||
|
||||
export interface QualityConstructionLogForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 发生日期
|
||||
*/
|
||||
happenDate?: string;
|
||||
|
||||
/**
|
||||
* 生产情况
|
||||
*/
|
||||
productionStatus?: string;
|
||||
|
||||
/**
|
||||
* 技术质量安全工作
|
||||
*/
|
||||
technologyQuality?: string;
|
||||
|
||||
/**
|
||||
* 附件
|
||||
*/
|
||||
file?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface QualityConstructionLogQuery extends PageQuery {
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 发生日期
|
||||
*/
|
||||
happenDate?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
63
plus-ui/src/api/quality/qualityInspection/index.ts
Normal file
63
plus-ui/src/api/quality/qualityInspection/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { QualityInspectionVO, QualityInspectionForm, QualityInspectionQuery } from '@/api/quality/qualityInspection/types';
|
||||
|
||||
/**
|
||||
* 查询质量-检查工单列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listQualityInspection = (query?: QualityInspectionQuery): AxiosPromise<QualityInspectionVO[]> => {
|
||||
return request({
|
||||
url: '/quality/qualityInspection/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询质量-检查工单详细
|
||||
* @param id
|
||||
*/
|
||||
export const getQualityInspection = (id: string | number): AxiosPromise<QualityInspectionVO> => {
|
||||
return request({
|
||||
url: '/quality/qualityInspection/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增质量-检查工单
|
||||
* @param data
|
||||
*/
|
||||
export const addQualityInspection = (data: QualityInspectionForm) => {
|
||||
return request({
|
||||
url: '/quality/qualityInspection',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改质量-检查工单
|
||||
* @param data
|
||||
*/
|
||||
export const updateQualityInspection = (data: QualityInspectionForm) => {
|
||||
return request({
|
||||
url: '/quality/qualityInspection',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除质量-检查工单
|
||||
* @param id
|
||||
*/
|
||||
export const delQualityInspection = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/quality/qualityInspection/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
168
plus-ui/src/api/quality/qualityInspection/types.ts
Normal file
168
plus-ui/src/api/quality/qualityInspection/types.ts
Normal file
@ -0,0 +1,168 @@
|
||||
export interface QualityInspectionVO {
|
||||
verificationType: string;
|
||||
measure: string;
|
||||
/**
|
||||
* 巡检类型
|
||||
*/
|
||||
inspectionType: string;
|
||||
id?: string | number;
|
||||
projectName: string;
|
||||
rectificationFileList: any[];
|
||||
inspectionFile: string;
|
||||
correctorName: string;
|
||||
replyPeriodDate: string;
|
||||
rectificationTime: string;
|
||||
rectificationFile: string;
|
||||
verificationResult: string;
|
||||
/**
|
||||
* 巡检附件
|
||||
*/
|
||||
/**
|
||||
* 巡检标题
|
||||
*/
|
||||
inspectionHeadline: string;
|
||||
|
||||
/**
|
||||
* 巡检结果
|
||||
*/
|
||||
inspectionResult: string;
|
||||
|
||||
/**
|
||||
* 工单状态(1通知 2整改 3验证)
|
||||
*/
|
||||
inspectionStatus: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
createBy: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
}
|
||||
|
||||
export interface QualityInspectionForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检类型
|
||||
*/
|
||||
inspectionType?: string;
|
||||
|
||||
/**
|
||||
* 巡检标题
|
||||
*/
|
||||
inspectionHeadline?: string;
|
||||
|
||||
/**
|
||||
* 巡检结果
|
||||
*/
|
||||
inspectionResult?: string;
|
||||
|
||||
/**
|
||||
* 工单状态(1通知 2整改 3验证)
|
||||
*/
|
||||
inspectionStatus?: string;
|
||||
|
||||
/**
|
||||
* 巡检附件
|
||||
*/
|
||||
inspectionFile?: string;
|
||||
|
||||
/**
|
||||
* 班组id
|
||||
*/
|
||||
teamId?: string | number;
|
||||
|
||||
/**
|
||||
* 整改人(班组长)
|
||||
*/
|
||||
corrector?: string;
|
||||
|
||||
/**
|
||||
* 是否回复(1回复 2不回复)
|
||||
*/
|
||||
isReply?: string;
|
||||
|
||||
/**
|
||||
* 回复期限日期
|
||||
*/
|
||||
replyPeriodDate?: string;
|
||||
|
||||
/**
|
||||
* 整改反馈
|
||||
*/
|
||||
rectificationResult?: string;
|
||||
|
||||
/**
|
||||
* 整改时间
|
||||
*/
|
||||
rectificationTime?: string;
|
||||
|
||||
/**
|
||||
* 整改附件
|
||||
*/
|
||||
rectificationFile?: string;
|
||||
|
||||
/**
|
||||
* 验证结果
|
||||
*/
|
||||
verificationResult?: string;
|
||||
|
||||
/**
|
||||
* 验证状态(1通过 2未通过)
|
||||
*/
|
||||
verificationType?: string;
|
||||
|
||||
/**
|
||||
* 验证时间
|
||||
*/
|
||||
verificationTime?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface QualityInspectionQuery extends PageQuery {
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 巡检类型
|
||||
*/
|
||||
inspectionType?: string;
|
||||
|
||||
/**
|
||||
* 工单状态(1通知 2整改 3验证)
|
||||
*/
|
||||
inspectionStatus?: string;
|
||||
|
||||
/**
|
||||
* 班组id
|
||||
*/
|
||||
teamId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
87
plus-ui/src/api/safety/documentSafetyMeeting/index.ts
Normal file
87
plus-ui/src/api/safety/documentSafetyMeeting/index.ts
Normal file
@ -0,0 +1,87 @@
|
||||
import request from '@/utils/request';
|
||||
import {
|
||||
documentSafetyMeetingListFile,
|
||||
documentSafetyMeetingListFolder,
|
||||
documentSafetyMeetingListQuery,
|
||||
documentSafetyMeetingListVo,
|
||||
documentRecycleBinListQuery,
|
||||
documentRecycleBinListVO
|
||||
} from './type';
|
||||
import { AxiosPromise } from 'axios';
|
||||
// 查询安全会议结构
|
||||
export function documentCompletionTreeStructure(query: object) {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
// 查询安全会议文件列表
|
||||
export function documentCompletionList(query: documentSafetyMeetingListQuery): AxiosPromise<documentSafetyMeetingListVo> {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
// 安全会议添加
|
||||
export function documentCompletionAdd(data: documentSafetyMeetingListFile) {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/file',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 安全会议修改文件名
|
||||
export function documentCompletionEdit(query: object) {
|
||||
return request({
|
||||
url: '/api/v1/system/documentSafetyMeeting/edit',
|
||||
method: 'put',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
// 安全会议删除文件
|
||||
export function documentCompletionDelete(id: string) {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
// 安全会议获取指定id信息
|
||||
export function documentCompletionGet(id: string) {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
// 新建文件夹
|
||||
export function newFolder(data: documentSafetyMeetingListFolder): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/folder',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
// 单文件下载
|
||||
export function uniFileDownload(query: object) {
|
||||
return request({
|
||||
url: '/api/v1/system/documentSafetyMeeting/safetyDataUniFileDownload',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
// 回收站恢复
|
||||
export function completionDataRecyclingStation(id: string[]) {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/recovery/' + id,
|
||||
method: 'put'
|
||||
});
|
||||
}
|
||||
// 回收站列表数据
|
||||
export function documentRecycleBinList(query: documentRecycleBinListQuery): AxiosPromise<documentRecycleBinListVO> {
|
||||
return request({
|
||||
url: '/safety/documentSafetyMeeting/recycleBin/list',
|
||||
method: 'get',
|
||||
params: { ...query, fileType: '2' }
|
||||
});
|
||||
}
|
||||
61
plus-ui/src/api/safety/documentSafetyMeeting/type.ts
Normal file
61
plus-ui/src/api/safety/documentSafetyMeeting/type.ts
Normal file
@ -0,0 +1,61 @@
|
||||
export interface documentSafetyMeetingListFolder {
|
||||
//新增文件夹
|
||||
projectId: string;
|
||||
pid?: string;
|
||||
fileName: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface documentSafetyMeetingListFile {
|
||||
//新增文件
|
||||
file: any;
|
||||
req?: reqQuery;
|
||||
}
|
||||
|
||||
export interface reqQuery {
|
||||
projectId: string;
|
||||
pid?: string;
|
||||
}
|
||||
|
||||
export interface documentSafetyMeetingListQuery {
|
||||
projectId: string;
|
||||
pid?: string;
|
||||
//1文件 2文件夹 3图片
|
||||
fileType?: string;
|
||||
}
|
||||
|
||||
export interface documentSafetyMeetingListVo {
|
||||
projectId: string;
|
||||
id: string;
|
||||
pid: string;
|
||||
fileName: string;
|
||||
fileStatus?: string;
|
||||
filePath: string;
|
||||
fileSuffix: string;
|
||||
originalName: string;
|
||||
remark?: string;
|
||||
//1文件 2文件夹 3图片
|
||||
fileType?: string;
|
||||
}
|
||||
|
||||
export interface documentRecycleBinListQuery {
|
||||
projectId: string;
|
||||
pid?: string;
|
||||
fileType?: string;
|
||||
pageSize?: number;
|
||||
pageNum?: number;
|
||||
orderByColumn?: string;
|
||||
isAsc?: string;
|
||||
}
|
||||
|
||||
export interface documentRecycleBinListVO {
|
||||
id: string;
|
||||
projectId: string;
|
||||
pid?: string;
|
||||
fileName?: string;
|
||||
filePath?: number;
|
||||
fileSuffix?: number;
|
||||
fileStatus?: string;
|
||||
originalName?: string;
|
||||
remark?: string;
|
||||
}
|
||||
63
plus-ui/src/api/safety/questionsCategory/index.ts
Normal file
63
plus-ui/src/api/safety/questionsCategory/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { QuestionsCategoryVO, QuestionsCategoryForm, QuestionsCategoryQuery } from '@/api/safety/questionsCategory/types';
|
||||
|
||||
/**
|
||||
* 查询题库类别列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listQuestionsCategory = (query?: QuestionsCategoryQuery): AxiosPromise<QuestionsCategoryVO[]> => {
|
||||
return request({
|
||||
url: '/safety/questionsCategory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询题库类别详细
|
||||
* @param id
|
||||
*/
|
||||
export const getQuestionsCategory = (id: string | number): AxiosPromise<QuestionsCategoryVO> => {
|
||||
return request({
|
||||
url: '/safety/questionsCategory/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增题库类别
|
||||
* @param data
|
||||
*/
|
||||
export const addQuestionsCategory = (data: QuestionsCategoryForm) => {
|
||||
return request({
|
||||
url: '/safety/questionsCategory',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改题库类别
|
||||
* @param data
|
||||
*/
|
||||
export const updateQuestionsCategory = (data: QuestionsCategoryForm) => {
|
||||
return request({
|
||||
url: '/safety/questionsCategory',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除题库类别
|
||||
* @param id
|
||||
*/
|
||||
export const delQuestionsCategory = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/safety/questionsCategory/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
41
plus-ui/src/api/safety/questionsCategory/types.ts
Normal file
41
plus-ui/src/api/safety/questionsCategory/types.ts
Normal file
@ -0,0 +1,41 @@
|
||||
export interface QuestionsCategoryVO {
|
||||
/**
|
||||
* 题库类别
|
||||
*/
|
||||
categoryName: string;
|
||||
id: string | number;
|
||||
}
|
||||
|
||||
export interface QuestionsCategoryForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 题库类别
|
||||
*/
|
||||
categoryName?: string;
|
||||
}
|
||||
|
||||
export interface QuestionsCategoryQuery extends PageQuery {
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 题库类别
|
||||
*/
|
||||
categoryName?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
Reference in New Issue
Block a user