diff --git a/build_ui/src/views/train/checkin/index.vue b/build_ui/src/views/train/checkin/index.vue
index 1ba5aae4b..57748824f 100644
--- a/build_ui/src/views/train/checkin/index.vue
+++ b/build_ui/src/views/train/checkin/index.vue
@@ -55,8 +55,16 @@
{{ scope.row.remark || "-" }}
-
+
+ 签退
import { listCheckin } from '@/api/train/checkin'
-import { adjustAttendance } from '@/api/train/attendance'
+import { adjustAttendance, signOutAttendance } from '@/api/train/attendance'
export default {
name: 'Checkin',
@@ -206,6 +214,17 @@ export default {
this.adjustSubmitting = false
})
})
+ },
+ handleSignOut(row) {
+ this.$modal.confirm(`确认对学员【${row.studentName}】执行课次签退?`).then(() => {
+ return signOutAttendance({
+ enrollmentId: row.enrollmentId,
+ lessonId: row.lessonId
+ })
+ }).then(() => {
+ this.$modal.msgSuccess('签退成功')
+ this.getList()
+ }).catch(() => {})
}
}
}
diff --git a/build_ui/src/views/train/plan/components/EnrollmentPanel.vue b/build_ui/src/views/train/plan/components/EnrollmentPanel.vue
index 7c99a3036..5cf2632b5 100644
--- a/build_ui/src/views/train/plan/components/EnrollmentPanel.vue
+++ b/build_ui/src/views/train/plan/components/EnrollmentPanel.vue
@@ -120,6 +120,7 @@
标记请假
标记退训
+ 恢复参训
@@ -469,8 +470,15 @@ export default {
},
// ---- 变更参训状态 ----
handleStatusAction(command, row) {
- const status = Number(command)
- const label = status === 2 ? '请假' : '退训'
+ let status
+ let label
+ if (command === 'resume') {
+ status = row.joinTime ? 1 : 0
+ label = row.joinTime ? '恢复已报到归队' : '恢复待报到'
+ } else {
+ status = Number(command)
+ label = status === 2 ? '请假' : '退训'
+ }
this.$prompt(`请输入将学员【${row.studentName}】标记为【${label}】的备注原因:`, '变更参训状态', {
confirmButtonText: '确定',
cancelButtonText: '取消',