“班主任0820考核数据更新”
This commit is contained in:
1 parent
ea739d328b
commit
166c850356
33 files changed
+3999
-127
No files matched your search
@@ -0,0 +1,108 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import {
|
||||
AssessmentApprovalQuery,
|
||||
AssessmentApprovalVO,
|
||||
AssessmentApprovalDetailVO,
|
||||
AssessmentApprovalSubmitBO
|
||||
} from './types';
|
||||
|
||||
/**
|
||||
* 查询班主任考核审核列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listAssessmentApproval = (query?: AssessmentApprovalQuery): AxiosPromise<AssessmentApprovalVO[]> => {
|
||||
return request({
|
||||
url: '/bzrkh/assessmentApproval/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取考核审核详情
|
||||
* @param planId 计划ID
|
||||
* @param classId 班级ID
|
||||
* @param evaluatedUserId 被评价用户ID
|
||||
* @returns {*}
|
||||
*/
|
||||
export const getAssessmentApprovalDetail = (planId: string | number, classId: string | number, evaluatedUserId: string | number): AxiosPromise<AssessmentApprovalDetailVO> => {
|
||||
return request({
|
||||
url: '/bzrkh/assessmentApproval/detail',
|
||||
method: 'get',
|
||||
params: {
|
||||
planId,
|
||||
classId,
|
||||
evaluatedUserId
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 提交考核审核
|
||||
* @param data 审核数据
|
||||
* @returns {*}
|
||||
*/
|
||||
export const submitAssessmentApproval = (data: AssessmentApprovalSubmitBO): AxiosPromise<void> => {
|
||||
return request({
|
||||
url: '/bzrkh/assessmentApproval/submit',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 批量审核通过
|
||||
* @param ids 审核ID列表
|
||||
* @returns {*}
|
||||
*/
|
||||
export const batchApproveAssessment = (ids: (string | number)[]): AxiosPromise<void> => {
|
||||
return request({
|
||||
url: '/bzrkh/assessmentApproval/batchApprove',
|
||||
method: 'post',
|
||||
data: { ids }
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 批量审核拒绝
|
||||
* @param ids 审核ID列表
|
||||
* @param rejectReason 拒绝原因
|
||||
* @returns {*}
|
||||
*/
|
||||
export const batchRejectAssessment = (ids: (string | number)[], rejectReason: string): AxiosPromise<void> => {
|
||||
return request({
|
||||
url: '/bzrkh/assessmentApproval/batchReject',
|
||||
method: 'post',
|
||||
data: {
|
||||
ids,
|
||||
rejectReason
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取考核方案下拉选项
|
||||
* @returns {*}
|
||||
*/
|
||||
export const getAssessmentSchemeOptions = (): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/bzrkh/assessmentApproval/schemeOptions',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 导出考核审核数据
|
||||
* @param query 查询条件
|
||||
* @returns {*}
|
||||
*/
|
||||
export const exportAssessmentApproval = (query?: AssessmentApprovalQuery): AxiosPromise<void> => {
|
||||
return request({
|
||||
url: '/bzrkh/assessmentApproval/export',
|
||||
method: 'post',
|
||||
data: query,
|
||||
responseType: 'blob'
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,220 @@
|
||||
/**
|
||||
* 班主任考核审核相关类型定义
|
||||
*/
|
||||
|
||||
/**
|
||||
* 审核列表查询参数
|
||||
*/
|
||||
export interface AssessmentApprovalQuery {
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
planName?: string;
|
||||
schemeName?: string;
|
||||
auditStatus?: string;
|
||||
className?: string;
|
||||
teacherName?: string;
|
||||
orderByColumn?: string;
|
||||
isAsc?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 审核列表VO
|
||||
*/
|
||||
export interface AssessmentApprovalVO {
|
||||
id?: string | number;
|
||||
planId?: string | number;
|
||||
planName?: string;
|
||||
planCode?: string;
|
||||
schemeId?: string | number;
|
||||
schemeName?: string;
|
||||
academicYear?: string;
|
||||
semester?: string;
|
||||
classId?: string | number;
|
||||
className?: string;
|
||||
teacherId?: string | number;
|
||||
teacherName?: string;
|
||||
evaluatedUserId?: string | number;
|
||||
evaluatedUserName?: string;
|
||||
submitTime?: string;
|
||||
auditStatus?: string;
|
||||
auditStatusText?: string;
|
||||
selfScore?: number;
|
||||
superiorScore?: number;
|
||||
finalScore?: number;
|
||||
createTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 审核详情VO - 继承自班主任提交的详情数据
|
||||
*/
|
||||
export interface AssessmentApprovalDetailVO {
|
||||
id?: string | number;
|
||||
planId?: string | number;
|
||||
classId?: string | number;
|
||||
|
||||
/**
|
||||
* 班级详细信息
|
||||
*/
|
||||
classDetail?: {
|
||||
id?: string | number;
|
||||
className?: string;
|
||||
collegeName?: string;
|
||||
majorName?: string;
|
||||
classType?: string;
|
||||
totalStudentCount?: number;
|
||||
boardingStudentCount?: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* 系数信息
|
||||
*/
|
||||
coefficient?: {
|
||||
totalCoefficient?: number;
|
||||
levelCoefficient?: number;
|
||||
studentCountCoefficient?: number;
|
||||
boardingCoefficient?: number;
|
||||
};
|
||||
|
||||
/**
|
||||
* 班主任常规工作指标列表 - 包含自评和上级评分
|
||||
*/
|
||||
routineWorkIndicators?: AssessmentApprovalIndicatorVO[];
|
||||
|
||||
/**
|
||||
* 班级扣分指标 - 班级管理实效
|
||||
*/
|
||||
classDeductionIndicator?: AssessmentApprovalIndicatorVO;
|
||||
|
||||
/**
|
||||
* 特色工作指标列表
|
||||
*/
|
||||
specialWorkIndicators?: AssessmentApprovalSpecialWorkVO[];
|
||||
|
||||
/**
|
||||
* 自我总体评价
|
||||
*/
|
||||
selfOverallComment?: string;
|
||||
|
||||
/**
|
||||
* 上级总体评价
|
||||
*/
|
||||
superiorOverallComment?: string;
|
||||
|
||||
/**
|
||||
* 月考核得分
|
||||
*/
|
||||
monthlyScore?: number;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
auditStatus?: string;
|
||||
|
||||
/**
|
||||
* 提交时间
|
||||
*/
|
||||
submitTime?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 审核指标VO - 包含自评和上级评分
|
||||
*/
|
||||
export interface AssessmentApprovalIndicatorVO {
|
||||
id?: string | number;
|
||||
indicatorId?: string | number;
|
||||
indicatorName?: string;
|
||||
indicatorCode?: string;
|
||||
description?: string;
|
||||
score?: number; // 指标分值
|
||||
maxScore?: number;
|
||||
|
||||
// 自评相关
|
||||
selfScore?: number;
|
||||
selfComment?: string;
|
||||
|
||||
// 上级评相关
|
||||
superiorScore?: number;
|
||||
superiorComment?: string;
|
||||
|
||||
// 审核状态
|
||||
auditStatus?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 特色工作审核VO
|
||||
*/
|
||||
export interface AssessmentApprovalSpecialWorkVO {
|
||||
id?: string | number;
|
||||
indicatorCode?: string;
|
||||
indicatorName?: string;
|
||||
|
||||
// 自评相关
|
||||
score?: number; // 自评分数
|
||||
selfComment?: string;
|
||||
|
||||
// 上级评相关
|
||||
superiorScore?: number;
|
||||
superiorComment?: string;
|
||||
|
||||
// 审核状态
|
||||
auditStatus?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 审核提交BO
|
||||
*/
|
||||
export interface AssessmentApprovalSubmitBO {
|
||||
planId?: string | number;
|
||||
classId?: string | number;
|
||||
evaluatedUserId?: string | number;
|
||||
|
||||
/**
|
||||
* 班主任常规工作审核数据
|
||||
*/
|
||||
routineWorkApproval?: AssessmentApprovalIndicatorSubmitVO[];
|
||||
|
||||
/**
|
||||
* 班级管理实效审核数据
|
||||
*/
|
||||
classDeductionApproval?: AssessmentApprovalIndicatorSubmitVO;
|
||||
|
||||
/**
|
||||
* 特色工作审核数据
|
||||
*/
|
||||
specialWorkApproval?: AssessmentApprovalSpecialWorkSubmitVO[];
|
||||
|
||||
/**
|
||||
* 上级总体评价
|
||||
*/
|
||||
superiorOverallComment?: string;
|
||||
|
||||
/**
|
||||
* 审核状态 0=待审核 1=审核通过 2=审核不通过
|
||||
*/
|
||||
auditStatus?: string;
|
||||
|
||||
/**
|
||||
* 审核意见
|
||||
*/
|
||||
auditComment?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 指标审核提交VO
|
||||
*/
|
||||
export interface AssessmentApprovalIndicatorSubmitVO {
|
||||
id?: string | number;
|
||||
indicatorId?: string | number;
|
||||
superiorScore?: number;
|
||||
superiorComment?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 特色工作审核提交VO
|
||||
*/
|
||||
export interface AssessmentApprovalSpecialWorkSubmitVO {
|
||||
id?: string | number;
|
||||
indicatorCode?: string;
|
||||
superiorScore?: number;
|
||||
superiorComment?: string;
|
||||
}
|
||||
@@ -29,7 +29,7 @@ export const listTeacherClasses = (query?: TeacherClassQuery): AxiosPromise<Teac
|
||||
*/
|
||||
export const listTeacherAssessmentPlans = (query?: TeacherAssessmentPlanQuery): AxiosPromise<TeacherAssessmentPlanVO[]> => {
|
||||
return request({
|
||||
url: '/bzrkh/assessmentPlan/list',
|
||||
url: '/bzrkh/teacherAssessment/plans',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
@@ -93,4 +93,20 @@ export const submitAssessmentScore = (data: AssessmentSubmitVO): AxiosPromise<vo
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 撤销考核提交
|
||||
* @param planId 计划ID
|
||||
* @param classId 班级ID
|
||||
*/
|
||||
export const withdrawAssessment = (planId: string | number, classId: string | number): AxiosPromise<void> => {
|
||||
return request({
|
||||
url: '/bzrkh/teacherAssessment/withdraw',
|
||||
method: 'post',
|
||||
data: {
|
||||
planId,
|
||||
classId
|
||||
}
|
||||
});
|
||||
};
|
||||
@@ -135,6 +135,21 @@ export interface TeacherAssessmentPlanVO {
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 审核状态(null=未提交,0=已提交待审核,1=审核通过,2=审核不通过)
|
||||
*/
|
||||
auditStatus?: string;
|
||||
|
||||
/**
|
||||
* 提交时间
|
||||
*/
|
||||
submitTime?: string;
|
||||
|
||||
/**
|
||||
* 是否已提交(用于前端按钮状态控制)
|
||||
*/
|
||||
submitted?: boolean;
|
||||
}
|
||||
|
||||
export interface TeacherAssessmentPlanQuery {
|
||||
|
||||
Reference in new issue
Block a user