提交代码

This commit is contained in:
zlwu committed 2025-09-08 21:40:29 +08:00
1 parent 9d03266e3a
commit 57e4d79721
19 files changed
+5028 -216

No files matched your search

@@ -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
});
};
+586
View File
@@ -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;
}