解决合并冲突
This commit is contained in:
commit
067957256d
263 files changed
+34712
-6492
No files matched your search
@@ -1,6 +1,12 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { AssessmentApprovalQuery, AssessmentApprovalVO, AssessmentApprovalDetailVO, AssessmentApprovalSubmitBO, EvaluationLevelStatsVO } from './types';
|
||||
import {
|
||||
AssessmentApprovalQuery,
|
||||
AssessmentApprovalVO,
|
||||
AssessmentApprovalDetailVO,
|
||||
AssessmentApprovalSubmitBO,
|
||||
EvaluationLevelStatsVO
|
||||
} from './types';
|
||||
|
||||
/**
|
||||
* 查询班主任考核审核列表
|
||||
|
||||
@@ -224,11 +224,12 @@ export interface AssessmentApprovalSpecialWorkSubmitVO {
|
||||
* 评价等级统计数据
|
||||
*/
|
||||
export interface EvaluationLevelStatsVO {
|
||||
totalTeachers: number; // 总班主任数量
|
||||
totalTeachers: number; // 总班主任数量
|
||||
scoreRankings: ScoreRankingVO[]; // 分数排名列表
|
||||
evaluationLevelRules: { // 评价等级规则
|
||||
aLevelMaxPercentage: number; // A等最大占比(如20%)
|
||||
passScore: number; // 及格分数(如60分)
|
||||
evaluationLevelRules: {
|
||||
// 评价等级规则
|
||||
aLevelMaxPercentage: number; // A等最大占比(如20%)
|
||||
passScore: number; // 及格分数(如60分)
|
||||
};
|
||||
}
|
||||
|
||||
@@ -236,8 +237,8 @@ export interface EvaluationLevelStatsVO {
|
||||
* 分数排名VO
|
||||
*/
|
||||
export interface ScoreRankingVO {
|
||||
score: number; // 考核得分
|
||||
ranking: number; // 排名(从1开始)
|
||||
percentage: number; // 百分比排名(前X%)
|
||||
score: number; // 考核得分
|
||||
ranking: number; // 排名(从1开始)
|
||||
percentage: number; // 百分比排名(前X%)
|
||||
evaluatedUserId?: string | number; // 被评价用户ID(可选,用于标识当前用户)
|
||||
}
|
||||
@@ -0,0 +1,217 @@
|
||||
import request from '@/utils/request';
|
||||
import type { AxiosPromise } from 'axios';
|
||||
import type { PageQuery, TableDataInfo } from '@/api/types';
|
||||
|
||||
/**
|
||||
* 项目审批流程查询参数
|
||||
*/
|
||||
export interface CwProjectApprovalQuery extends PageQuery {
|
||||
applicationNo?: string;
|
||||
projectName?: string;
|
||||
processStatus?: string;
|
||||
submitterName?: string;
|
||||
startTime?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 项目审批流程VO
|
||||
*/
|
||||
export interface CwProjectApprovalProcessVO {
|
||||
id: string | number;
|
||||
applicationId: string | number;
|
||||
applicationNo: string;
|
||||
processName: string;
|
||||
processStatus: string;
|
||||
totalNodes: number;
|
||||
currentNode: number;
|
||||
startTime: string;
|
||||
endTime: string;
|
||||
submitterId: string | number;
|
||||
submitterName: string;
|
||||
createTime: string;
|
||||
updateTime: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 审批记录VO
|
||||
*/
|
||||
export interface CwApprovalRecordVO {
|
||||
id: string | number;
|
||||
applicationId: string | number;
|
||||
applicationNo: string;
|
||||
processId: string | number;
|
||||
nodeCode: string;
|
||||
nodeName: string;
|
||||
customNodeName: string;
|
||||
nodeOrder: number;
|
||||
approverId: string | number;
|
||||
approverName: string;
|
||||
nodeStatus: string;
|
||||
approveAction: string;
|
||||
approveOpinion: string;
|
||||
startTime: string;
|
||||
endTime: string;
|
||||
isCustomProcess: boolean;
|
||||
createTime: string;
|
||||
updateTime: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 自定义审批流程启动请求
|
||||
*/
|
||||
export interface CwCustomApprovalRequest {
|
||||
applicationId: string | number;
|
||||
applicationNo: string;
|
||||
auditorIds: Array<string | number>;
|
||||
processName: string;
|
||||
submitterId: string | number;
|
||||
submitterName: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 审批操作请求
|
||||
*/
|
||||
export interface CwApprovalActionRequest {
|
||||
recordId: string | number;
|
||||
action: string; // approve | reject
|
||||
opinion: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询项目审批流程列表
|
||||
*/
|
||||
export function listProjectApproval(query: CwProjectApprovalQuery): AxiosPromise<TableDataInfo<CwProjectApprovalProcessVO>> {
|
||||
return request({
|
||||
url: '/cw/projectApproval/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取项目审批流程详细信息
|
||||
*/
|
||||
export function getProjectApproval(id: string | number): AxiosPromise<CwProjectApprovalProcessVO> {
|
||||
return request({
|
||||
url: '/cw/projectApproval/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 启动自定义审批流程
|
||||
*/
|
||||
export function startCustomApprovalProcess(data: CwCustomApprovalRequest): AxiosPromise<void> {
|
||||
return request({
|
||||
url: '/cw/projectApproval/start',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 执行审批操作(统一接口)
|
||||
*/
|
||||
export function approveProcess(data: CwApprovalActionRequest): AxiosPromise<void> {
|
||||
return request({
|
||||
url: '/cw/projectApproval/approve',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 打回申请(统一接口)
|
||||
*/
|
||||
export function rejectProcess(data: CwApprovalActionRequest): AxiosPromise<void> {
|
||||
return request({
|
||||
url: '/cw/projectApproval/approve',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 终止审批流程
|
||||
*/
|
||||
export function terminateProcess(id: string | number): AxiosPromise<void> {
|
||||
return request({
|
||||
url: '/cw/projectApproval/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取我的待审批列表
|
||||
*/
|
||||
export function getMyPendingApprovals(query?: CwProjectApprovalQuery): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/cw/projectApproval/pending',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取我的已审批列表
|
||||
*/
|
||||
export function getMyProcessedApprovals(query?: CwProjectApprovalQuery): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/cw/projectApproval/processed',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取审批记录
|
||||
*/
|
||||
export function getApprovalRecords(applicationId: string | number): AxiosPromise<CwApprovalRecordVO[]> {
|
||||
return request({
|
||||
url: '/cw/projectApproval/records/' + applicationId,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 验证审批流程
|
||||
*/
|
||||
export function validateApprovalProcess(data: CwCustomApprovalRequest): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/cw/projectApproval/validate',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取审批流程统计数据
|
||||
*/
|
||||
export function getApprovalStatistics(): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/cw/projectApproval/statistics',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出项目审批流程
|
||||
*/
|
||||
export function exportProjectApproval(query: CwProjectApprovalQuery): AxiosPromise<void> {
|
||||
return request({
|
||||
url: '/cw/projectApproval/export',
|
||||
method: 'post',
|
||||
data: query,
|
||||
responseType: 'blob'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取可用审核人选项
|
||||
*/
|
||||
export function getAuditorOptions(): AxiosPromise<any[]> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor/options',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,274 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
|
||||
/**
|
||||
* 项目审核人配置VO对象
|
||||
*/
|
||||
export interface CwProjectAuditorVO {
|
||||
id: string | number;
|
||||
userId: string | number;
|
||||
userName: string;
|
||||
nickName: string;
|
||||
deptId: string | number;
|
||||
deptName: string;
|
||||
phoneNumber: string;
|
||||
email: string;
|
||||
status: string;
|
||||
remark: string;
|
||||
configBy: string | number;
|
||||
configByName: string;
|
||||
createTime: string;
|
||||
updateTime: string;
|
||||
createBy: string | number;
|
||||
updateBy: string | number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 项目审核人配置表单对象
|
||||
*/
|
||||
export interface CwProjectAuditorForm {
|
||||
id?: string | number;
|
||||
userId: string | number;
|
||||
userName: string;
|
||||
nickName: string;
|
||||
deptId: string | number;
|
||||
deptName: string;
|
||||
phoneNumber?: string;
|
||||
email?: string;
|
||||
status: string;
|
||||
remark?: string;
|
||||
configBy?: string | number;
|
||||
configByName?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 项目审核人配置查询对象
|
||||
*/
|
||||
export interface CwProjectAuditorQuery {
|
||||
pageNum: number;
|
||||
pageSize: number;
|
||||
userName?: string;
|
||||
nickName?: string;
|
||||
deptId?: string | number;
|
||||
status?: string;
|
||||
configBy?: string | number;
|
||||
createTime?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量添加请求对象
|
||||
*/
|
||||
export interface BatchAddRequest {
|
||||
userIds: Array<string | number>;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量添加审核人详细请求对象(包含完整用户信息)
|
||||
*/
|
||||
export interface BatchAddDetailRequest {
|
||||
users: Array<{
|
||||
userId: string | number;
|
||||
userName: string;
|
||||
nickName: string;
|
||||
deptId: string | number;
|
||||
deptName: string;
|
||||
phoneNumber: string; // 注意:这里使用驼峰命名,确保与数据库字段映射
|
||||
email: string;
|
||||
}>;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 状态更新请求对象
|
||||
*/
|
||||
export interface StatusUpdateRequest {
|
||||
ids: Array<string | number>;
|
||||
status: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 部门用户对象
|
||||
*/
|
||||
export interface DeptUserVO {
|
||||
userId: string | number;
|
||||
userName: string;
|
||||
nickName: string;
|
||||
deptId: string | number;
|
||||
deptName: string;
|
||||
phonenumber: string;
|
||||
email: string;
|
||||
status: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询项目审核人配置列表
|
||||
*/
|
||||
export function listProjectAuditor(query: CwProjectAuditorQuery): AxiosPromise<{ rows: CwProjectAuditorVO[]; total: number }> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询项目审核人配置详细
|
||||
*/
|
||||
export function getProjectAuditor(id: string | number): AxiosPromise<CwProjectAuditorVO> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增项目审核人配置
|
||||
*/
|
||||
export function addProjectAuditor(data: CwProjectAuditorForm): AxiosPromise<void> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改项目审核人配置
|
||||
*/
|
||||
export function updateProjectAuditor(data: CwProjectAuditorForm): AxiosPromise<void> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除项目审核人配置
|
||||
*/
|
||||
export function delProjectAuditor(ids: Array<string | number>): AxiosPromise<void> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor/' + ids.join(','),
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量添加审核人
|
||||
*/
|
||||
export function batchAddProjectAuditor(data: BatchAddRequest): AxiosPromise<void> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor/batchAdd',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 注释掉:后端暂不支持带完整用户信息的批量添加接口
|
||||
// 使用 batchAddProjectAuditor 接口,后端会自动查询用户完整信息
|
||||
/**
|
||||
* 批量添加审核人(带完整用户信息)- 已弃用
|
||||
* 改用 batchAddProjectAuditor,后端会自动获取用户完整信息
|
||||
*/
|
||||
// export function batchAddProjectAuditorWithDetails(data: BatchAddDetailRequest): AxiosPromise<void> {
|
||||
// return request({
|
||||
// url: '/cw/projectAuditor/batchAddWithDetails',
|
||||
// method: 'post',
|
||||
// data: data
|
||||
// });
|
||||
// }
|
||||
|
||||
/**
|
||||
* 获取可用审核人列表
|
||||
*/
|
||||
export function listAvailableAuditors(): AxiosPromise<CwProjectAuditorVO[]> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor/available',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据部门ID获取用户列表
|
||||
*/
|
||||
export function listUserByDeptId(deptId: string | number): AxiosPromise<DeptUserVO[]> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor/deptUsers/' + deptId,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量更新状态
|
||||
*/
|
||||
export function updateAuditorStatus(data: StatusUpdateRequest): AxiosPromise<void> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor/status',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 我配置的审核人
|
||||
*/
|
||||
export function listMyConfigAuditors(query: CwProjectAuditorQuery): AxiosPromise<{ rows: CwProjectAuditorVO[]; total: number }> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor/myConfig',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取审核人选项(用于下拉选择)
|
||||
*/
|
||||
export function listAuditorOptions(): AxiosPromise<CwProjectAuditorVO[]> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor/options',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量启用
|
||||
*/
|
||||
export function enableAuditors(ids: Array<string | number>): AxiosPromise<void> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor/enable/' + ids.join(','),
|
||||
method: 'put'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量停用
|
||||
*/
|
||||
export function disableAuditors(ids: Array<string | number>): AxiosPromise<void> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor/disable/' + ids.join(','),
|
||||
method: 'put'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出项目审核人配置
|
||||
*/
|
||||
export function exportProjectAuditor(query: CwProjectAuditorQuery): AxiosPromise<void> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor/export',
|
||||
method: 'post',
|
||||
data: query,
|
||||
responseType: 'blob'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取审核人统计数据
|
||||
*/
|
||||
export function getAuditorStatistics(): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/cw/projectAuditor/statistics',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
@@ -203,3 +203,183 @@ export interface StatusDistribution {
|
||||
count: number;
|
||||
percentage: number;
|
||||
}
|
||||
|
||||
// ==================== 项目审批人配置相关类型 ====================
|
||||
|
||||
// 项目审批人配置查询对象
|
||||
export interface CwProjectAuditorQuery {
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
userName?: string;
|
||||
nickName?: string;
|
||||
deptId?: string | number;
|
||||
status?: string;
|
||||
configTime?: [string, string];
|
||||
configBy?: string | number;
|
||||
}
|
||||
|
||||
// 项目审批人配置视图对象
|
||||
export interface CwProjectAuditorVO {
|
||||
id?: string | number;
|
||||
userId?: string | number;
|
||||
userName?: string;
|
||||
nickName?: string;
|
||||
deptId?: string | number;
|
||||
deptName?: string;
|
||||
phoneNumber?: string;
|
||||
email?: string;
|
||||
status?: string;
|
||||
remark?: string;
|
||||
configBy?: string | number;
|
||||
configByName?: string;
|
||||
createBy?: string | number;
|
||||
createTime?: string;
|
||||
updateBy?: string | number;
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
// 项目审批人配置表单对象
|
||||
export interface CwProjectAuditorForm {
|
||||
id?: string | number;
|
||||
userId?: string | number;
|
||||
userName?: string;
|
||||
nickName?: string;
|
||||
deptId?: string | number;
|
||||
deptName?: string;
|
||||
phoneNumber?: string;
|
||||
email?: string;
|
||||
status?: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
// 批量添加审批人业务对象
|
||||
export interface CwProjectAuditorBatchBo {
|
||||
userIds: Array<string | number>;
|
||||
configBy: string | number;
|
||||
configByName: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
// ==================== 项目审批流程相关类型 ====================
|
||||
|
||||
// 审批流程查询对象
|
||||
export interface CwProjectApprovalProcessQuery {
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
applicationNo?: string;
|
||||
processName?: string;
|
||||
processStatus?: string;
|
||||
submitterId?: string | number;
|
||||
submitterName?: string;
|
||||
startTime?: [string, string];
|
||||
endTime?: [string, string];
|
||||
}
|
||||
|
||||
// 审批流程视图对象
|
||||
export interface CwProjectApprovalProcessVO {
|
||||
id?: string | number;
|
||||
applicationId?: string | number;
|
||||
applicationNo?: string;
|
||||
processName?: string;
|
||||
processStatus?: string;
|
||||
totalNodes?: number;
|
||||
currentNode?: number;
|
||||
startTime?: string;
|
||||
endTime?: string;
|
||||
submitterId?: string | number;
|
||||
submitterName?: string;
|
||||
createBy?: string | number;
|
||||
createTime?: string;
|
||||
updateBy?: string | number;
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
// 审批流程表单对象
|
||||
export interface CwProjectApprovalProcessForm {
|
||||
id?: string | number;
|
||||
applicationId?: string | number;
|
||||
applicationNo?: string;
|
||||
processName?: string;
|
||||
processStatus?: string;
|
||||
totalNodes?: number;
|
||||
currentNode?: number;
|
||||
startTime?: string;
|
||||
endTime?: string;
|
||||
submitterId?: string | number;
|
||||
submitterName?: string;
|
||||
}
|
||||
|
||||
// 审批记录查询对象
|
||||
export interface CwApprovalRecordQuery {
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
applicationId?: string | number;
|
||||
applicationNo?: string;
|
||||
processId?: string | number;
|
||||
approverId?: string | number;
|
||||
nodeStatus?: string;
|
||||
approveAction?: string;
|
||||
isCustomProcess?: boolean;
|
||||
startTime?: [string, string];
|
||||
endTime?: [string, string];
|
||||
}
|
||||
|
||||
// 审批记录视图对象
|
||||
export interface CwApprovalRecordVO {
|
||||
id?: string | number;
|
||||
applicationId?: string | number;
|
||||
applicationNo?: string;
|
||||
processId?: string | number;
|
||||
nodeCode?: string;
|
||||
nodeName?: string;
|
||||
customNodeName?: string;
|
||||
nodeOrder?: number;
|
||||
approverId?: string | number;
|
||||
approverName?: string;
|
||||
nodeStatus?: string;
|
||||
approveAction?: string;
|
||||
approveOpinion?: string;
|
||||
startTime?: string;
|
||||
endTime?: string;
|
||||
isCustomProcess?: boolean;
|
||||
createBy?: string | number;
|
||||
createTime?: string;
|
||||
updateBy?: string | number;
|
||||
updateTime?: string;
|
||||
// 关联的申请信息
|
||||
projectName?: string;
|
||||
submitterName?: string;
|
||||
totalInvestment?: number;
|
||||
}
|
||||
|
||||
// 自定义审批业务对象
|
||||
export interface CwCustomApprovalBo {
|
||||
applicationId: string | number;
|
||||
auditorIds: Array<string | number>;
|
||||
processName?: string;
|
||||
submitterId?: string | number;
|
||||
submitterName?: string;
|
||||
}
|
||||
|
||||
// 审批操作业务对象
|
||||
export interface CwApprovalActionBo {
|
||||
recordId: string | number;
|
||||
action: string; // 'approve' | 'reject'
|
||||
opinion: string;
|
||||
approverId?: string | number;
|
||||
approverName?: string;
|
||||
}
|
||||
|
||||
// =====================================================
|
||||
// 扩展审批记录视图对象
|
||||
// =====================================================
|
||||
export interface CwApprovalRecordExtendedVO extends CwApprovalRecordVO {
|
||||
processId?: string | number;
|
||||
customNodeName?: string;
|
||||
isCustomProcess?: boolean;
|
||||
|
||||
// 关联项目信息(用于显示)
|
||||
projectName?: string;
|
||||
totalInvestment?: number;
|
||||
applicantName?: string;
|
||||
}
|
||||
@@ -59,4 +59,4 @@ export function getTeamsByActivityId(activityId: string | number) {
|
||||
url: '/stgl/activityteaminfo/activity/' + activityId,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -238,4 +238,4 @@ export interface StglActivityTeamInfoVo {
|
||||
* 更新时间
|
||||
*/
|
||||
updateTime?: string;
|
||||
}
|
||||
}
|
||||
@@ -61,4 +61,4 @@ export function exportStglClass(query: StglClassQuery) {
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -314,4 +314,4 @@ export interface StglClassDetailVO {
|
||||
* 年级
|
||||
*/
|
||||
grade: string;
|
||||
}
|
||||
}
|
||||
@@ -71,3 +71,11 @@ export const delDept = (deptId: number | string) => {
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
// 查询部门选项列表 (实际调用 list 接口)
|
||||
export const listDeptOptions = (): AxiosPromise<DeptVO[]> => {
|
||||
return request({
|
||||
url: '/system/dept/list',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
@@ -67,6 +67,14 @@ export interface R<T = any> {
|
||||
data: T;
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询基础接口
|
||||
*/
|
||||
export interface PageQuery {
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页数据信息
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,86 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export interface StudentStatisticsBo {
|
||||
startTime: string
|
||||
endTime: string
|
||||
collegeId?: number
|
||||
majorId?: number
|
||||
classId?: number
|
||||
}
|
||||
|
||||
export interface StatisticsChartData {
|
||||
name: string
|
||||
dormDeductionCount: number
|
||||
dormViolationCount: number
|
||||
dormViolationDeduction: number
|
||||
teachingViolationCount: number
|
||||
teachingViolationDeduction: number
|
||||
}
|
||||
|
||||
export interface StatisticsDetailData {
|
||||
id: number
|
||||
name: string
|
||||
parentName: string
|
||||
dormDeductionCount: number
|
||||
dormViolationCount: number
|
||||
dormViolationDeduction: number
|
||||
teachingViolationCount: number
|
||||
teachingViolationDeduction: number
|
||||
totalDeduction: number
|
||||
}
|
||||
|
||||
export interface StudentStatisticsVo {
|
||||
dimension: string
|
||||
chartData: StatisticsChartData[]
|
||||
detailData: StatisticsDetailData[]
|
||||
}
|
||||
|
||||
export interface CascadeOptionVo {
|
||||
id: number
|
||||
label: string
|
||||
value: string
|
||||
sort: number
|
||||
}
|
||||
|
||||
// 获取统计数据
|
||||
export function getStatistics(data: StudentStatisticsBo) {
|
||||
return request({
|
||||
url: '/xg/studentStatistics/statistics',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 导出统计数据
|
||||
export function exportStatistics(data: StudentStatisticsBo) {
|
||||
return request({
|
||||
url: '/xg/studentStatistics/export',
|
||||
method: 'post',
|
||||
data: data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取二级学院列表
|
||||
export function getColleges() {
|
||||
return request({
|
||||
url: '/xg/studentStatistics/colleges',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据学院ID获取专业列表
|
||||
export function getMajorsByCollegeId(collegeId: number) {
|
||||
return request({
|
||||
url: `/xg/studentStatistics/majors/${collegeId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据专业ID获取班级列表
|
||||
export function getClassesByMajorId(majorId: number) {
|
||||
return request({
|
||||
url: `/xg/studentStatistics/classes/${majorId}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { TableDataInfo } from '@/api/types';
|
||||
import {
|
||||
DormHygieneCheckVO,
|
||||
DormHygieneCheckForm,
|
||||
@@ -16,7 +17,7 @@ import {
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listDormHygieneCheck = (query?: DormHygieneCheckQuery): AxiosPromise<DormHygieneCheckVO[]> => {
|
||||
export const listDormHygieneCheck = (query?: DormHygieneCheckQuery): AxiosPromise<TableDataInfo<DormHygieneCheckVO[]>> => {
|
||||
return request({
|
||||
url: '/dormHygieneCheck/dormHygieneCheck/list',
|
||||
method: 'get',
|
||||
|
||||
@@ -49,6 +49,11 @@ export interface DormRoomVO {
|
||||
*/
|
||||
roomStatus: string;
|
||||
|
||||
/**
|
||||
* 排序号
|
||||
*/
|
||||
sort: number;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
@@ -106,6 +111,11 @@ export interface DormRoomForm extends BaseEntity {
|
||||
*/
|
||||
roomStatus?: string;
|
||||
|
||||
/**
|
||||
* 排序号
|
||||
*/
|
||||
sort?: number;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
@@ -158,6 +168,11 @@ export interface DormRoomQuery extends PageQuery {
|
||||
*/
|
||||
roomStatus?: string;
|
||||
|
||||
/**
|
||||
* 排序号
|
||||
*/
|
||||
sort?: number;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,158 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { HolidayStayVO, HolidayStayForm, HolidayStayQuery, StudentOptionVO, StudentOptionQuery } from '@/api/xg/xgss/holidayStay/holidayStay/types-sg';
|
||||
|
||||
/**
|
||||
* 查询假期留宿管理列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listHolidayStay = (query?: HolidayStayQuery): AxiosPromise<HolidayStayVO[]> => {
|
||||
return request({
|
||||
url: '/holidayStay/holidayStay/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询假期留宿管理详细
|
||||
* @param id
|
||||
*/
|
||||
export const getHolidayStay = (id: string | number): AxiosPromise<HolidayStayVO> => {
|
||||
return request({
|
||||
url: '/holidayStay/holidayStay/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增假期留宿管理
|
||||
* @param data
|
||||
*/
|
||||
export const addHolidayStay = (data: HolidayStayForm) => {
|
||||
return request({
|
||||
url: '/holidayStay/holidayStay',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改假期留宿管理
|
||||
* @param data
|
||||
*/
|
||||
export const updateHolidayStay = (data: HolidayStayForm) => {
|
||||
return request({
|
||||
url: '/holidayStay/holidayStay',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除假期留宿管理
|
||||
* @param id
|
||||
*/
|
||||
export const delHolidayStay = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/holidayStay/holidayStay/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取学生选择器选项列表(支持按学号、姓名检索)
|
||||
* @param query 查询参数
|
||||
* @returns 学生选项列表
|
||||
*/
|
||||
export const getStudentOptions = (
|
||||
query?: StudentOptionQuery
|
||||
): AxiosPromise<{
|
||||
total: number;
|
||||
rows: StudentOptionVO[];
|
||||
}> => {
|
||||
return request({
|
||||
url: '/holidayStay/holidayStay/studentOptions',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询单人留宿有效数据
|
||||
* 获取所有有效的假期留宿数据,筛选出在同一时间段内该宿舍只有一个学生留宿的记录
|
||||
* @param query 查询参数,支持宿管员权限过滤
|
||||
* @returns 单人留宿有效数据列表
|
||||
*/
|
||||
export const getSinglePersonValidStay = (query?: any): AxiosPromise<HolidayStayVO[]> => {
|
||||
return request({
|
||||
url: '/holidayStay/holidayStay/singlePersonValidStay',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取校区选项列表
|
||||
* @returns 校区选项列表
|
||||
*/
|
||||
export const getCampusOptions = (): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/xqxx/dormCampus/list',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取指定校区的宿舍区选项列表
|
||||
* @param campusId 校区ID
|
||||
* @returns 宿舍区选项列表
|
||||
*/
|
||||
export const getAreaOptions = (campusId?: string | number): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/ssqxx/dormArea/list',
|
||||
method: 'get',
|
||||
params: campusId ? { campusId } : undefined
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取指定宿舍区的宿舍楼选项列表
|
||||
* @param areaId 宿舍区ID
|
||||
* @returns 宿舍楼选项列表
|
||||
*/
|
||||
export const getBuildingOptions = (areaId?: string | number): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/sslxx/dormBuilding/list',
|
||||
method: 'get',
|
||||
params: areaId ? { areaId } : undefined
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取指定宿舍楼的房间选项列表
|
||||
* @param buildingId 宿舍楼ID
|
||||
* @returns 房间选项列表
|
||||
*/
|
||||
export const getRoomOptions = (buildingId?: string | number): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/xgss/dormRoom/list',
|
||||
method: 'get',
|
||||
params: buildingId ? { buildingId } : undefined
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取指定房间的床位选项列表
|
||||
* @param roomId 房间ID
|
||||
* @returns 床位选项列表
|
||||
*/
|
||||
export const getBedOptions = (roomId?: string | number): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/dormbed/dormBed/list',
|
||||
method: 'get',
|
||||
params: roomId ? { roomId } : undefined
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,751 @@
|
||||
export interface HolidayStayVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted: number;
|
||||
|
||||
/**
|
||||
* 学生ID,关联xg_student_msg.id
|
||||
*/
|
||||
studentId: string | number;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
studentName: string;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo: string;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
classId: string | number;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
className: string;
|
||||
|
||||
/**
|
||||
* 专业ID
|
||||
*/
|
||||
majorId: string | number;
|
||||
|
||||
/**
|
||||
* 专业名称
|
||||
*/
|
||||
majorName: string;
|
||||
|
||||
/**
|
||||
* 学院ID
|
||||
*/
|
||||
collegeId: string | number;
|
||||
|
||||
/**
|
||||
* 学院名称
|
||||
*/
|
||||
collegeName: string;
|
||||
|
||||
/**
|
||||
* 校区ID,关联xg_dorm_campus.id
|
||||
*/
|
||||
campusId: string | number;
|
||||
|
||||
/**
|
||||
* 校区名称
|
||||
*/
|
||||
campusName: string;
|
||||
|
||||
/**
|
||||
* 宿舍区ID,关联xg_dorm_area.id
|
||||
*/
|
||||
areaId: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍区名称
|
||||
*/
|
||||
areaName: string;
|
||||
|
||||
/**
|
||||
* 宿舍楼ID,关联xg_dorm_building.id
|
||||
*/
|
||||
buildingId: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍楼名称
|
||||
*/
|
||||
buildingName: string;
|
||||
|
||||
/**
|
||||
* 房间ID,关联xg_dorm_room.id
|
||||
*/
|
||||
roomId: string | number;
|
||||
|
||||
/**
|
||||
* 房间名称
|
||||
*/
|
||||
roomName: string;
|
||||
|
||||
/**
|
||||
* 床位ID,关联xg_dorm_bed.id
|
||||
*/
|
||||
bedId: string | number;
|
||||
|
||||
/**
|
||||
* 床位名称
|
||||
*/
|
||||
bedName: string;
|
||||
|
||||
/**
|
||||
* 假期类型(寒假、暑假、春节假期、国庆假期等)
|
||||
*/
|
||||
holidayType: string | number;
|
||||
|
||||
/**
|
||||
* 申请留宿开始日期
|
||||
*/
|
||||
applyStartDate: string;
|
||||
|
||||
/**
|
||||
* 申请留宿结束日期
|
||||
*/
|
||||
applyEndDate: string;
|
||||
|
||||
/**
|
||||
* 留宿原因(必填)
|
||||
*/
|
||||
stayReason: string;
|
||||
|
||||
/**
|
||||
* 留宿原因类型(学习、实习、家庭困难、其他)
|
||||
*/
|
||||
stayReasonType: string;
|
||||
|
||||
/**
|
||||
* 学生联系电话
|
||||
*/
|
||||
studentPhone: string;
|
||||
|
||||
/**
|
||||
* 紧急联系人姓名
|
||||
*/
|
||||
emergencyContact: string;
|
||||
|
||||
/**
|
||||
* 紧急联系人电话
|
||||
*/
|
||||
emergencyPhone: string;
|
||||
|
||||
/**
|
||||
* 家长同意(0否 1是)
|
||||
*/
|
||||
parentConsent: string;
|
||||
|
||||
/**
|
||||
* 附件OSS文件ID,多个用逗号分隔(申请材料、证明文件等)
|
||||
*/
|
||||
attachmentOssIds: string | number;
|
||||
|
||||
/**
|
||||
* 扩展字段1
|
||||
*/
|
||||
extField1: string;
|
||||
|
||||
/**
|
||||
* 扩展字段2
|
||||
*/
|
||||
extField2: string;
|
||||
|
||||
/**
|
||||
* 扩展字段3
|
||||
*/
|
||||
extField3: string;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface HolidayStayForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted?: number;
|
||||
|
||||
/**
|
||||
* 学生ID,关联xg_student_msg.id
|
||||
*/
|
||||
studentId?: string | number;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
studentName?: string;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo?: string;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
classId?: string | number;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
className?: string;
|
||||
|
||||
/**
|
||||
* 专业ID
|
||||
*/
|
||||
majorId?: string | number;
|
||||
|
||||
/**
|
||||
* 专业名称
|
||||
*/
|
||||
majorName?: string;
|
||||
|
||||
/**
|
||||
* 学院ID
|
||||
*/
|
||||
collegeId?: string | number;
|
||||
|
||||
/**
|
||||
* 学院名称
|
||||
*/
|
||||
collegeName?: string;
|
||||
|
||||
/**
|
||||
* 校区ID,关联xg_dorm_campus.id
|
||||
*/
|
||||
campusId?: string | number;
|
||||
|
||||
/**
|
||||
* 校区名称
|
||||
*/
|
||||
campusName?: string;
|
||||
|
||||
/**
|
||||
* 宿舍区ID,关联xg_dorm_area.id
|
||||
*/
|
||||
areaId?: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍区名称
|
||||
*/
|
||||
areaName?: string;
|
||||
|
||||
/**
|
||||
* 宿舍楼ID,关联xg_dorm_building.id
|
||||
*/
|
||||
buildingId?: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍楼名称
|
||||
*/
|
||||
buildingName?: string;
|
||||
|
||||
/**
|
||||
* 房间ID,关联xg_dorm_room.id
|
||||
*/
|
||||
roomId?: string | number;
|
||||
|
||||
/**
|
||||
* 房间名称
|
||||
*/
|
||||
roomName?: string;
|
||||
|
||||
/**
|
||||
* 床位ID,关联xg_dorm_bed.id
|
||||
*/
|
||||
bedId?: string | number;
|
||||
|
||||
/**
|
||||
* 床位名称
|
||||
*/
|
||||
bedName?: string;
|
||||
|
||||
/**
|
||||
* 假期类型(寒假、暑假、春节假期、国庆假期等)
|
||||
*/
|
||||
holidayType?: string | number;
|
||||
|
||||
/**
|
||||
* 申请留宿开始日期
|
||||
*/
|
||||
applyStartDate?: string;
|
||||
|
||||
/**
|
||||
* 申请留宿结束日期
|
||||
*/
|
||||
applyEndDate?: string;
|
||||
|
||||
/**
|
||||
* 留宿原因(必填)
|
||||
*/
|
||||
stayReason?: string;
|
||||
|
||||
/**
|
||||
* 留宿原因类型(学习、实习、家庭困难、其他)
|
||||
*/
|
||||
stayReasonType?: string;
|
||||
|
||||
/**
|
||||
* 学生联系电话
|
||||
*/
|
||||
studentPhone?: string;
|
||||
|
||||
/**
|
||||
* 紧急联系人姓名
|
||||
*/
|
||||
emergencyContact?: string;
|
||||
|
||||
/**
|
||||
* 紧急联系人电话
|
||||
*/
|
||||
emergencyPhone?: string;
|
||||
|
||||
/**
|
||||
* 家长同意(0否 1是)
|
||||
*/
|
||||
parentConsent?: string;
|
||||
|
||||
/**
|
||||
* 附件OSS文件ID,多个用逗号分隔(申请材料、证明文件等)
|
||||
*/
|
||||
attachmentOssIds?: string | number;
|
||||
|
||||
/**
|
||||
* 扩展字段1
|
||||
*/
|
||||
extField1?: string;
|
||||
|
||||
/**
|
||||
* 扩展字段2
|
||||
*/
|
||||
extField2?: string;
|
||||
|
||||
/**
|
||||
* 扩展字段3
|
||||
*/
|
||||
extField3?: string;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface HolidayStayQuery extends PageQuery {
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted?: number;
|
||||
|
||||
/**
|
||||
* 学生ID,关联xg_student_msg.id
|
||||
*/
|
||||
studentId?: string | number;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
studentName?: string;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo?: string;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
classId?: string | number;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
className?: string;
|
||||
|
||||
/**
|
||||
* 专业ID
|
||||
*/
|
||||
majorId?: string | number;
|
||||
|
||||
/**
|
||||
* 专业名称
|
||||
*/
|
||||
majorName?: string;
|
||||
|
||||
/**
|
||||
* 学院ID
|
||||
*/
|
||||
collegeId?: string | number;
|
||||
|
||||
/**
|
||||
* 学院名称
|
||||
*/
|
||||
collegeName?: string;
|
||||
|
||||
/**
|
||||
* 校区ID,关联xg_dorm_campus.id
|
||||
*/
|
||||
campusId?: string | number;
|
||||
|
||||
/**
|
||||
* 校区名称
|
||||
*/
|
||||
campusName?: string;
|
||||
|
||||
/**
|
||||
* 宿舍区ID,关联xg_dorm_area.id
|
||||
*/
|
||||
areaId?: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍区名称
|
||||
*/
|
||||
areaName?: string;
|
||||
|
||||
/**
|
||||
* 宿舍楼ID,关联xg_dorm_building.id
|
||||
*/
|
||||
buildingId?: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍楼名称
|
||||
*/
|
||||
buildingName?: string;
|
||||
|
||||
/**
|
||||
* 房间ID,关联xg_dorm_room.id
|
||||
*/
|
||||
roomId?: string | number;
|
||||
|
||||
/**
|
||||
* 房间名称
|
||||
*/
|
||||
roomName?: string;
|
||||
|
||||
/**
|
||||
* 床位ID,关联xg_dorm_bed.id
|
||||
*/
|
||||
bedId?: string | number;
|
||||
|
||||
/**
|
||||
* 床位名称
|
||||
*/
|
||||
bedName?: string;
|
||||
|
||||
/**
|
||||
* 假期类型(寒假、暑假、春节假期、国庆假期等)
|
||||
*/
|
||||
holidayType?: string | number;
|
||||
|
||||
/**
|
||||
* 申请留宿开始日期
|
||||
*/
|
||||
applyStartDate?: string;
|
||||
|
||||
/**
|
||||
* 申请留宿结束日期
|
||||
*/
|
||||
applyEndDate?: string;
|
||||
|
||||
/**
|
||||
* 留宿原因(必填)
|
||||
*/
|
||||
stayReason?: string;
|
||||
|
||||
/**
|
||||
* 留宿原因类型(学习、实习、家庭困难、其他)
|
||||
*/
|
||||
stayReasonType?: string;
|
||||
|
||||
/**
|
||||
* 学生联系电话
|
||||
*/
|
||||
studentPhone?: string;
|
||||
|
||||
/**
|
||||
* 紧急联系人姓名
|
||||
*/
|
||||
emergencyContact?: string;
|
||||
|
||||
/**
|
||||
* 紧急联系人电话
|
||||
*/
|
||||
emergencyPhone?: string;
|
||||
|
||||
/**
|
||||
* 家长同意(0否 1是)
|
||||
*/
|
||||
parentConsent?: string;
|
||||
|
||||
/**
|
||||
* 附件OSS文件ID,多个用逗号分隔(申请材料、证明文件等)
|
||||
*/
|
||||
attachmentOssIds?: string | number;
|
||||
|
||||
/**
|
||||
* 扩展字段1
|
||||
*/
|
||||
extField1?: string;
|
||||
|
||||
/**
|
||||
* 扩展字段2
|
||||
*/
|
||||
extField2?: string;
|
||||
|
||||
/**
|
||||
* 扩展字段3
|
||||
*/
|
||||
extField3?: string;
|
||||
|
||||
/**
|
||||
* 状态过滤(valid-有效,invalid-失效)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生选择器选项
|
||||
*/
|
||||
export interface StudentOptionVO {
|
||||
/**
|
||||
* 学生ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo: string;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 性别:0-男,1-女
|
||||
*/
|
||||
gender: string;
|
||||
|
||||
/**
|
||||
* 学院ID
|
||||
*/
|
||||
collegeId?: string | number;
|
||||
|
||||
/**
|
||||
* 学院名称
|
||||
*/
|
||||
collegeName?: string;
|
||||
|
||||
/**
|
||||
* 专业ID
|
||||
*/
|
||||
majorId?: string | number;
|
||||
|
||||
/**
|
||||
* 专业名称
|
||||
*/
|
||||
majorName?: string;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
classId?: string | number;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
className?: string;
|
||||
|
||||
/**
|
||||
* 学生联系电话
|
||||
*/
|
||||
phone?: string;
|
||||
|
||||
/**
|
||||
* 宿舍信息
|
||||
*/
|
||||
dormInfo?: {
|
||||
campusId?: string | number;
|
||||
campusName?: string;
|
||||
areaId?: string | number;
|
||||
areaName?: string;
|
||||
buildingId?: string | number;
|
||||
buildingName?: string;
|
||||
roomId?: string | number;
|
||||
roomName?: string;
|
||||
bedId?: string | number;
|
||||
bedName?: string;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生选择器查询参数
|
||||
*/
|
||||
export interface StudentOptionQuery {
|
||||
/**
|
||||
* 搜索关键字(学号或姓名)
|
||||
*/
|
||||
keyword?: string;
|
||||
|
||||
/**
|
||||
* 页码
|
||||
*/
|
||||
pageNum?: number;
|
||||
|
||||
/**
|
||||
* 每页大小
|
||||
*/
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 校区选项
|
||||
*/
|
||||
export interface CampusOptionVO {
|
||||
/**
|
||||
* 校区ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 校区名称
|
||||
*/
|
||||
campusName: string;
|
||||
|
||||
/**
|
||||
* 校区编码
|
||||
*/
|
||||
campusCode?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 宿舍区选项
|
||||
*/
|
||||
export interface AreaOptionVO {
|
||||
/**
|
||||
* 宿舍区ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍区名称
|
||||
*/
|
||||
areaName: string;
|
||||
|
||||
/**
|
||||
* 校区ID
|
||||
*/
|
||||
campusId: string | number;
|
||||
|
||||
/**
|
||||
* 校区名称
|
||||
*/
|
||||
campusName?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 宿舍楼选项
|
||||
*/
|
||||
export interface BuildingOptionVO {
|
||||
/**
|
||||
* 宿舍楼ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍楼名称
|
||||
*/
|
||||
buildingName: string;
|
||||
|
||||
/**
|
||||
* 宿舍区ID
|
||||
*/
|
||||
areaId: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍区名称
|
||||
*/
|
||||
areaName?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 房间选项
|
||||
*/
|
||||
export interface RoomOptionVO {
|
||||
/**
|
||||
* 房间ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 房间名称
|
||||
*/
|
||||
roomName: string;
|
||||
|
||||
/**
|
||||
* 宿舍楼ID
|
||||
*/
|
||||
buildingId: string | number;
|
||||
|
||||
/**
|
||||
* 宿舍楼名称
|
||||
*/
|
||||
buildingName?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 床位选项
|
||||
*/
|
||||
export interface BedOptionVO {
|
||||
/**
|
||||
* 床位ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 床位名称
|
||||
*/
|
||||
bedName: string;
|
||||
|
||||
/**
|
||||
* 房间ID
|
||||
*/
|
||||
roomId: string | number;
|
||||
|
||||
/**
|
||||
* 房间名称
|
||||
*/
|
||||
roomName?: string;
|
||||
|
||||
/**
|
||||
* 床位状态(0-空闲,1-已分配,2-已入住)
|
||||
*/
|
||||
bedStatus?: string;
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { DormApplicationVO, DormApplicationForm, DormApplicationQuery, StudentOptionVO, StudentOptionQuery } from './types';
|
||||
|
||||
/**
|
||||
* 查询学生宿舍申请单表(调宿+退宿)列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listDormApplication = (query?: DormApplicationQuery): AxiosPromise<DormApplicationVO[]> => {
|
||||
return request({
|
||||
url: '/dormApplication/dormApplication/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询学生宿舍申请单表(调宿+退宿)详细
|
||||
* @param id
|
||||
*/
|
||||
export const getDormApplication = (id: string | number): AxiosPromise<DormApplicationVO> => {
|
||||
return request({
|
||||
url: '/dormApplication/dormApplication/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增学生宿舍申请单表(调宿+退宿)
|
||||
* @param data
|
||||
*/
|
||||
export const addDormApplication = (data: DormApplicationForm) => {
|
||||
return request({
|
||||
url: '/dormApplication/dormApplication',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改学生宿舍申请单表(调宿+退宿)
|
||||
* @param data
|
||||
*/
|
||||
export const updateDormApplication = (data: DormApplicationForm) => {
|
||||
return request({
|
||||
url: '/dormApplication/dormApplication',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除学生宿舍申请单表(调宿+退宿)
|
||||
* @param id
|
||||
*/
|
||||
export const delDormApplication = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/dormApplication/dormApplication/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取学生选择器选项列表(支持按学号、姓名检索)
|
||||
* @param query 查询参数
|
||||
* @returns 学生选项列表
|
||||
*/
|
||||
export const getStudentOptions = (
|
||||
query?: StudentOptionQuery
|
||||
): AxiosPromise<{
|
||||
total: number;
|
||||
rows: StudentOptionVO[];
|
||||
}> => {
|
||||
return request({
|
||||
url: '/holidayStay/holidayStay/studentOptions',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,586 @@
|
||||
export interface PageQuery {
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface DormApplicationVO {
|
||||
/**
|
||||
* 主键ID(雪花ID)
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 申请名称
|
||||
*/
|
||||
applicationName: string;
|
||||
|
||||
/**
|
||||
* 申请类型(1:调宿申请 2:退宿申请)
|
||||
*/
|
||||
applicationType: string;
|
||||
|
||||
/**
|
||||
* 审批状态:cancel-已撤销 , draft-草稿, waiting-待审核, finish-已完成, invalid-已作废, back-已退回, termination-已终止
|
||||
*/
|
||||
applicationStatus: string;
|
||||
|
||||
/**
|
||||
* 申请学生ID
|
||||
*/
|
||||
studentId: string | number;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo: string;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
studentName: string;
|
||||
|
||||
/**
|
||||
* 学生联系电话
|
||||
*/
|
||||
studentPhone: string;
|
||||
|
||||
/**
|
||||
* 学院ID
|
||||
*/
|
||||
collegeId: string | number;
|
||||
|
||||
/**
|
||||
* 学院名称
|
||||
*/
|
||||
collegeName: string;
|
||||
|
||||
/**
|
||||
* 专业ID
|
||||
*/
|
||||
majorId: string | number;
|
||||
|
||||
/**
|
||||
* 专业名称
|
||||
*/
|
||||
majorName: string;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
classId: string | number;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
className: string;
|
||||
|
||||
/**
|
||||
* 当前校区ID
|
||||
*/
|
||||
currentCampusId: string | number;
|
||||
|
||||
/**
|
||||
* 当前校区名称
|
||||
*/
|
||||
currentCampusName: string;
|
||||
|
||||
/**
|
||||
* 当前宿舍楼ID
|
||||
*/
|
||||
currentBuildingId: string | number;
|
||||
|
||||
/**
|
||||
* 当前宿舍楼名称
|
||||
*/
|
||||
currentBuildingName: string;
|
||||
|
||||
/**
|
||||
* 当前房间ID
|
||||
*/
|
||||
currentRoomId: string | number;
|
||||
|
||||
/**
|
||||
* 当前房间号
|
||||
*/
|
||||
currentRoomNo: string;
|
||||
|
||||
/**
|
||||
* 当前床位ID
|
||||
*/
|
||||
currentBedId: string | number;
|
||||
|
||||
/**
|
||||
* 当前床位号
|
||||
*/
|
||||
currentBedNo: string;
|
||||
|
||||
/**
|
||||
* 目标校区ID
|
||||
*/
|
||||
targetCampusId: string | number;
|
||||
|
||||
/**
|
||||
* 目标校区名称
|
||||
*/
|
||||
targetCampusName: string;
|
||||
|
||||
/**
|
||||
* 目标宿舍楼ID
|
||||
*/
|
||||
targetBuildingId: string | number;
|
||||
|
||||
/**
|
||||
* 目标宿舍楼名称
|
||||
*/
|
||||
targetBuildingName: string;
|
||||
|
||||
/**
|
||||
* 目标房间ID
|
||||
*/
|
||||
targetRoomId: string | number;
|
||||
|
||||
/**
|
||||
* 目标房间号
|
||||
*/
|
||||
targetRoomNo: string;
|
||||
|
||||
/**
|
||||
* 目标床位ID
|
||||
*/
|
||||
targetBedId: string | number;
|
||||
|
||||
/**
|
||||
* 目标床位号
|
||||
*/
|
||||
targetBedNo: string;
|
||||
|
||||
/**
|
||||
* 详细原因说明
|
||||
*/
|
||||
reasonDetail: string;
|
||||
|
||||
/**
|
||||
* 申请时间
|
||||
*/
|
||||
applyTime: string;
|
||||
|
||||
/**
|
||||
* 附件OSS文件ID,多个用逗号分隔
|
||||
*/
|
||||
attachmentOssIds: string;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 扩展字段1
|
||||
*/
|
||||
extField1: string;
|
||||
|
||||
/**
|
||||
* 扩展字段2
|
||||
*/
|
||||
extField2: string;
|
||||
|
||||
/**
|
||||
* 扩展字段3
|
||||
*/
|
||||
extField3: string;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 1代表删除)
|
||||
*/
|
||||
deleted: string;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
createBy: string | number;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
updateBy: string | number;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
updateTime: string;
|
||||
}
|
||||
|
||||
export interface DormApplicationForm {
|
||||
/**
|
||||
* 主键ID(雪花ID)
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 申请名称
|
||||
*/
|
||||
applicationName?: string;
|
||||
|
||||
/**
|
||||
* 申请类型(1:调宿申请 2:退宿申请)
|
||||
*/
|
||||
applicationType?: string;
|
||||
|
||||
/**
|
||||
* 审批状态:cancel-已撤销 , draft-草稿, waiting-待审核, finish-已完成, invalid-已作废, back-已退回, termination-已终止
|
||||
*/
|
||||
applicationStatus?: string;
|
||||
|
||||
/**
|
||||
* 申请学生ID
|
||||
*/
|
||||
studentId?: string | number;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo?: string;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
studentName?: string;
|
||||
|
||||
/**
|
||||
* 学生联系电话
|
||||
*/
|
||||
studentPhone?: string;
|
||||
|
||||
/**
|
||||
* 学院ID
|
||||
*/
|
||||
collegeId?: string | number;
|
||||
|
||||
/**
|
||||
* 学院名称
|
||||
*/
|
||||
collegeName?: string;
|
||||
|
||||
/**
|
||||
* 专业ID
|
||||
*/
|
||||
majorId?: string | number;
|
||||
|
||||
/**
|
||||
* 专业名称
|
||||
*/
|
||||
majorName?: string;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
classId?: string | number;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
className?: string;
|
||||
|
||||
/**
|
||||
* 当前校区ID
|
||||
*/
|
||||
currentCampusId?: string | number;
|
||||
|
||||
/**
|
||||
* 当前校区名称
|
||||
*/
|
||||
currentCampusName?: string;
|
||||
|
||||
/**
|
||||
* 当前宿舍楼ID
|
||||
*/
|
||||
currentBuildingId?: string | number;
|
||||
|
||||
/**
|
||||
* 当前宿舍楼名称
|
||||
*/
|
||||
currentBuildingName?: string;
|
||||
|
||||
/**
|
||||
* 当前房间ID
|
||||
*/
|
||||
currentRoomId?: string | number;
|
||||
|
||||
/**
|
||||
* 当前房间号
|
||||
*/
|
||||
currentRoomNo?: string;
|
||||
|
||||
/**
|
||||
* 当前床位ID
|
||||
*/
|
||||
currentBedId?: string | number;
|
||||
|
||||
/**
|
||||
* 当前床位号
|
||||
*/
|
||||
currentBedNo?: string;
|
||||
|
||||
/**
|
||||
* 目标校区ID
|
||||
*/
|
||||
targetCampusId?: string | number;
|
||||
|
||||
/**
|
||||
* 目标校区名称
|
||||
*/
|
||||
targetCampusName?: string;
|
||||
|
||||
/**
|
||||
* 目标宿舍楼ID
|
||||
*/
|
||||
targetBuildingId?: string | number;
|
||||
|
||||
/**
|
||||
* 目标宿舍楼名称
|
||||
*/
|
||||
targetBuildingName?: string;
|
||||
|
||||
/**
|
||||
* 目标房间ID
|
||||
*/
|
||||
targetRoomId?: string | number;
|
||||
|
||||
/**
|
||||
* 目标房间号
|
||||
*/
|
||||
targetRoomNo?: string;
|
||||
|
||||
/**
|
||||
* 目标床位ID
|
||||
*/
|
||||
targetBedId?: string | number;
|
||||
|
||||
/**
|
||||
* 目标床位号
|
||||
*/
|
||||
targetBedNo?: string;
|
||||
|
||||
/**
|
||||
* 详细原因说明
|
||||
*/
|
||||
reasonDetail?: string;
|
||||
|
||||
/**
|
||||
* 申请时间
|
||||
*/
|
||||
applyTime?: string;
|
||||
|
||||
/**
|
||||
* 附件OSS文件ID,多个用逗号分隔
|
||||
*/
|
||||
attachmentOssIds?: string;
|
||||
|
||||
/**
|
||||
* 紧急联系人姓名
|
||||
*/
|
||||
emergencyContact?: string;
|
||||
|
||||
/**
|
||||
* 紧急联系人电话
|
||||
*/
|
||||
emergencyPhone?: string;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 扩展字段1
|
||||
*/
|
||||
extField1?: string;
|
||||
|
||||
/**
|
||||
* 扩展字段2
|
||||
*/
|
||||
extField2?: string;
|
||||
|
||||
/**
|
||||
* 扩展字段3
|
||||
*/
|
||||
extField3?: string;
|
||||
}
|
||||
|
||||
export interface DormApplicationQuery extends PageQuery {
|
||||
/**
|
||||
* 申请名称
|
||||
*/
|
||||
applicationName?: string;
|
||||
|
||||
/**
|
||||
* 申请类型(1:调宿申请 2:退宿申请)
|
||||
*/
|
||||
applicationType?: string;
|
||||
|
||||
/**
|
||||
* 审批状态:cancel-已撤销 , draft-草稿, waiting-待审核, finish-已完成, invalid-已作废, back-已退回, termination-已终止
|
||||
*/
|
||||
applicationStatus?: string;
|
||||
|
||||
/**
|
||||
* 申请学生ID
|
||||
*/
|
||||
studentId?: string | number;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo?: string;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
studentName?: string;
|
||||
|
||||
/**
|
||||
* 学生联系电话
|
||||
*/
|
||||
studentPhone?: string;
|
||||
|
||||
/**
|
||||
* 学院ID
|
||||
*/
|
||||
collegeId?: string | number;
|
||||
|
||||
/**
|
||||
* 学院名称
|
||||
*/
|
||||
collegeName?: string;
|
||||
|
||||
/**
|
||||
* 专业ID
|
||||
*/
|
||||
majorId?: string | number;
|
||||
|
||||
/**
|
||||
* 专业名称
|
||||
*/
|
||||
majorName?: string;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
classId?: string | number;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
className?: string;
|
||||
|
||||
/**
|
||||
* 申请时间
|
||||
*/
|
||||
applyTime?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生选择器选项
|
||||
*/
|
||||
export interface StudentOptionVO {
|
||||
/**
|
||||
* 学生ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo: string;
|
||||
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 性别:0-男,1-女
|
||||
*/
|
||||
gender: string;
|
||||
|
||||
/**
|
||||
* 学院ID
|
||||
*/
|
||||
collegeId?: string | number;
|
||||
|
||||
/**
|
||||
* 学院名称
|
||||
*/
|
||||
collegeName?: string;
|
||||
|
||||
/**
|
||||
* 专业ID
|
||||
*/
|
||||
majorId?: string | number;
|
||||
|
||||
/**
|
||||
* 专业名称
|
||||
*/
|
||||
majorName?: string;
|
||||
|
||||
/**
|
||||
* 班级ID
|
||||
*/
|
||||
classId?: string | number;
|
||||
|
||||
/**
|
||||
* 班级名称
|
||||
*/
|
||||
className?: string;
|
||||
|
||||
/**
|
||||
* 学生联系电话
|
||||
*/
|
||||
phone?: string;
|
||||
|
||||
/**
|
||||
* 宿舍信息
|
||||
*/
|
||||
dormInfo?: {
|
||||
campusId?: string | number;
|
||||
campusName?: string;
|
||||
areaId?: string | number;
|
||||
areaName?: string;
|
||||
buildingId?: string | number;
|
||||
buildingName?: string;
|
||||
roomId?: string | number;
|
||||
roomName?: string;
|
||||
bedId?: string | number;
|
||||
bedName?: string;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生选择器查询参数
|
||||
*/
|
||||
export interface StudentOptionQuery {
|
||||
/**
|
||||
* 搜索关键字(学号或姓名)
|
||||
*/
|
||||
keyword?: string;
|
||||
|
||||
/**
|
||||
* 页码
|
||||
*/
|
||||
pageNum?: number;
|
||||
|
||||
/**
|
||||
* 每页大小
|
||||
*/
|
||||
pageSize?: number;
|
||||
}
|
||||
@@ -1,5 +1,10 @@
|
||||
import request from '@/utils/request';
|
||||
import { XskhAssessmentApplicationApprovalQuery, XskhAssessmentApplicationApprovalBo, XskhAssessmentApplicationApprovalVo, AvailableScheduleOption } from './types';
|
||||
import {
|
||||
XskhAssessmentApplicationApprovalQuery,
|
||||
XskhAssessmentApplicationApprovalBo,
|
||||
XskhAssessmentApplicationApprovalVo,
|
||||
AvailableScheduleOption
|
||||
} from './types';
|
||||
|
||||
// 查询学生考核申请列表
|
||||
export function listAssessmentApplication(query: XskhAssessmentApplicationApprovalQuery) {
|
||||
@@ -91,4 +96,4 @@ export function getIndicatorsByScheduleId(scheduleId: string | number) {
|
||||
url: `/assessment/application/indicators/${scheduleId}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -71,4 +71,4 @@ export function getAvailableAssessmentSchedules() {
|
||||
url: '/assessment/approval/available',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -138,4 +138,4 @@ export interface RewardTypeOption {
|
||||
typeCode: string;
|
||||
/** 类型名称 */
|
||||
typeName: string;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,12 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { TableDataInfo, R } from '@/api/types';
|
||||
import { XskhAssessmentIndicatorTypeVo, XskhAssessmentIndicatorTypeBo, XskhAssessmentIndicatorTypeQuery, XskhAssessmentIndicatorTypeForm } from './types';
|
||||
import {
|
||||
XskhAssessmentIndicatorTypeVo,
|
||||
XskhAssessmentIndicatorTypeBo,
|
||||
XskhAssessmentIndicatorTypeQuery,
|
||||
XskhAssessmentIndicatorTypeForm
|
||||
} from './types';
|
||||
|
||||
/**
|
||||
* 查询学生考核指标类型列表
|
||||
@@ -75,4 +80,4 @@ export function getEnabledAssessmentIndicatorTypes(): AxiosPromise<R<XskhAssessm
|
||||
url: '/assessment/indicatorType/enabled',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -86,4 +86,4 @@ export interface XskhAssessmentIndicatorTypeForm extends BaseEntity {
|
||||
status?: string;
|
||||
/** 排序号 */
|
||||
sortOrder?: number;
|
||||
}
|
||||
}
|
||||
@@ -75,4 +75,4 @@ export function getEnabledAssessmentPlans(): AxiosPromise<R<XskhAssessmentPlanVo
|
||||
url: '/assessment/plan/enabled',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -140,4 +140,4 @@ export interface AssessmentIndicatorOption {
|
||||
indicatorDescription: string;
|
||||
/** 最高分值 */
|
||||
maxScore: number;
|
||||
}
|
||||
}
|
||||
@@ -124,4 +124,4 @@ export function getEnabledAssessmentPlans(): AxiosPromise<R<any[]>> {
|
||||
url: '/assessment/plan/enabled',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -142,4 +142,4 @@ export interface AssessmentPlanOption {
|
||||
planName: string;
|
||||
/** 方案说明 */
|
||||
planDescription: string;
|
||||
}
|
||||
}
|
||||
@@ -98,12 +98,50 @@ export const applyDisciplineRevoke = (data: DisciplineRevokeForm) => {
|
||||
};
|
||||
|
||||
/**
|
||||
* 审核撤销申请
|
||||
* 查询班主任待审核的撤销申请列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listClassTeacherDisciplineRevoke = (query?: DisciplineRevokeQuery): AxiosPromise<DisciplineRevokeVO[]> => {
|
||||
return request({
|
||||
url: '/disciplineRevoke/disciplineRevoke/classTeacherList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 班主任审核撤销申请
|
||||
* @param data
|
||||
*/
|
||||
export const approveDisciplineRevoke = (data: DisciplineRevokeForm) => {
|
||||
export const teacherApproveDisciplineRevoke = (data: DisciplineRevokeForm) => {
|
||||
return request({
|
||||
url: '/disciplineRevoke/disciplineRevoke/approve',
|
||||
url: '/disciplineRevoke/disciplineRevoke/teacherApprove',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询学工处待审核的撤销申请列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listStudentAffairsDisciplineRevoke = (query?: DisciplineRevokeQuery): AxiosPromise<DisciplineRevokeVO[]> => {
|
||||
return request({
|
||||
url: '/disciplineRevoke/disciplineRevoke/studentAffairsList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 学工处审核撤销申请
|
||||
* @param data
|
||||
*/
|
||||
export const studentAffairsApproveDisciplineRevoke = (data: DisciplineRevokeForm) => {
|
||||
return request({
|
||||
url: '/disciplineRevoke/disciplineRevoke/studentAffairsApprove',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
|
||||
@@ -37,27 +37,47 @@ export interface DisciplineRevokeVO {
|
||||
applyTime: string;
|
||||
|
||||
/**
|
||||
* 状态(1-待审核 2-审核通过 3-审核拒绝)
|
||||
* 状态(1-待班主任审核 2-待学工处审核 3-审核通过 4-班主任审核拒绝 5-学工处审核拒绝)
|
||||
*/
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* 审核人ID
|
||||
* 班主任审核人ID
|
||||
*/
|
||||
teacherApprovalBy: string | number;
|
||||
|
||||
/**
|
||||
* 班主任审核人姓名
|
||||
*/
|
||||
teacherApprovalByName: string;
|
||||
|
||||
/**
|
||||
* 班主任审核时间
|
||||
*/
|
||||
teacherApprovalTime: string;
|
||||
|
||||
/**
|
||||
* 班主任审核备注
|
||||
*/
|
||||
teacherApprovalRemark: string;
|
||||
|
||||
/**
|
||||
* 学工处审核人ID
|
||||
*/
|
||||
approvalBy: string | number;
|
||||
|
||||
/**
|
||||
* 审核人姓名
|
||||
* 学工处审核人姓名
|
||||
*/
|
||||
approvalByName: string;
|
||||
|
||||
/**
|
||||
* 审核时间
|
||||
* 学工处审核时间
|
||||
*/
|
||||
approvalTime: string;
|
||||
|
||||
/**
|
||||
* 审核备注
|
||||
* 学工处审核备注
|
||||
*/
|
||||
approvalRemark: string;
|
||||
|
||||
@@ -80,6 +100,22 @@ export interface DisciplineRevokeVO {
|
||||
* 更新时间
|
||||
*/
|
||||
updateTime: string;
|
||||
|
||||
// 扩展字段(用于关联查询显示)
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo?: string;
|
||||
|
||||
/**
|
||||
* 违纪类型名称
|
||||
*/
|
||||
disciplineTypeName?: string;
|
||||
|
||||
/**
|
||||
* 违纪日期
|
||||
*/
|
||||
disciplineDate?: string;
|
||||
}
|
||||
|
||||
export interface DisciplineRevokeForm {
|
||||
@@ -119,22 +155,37 @@ export interface DisciplineRevokeForm {
|
||||
applyTime?: string;
|
||||
|
||||
/**
|
||||
* 状态(1-待审核 2-审核通过 3-审核拒绝)
|
||||
* 状态(1-待班主任审核 2-待学工处审核 3-审核通过 4-班主任审核拒绝 5-学工处审核拒绝)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 审核人ID
|
||||
* 班主任审核人ID
|
||||
*/
|
||||
teacherApprovalBy?: string | number;
|
||||
|
||||
/**
|
||||
* 班主任审核时间
|
||||
*/
|
||||
teacherApprovalTime?: string;
|
||||
|
||||
/**
|
||||
* 班主任审核备注
|
||||
*/
|
||||
teacherApprovalRemark?: string;
|
||||
|
||||
/**
|
||||
* 学工处审核人ID
|
||||
*/
|
||||
approvalBy?: string | number;
|
||||
|
||||
/**
|
||||
* 审核时间
|
||||
* 学工处审核时间
|
||||
*/
|
||||
approvalTime?: string;
|
||||
|
||||
/**
|
||||
* 审核备注
|
||||
* 学工处审核备注
|
||||
*/
|
||||
approvalRemark?: string;
|
||||
}
|
||||
@@ -155,6 +206,11 @@ export interface DisciplineRevokeQuery extends PageQuery {
|
||||
*/
|
||||
studentName?: string;
|
||||
|
||||
/**
|
||||
* 学号
|
||||
*/
|
||||
studentNo?: string;
|
||||
|
||||
/**
|
||||
* 撤销申请原因
|
||||
*/
|
||||
@@ -166,25 +222,30 @@ export interface DisciplineRevokeQuery extends PageQuery {
|
||||
applyTime?: string;
|
||||
|
||||
/**
|
||||
* 状态(1-待审核 2-审核通过 3-审核拒绝)
|
||||
* 状态(1-待班主任审核 2-待学工处审核 3-审核通过 4-班主任审核拒绝 5-学工处审核拒绝)
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 审核人ID
|
||||
* 班主任审核人ID
|
||||
*/
|
||||
teacherApprovalBy?: string | number;
|
||||
|
||||
/**
|
||||
* 班主任审核时间
|
||||
*/
|
||||
teacherApprovalTime?: string;
|
||||
|
||||
/**
|
||||
* 学工处审核人ID
|
||||
*/
|
||||
approvalBy?: string | number;
|
||||
|
||||
/**
|
||||
* 审核时间
|
||||
* 学工处审核时间
|
||||
*/
|
||||
approvalTime?: string;
|
||||
|
||||
/**
|
||||
* 审核备注
|
||||
*/
|
||||
approvalRemark?: string;
|
||||
|
||||
/**
|
||||
* 其他参数
|
||||
*/
|
||||
|
||||
@@ -19,6 +19,31 @@ export interface DisciplineTypeVO {
|
||||
*/
|
||||
typeCategory: string;
|
||||
|
||||
/**
|
||||
* 区域类型(1-宿舍区违纪 2-教学区违纪)
|
||||
*/
|
||||
areaType: string;
|
||||
|
||||
/**
|
||||
* 最低扣分
|
||||
*/
|
||||
minScore: number;
|
||||
|
||||
/**
|
||||
* 最高扣分
|
||||
*/
|
||||
maxScore: number;
|
||||
|
||||
/**
|
||||
* 是否均化(0-否 1-是)
|
||||
*/
|
||||
isEqualized: string;
|
||||
|
||||
/**
|
||||
* 均化阈值
|
||||
*/
|
||||
equalizedThreshold: number;
|
||||
|
||||
/**
|
||||
* 类型说明
|
||||
*/
|
||||
@@ -61,6 +86,31 @@ export interface DisciplineTypeForm extends BaseEntity {
|
||||
*/
|
||||
typeCategory?: string;
|
||||
|
||||
/**
|
||||
* 区域类型(1-宿舍区违纪 2-教学区违纪)
|
||||
*/
|
||||
areaType?: string;
|
||||
|
||||
/**
|
||||
* 最低扣分
|
||||
*/
|
||||
minScore?: number;
|
||||
|
||||
/**
|
||||
* 最高扣分
|
||||
*/
|
||||
maxScore?: number;
|
||||
|
||||
/**
|
||||
* 是否均化(0-否 1-是)
|
||||
*/
|
||||
isEqualized?: string;
|
||||
|
||||
/**
|
||||
* 均化阈值
|
||||
*/
|
||||
equalizedThreshold?: number;
|
||||
|
||||
/**
|
||||
* 类型说明
|
||||
*/
|
||||
@@ -98,6 +148,11 @@ export interface DisciplineTypeQuery extends PageQuery {
|
||||
*/
|
||||
typeCategory?: string;
|
||||
|
||||
/**
|
||||
* 区域类型(1-宿舍区违纪 2-教学区违纪)
|
||||
*/
|
||||
areaType?: string;
|
||||
|
||||
/**
|
||||
* 状态(0-正常 1-停用)
|
||||
*/
|
||||
|
||||
@@ -19,6 +19,16 @@ export interface RewardTypeVO {
|
||||
*/
|
||||
description: string;
|
||||
|
||||
/**
|
||||
* 是否均化(0-否 1-是)
|
||||
*/
|
||||
isEqualized: string;
|
||||
|
||||
/**
|
||||
* 均化阈值
|
||||
*/
|
||||
equalizedThreshold: number;
|
||||
|
||||
/**
|
||||
* 状态(0-正常 1-停用)
|
||||
*/
|
||||
@@ -56,6 +66,16 @@ export interface RewardTypeForm extends BaseEntity {
|
||||
*/
|
||||
description?: string;
|
||||
|
||||
/**
|
||||
* 是否均化(0-否 1-是)
|
||||
*/
|
||||
isEqualized?: string;
|
||||
|
||||
/**
|
||||
* 均化阈值
|
||||
*/
|
||||
equalizedThreshold?: number;
|
||||
|
||||
/**
|
||||
* 状态(0-正常 1-停用)
|
||||
*/
|
||||
@@ -88,6 +108,16 @@ export interface RewardTypeQuery extends PageQuery {
|
||||
*/
|
||||
description?: string;
|
||||
|
||||
/**
|
||||
* 是否均化(0-否 1-是)
|
||||
*/
|
||||
isEqualized?: string;
|
||||
|
||||
/**
|
||||
* 均化阈值
|
||||
*/
|
||||
equalizedThreshold?: number;
|
||||
|
||||
/**
|
||||
* 状态(0-正常 1-停用)
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user