This commit is contained in:
zhoutianchi
2026-02-25 18:19:14 +08:00
parent bfe088591e
commit 5c2d565843
3 changed files with 557 additions and 551 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -208,7 +208,7 @@
<el-table-column label="家长电话1" align="center" prop="parentTelOne" show-overflow-tooltip></el-table-column>
<el-table-column label="家长电话2" align="center" prop="parentTelTwo" show-overflow-tooltip></el-table-column>
<el-table-column prop="remarks" label="备注" align="center" show-overflow-tooltip />
<el-table-column label="操作" width="100" align="center" fixed="right">
<el-table-column label="操作" width="300" align="center" fixed="right">
<template #default="scope">
<el-button
v-if="hasAuth('recruit_newstucheckin_edit')"
@@ -219,6 +219,19 @@
>
报到
</el-button>
<el-button
v-if="hasAuth('recruit_recruitstudentsignup_leaveSchool')"
type="primary"
link
icon="EditPen"
@click="handleLeaveSchool(scope.row, false)"
>
退档
</el-button>
<el-button v-if="hasAuth('recruit_leaveSchool_force')" type="primary" link icon="EditPen" @click="handleLeaveSchool(scope.row, true)">
强制退档
</el-button>
</template>
</el-table-column>
</el-table>
@@ -240,7 +253,7 @@
import { ref, reactive, onMounted, defineAsyncComponent } from 'vue'
import { useAuth } from '/@/hooks/auth'
import { BasicTableProps, useTable } from '/@/hooks/table'
import { useMessage } from '/@/hooks/message'
import {useMessage, useMessageBox} from '/@/hooks/message'
import { fetchList } from '/@/api/recruit/newstucheckin'
import { getDictsByTypes } from '/@/api/admin/dict'
import { useDict } from '/@/hooks/dict'
@@ -251,6 +264,7 @@ import { getList } from '/@/api/recruit/recruitstudentplangroup'
import DetailPopover from '/@/components/DetailPopover/index.vue'
import ClickableTag from '/@/components/ClickableTag/index.vue'
import { InfoFilled, CircleCheck, CircleClose, DocumentChecked, Warning, Clock } from '@element-plus/icons-vue'
import {leaveSchool} from "/@/api/recruit/recruitstudentsignup";
const StuCheckIn = defineAsyncComponent(() => import('./stu-check-in.vue'))
const TeacherNameNo = defineAsyncComponent(() => import('/@/components/TeacherNameNo/index.vue'))
@@ -430,6 +444,19 @@ const init = async () => {
}
}
const handleLeaveSchool = (row: any, force: any) => {
var str = force? '强制' : '';
useMessageBox()
.confirm('是否确认'+str+'办理退档操作?请谨慎操作')
.then(() => {
return leaveSchool({ 'id':row.id,'force':force });
})
.then(() => {
message.success('操作成功');
getDataList();
});
};
onMounted(() => {
init()
})

View File

@@ -923,9 +923,10 @@ const majorChange = (id: string) => {
}
// 退学
const handleUpdate = (id: string, groupId: string, feeAgency: string) => {
messageBox.confirm('是否确认办理退学操作?请谨慎操作').then(() => {
return leaveSchool({ id, groupId, feeAgency })
const handleUpdate = (id: string, groupId: string, feeAgency: string,force:booleam) => {
var str=force?"强制":"";
messageBox.confirm('是否确认'+str+'办理退档操作?请谨慎操作').then(() => {
return leaveSchool({ id, groupId, feeAgency ,force})
}).then(() => {
message.success('操作成功')
getDataList()
@@ -1018,10 +1019,16 @@ const getActionMenuItems = (row: any) => {
},
{
command: 'leaveSchool',
label: '退',
label: '退',
icon: Close,
visible: () => hasAuth('recruit_recruitstudentsignup_leaveSchool') && row.canQuit
},
{
command: 'forceLeaveSchool',
label: '强制退档',
icon: Close,
visible: () => hasAuth('recruit_leaveSchool_force') && row.canQuit
},
// 复学
{
command: 'reEntry',
@@ -1081,7 +1088,10 @@ const handleMoreCommand = (command: string, row: any) => {
addOrUpdateHandle(row.id, 1)
break
case 'leaveSchool':
handleUpdate(row.id, row.groupId, row.feeAgency)
handleUpdate(row.id, row.groupId, row.feeAgency,false)
break
case 'forceLeaveSchool':
handleUpdate(row.id, row.groupId, row.feeAgency, true)
break
case 'reEntry':
reEntry(row.id)