Add receiving college review to approvals

This commit is contained in:
biss committed 2026-12-01 10:17:26 +08:00
1 parent 784b5b76f2
commit 3ce77d9cd9
3 files changed
+27 -3

No files matched your search

+2 -1
View File
@@ -651,7 +651,7 @@ async function rejectSubmit() {
async function submitReview(item: any, approved: boolean, comment: string) {
if (item.type === "StudentStatusChange")
await http.post(`/student-status-changes/${item.id}/review`, {
await http.post(`/student-status-changes/${item.id}/${item.stage === 'receivingCollege' ? 'receiving-college-review' : 'review'}`, {
approved,
comment: comment || null,
});
@@ -775,6 +775,7 @@ function updateOverdueHours(value: number | undefined) {
}
function approvalStageLabel(stage: string) {
if (stage === "receivingCollege") return attachmentText("转入学院审核", "Receiving college review");
if (stage === "counselor") return t("approvalCenterCounselorStage");
if (stage === "dormitory") return t("approvalCenterDormitoryStage");
return stage === "college"