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="家长电话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 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 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"> <template #default="scope">
<el-button <el-button
v-if="hasAuth('recruit_newstucheckin_edit')" v-if="hasAuth('recruit_newstucheckin_edit')"
@@ -219,6 +219,19 @@
> >
报到 报到
</el-button> </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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -240,7 +253,7 @@
import { ref, reactive, onMounted, defineAsyncComponent } from 'vue' import { ref, reactive, onMounted, defineAsyncComponent } from 'vue'
import { useAuth } from '/@/hooks/auth' import { useAuth } from '/@/hooks/auth'
import { BasicTableProps, useTable } from '/@/hooks/table' import { BasicTableProps, useTable } from '/@/hooks/table'
import { useMessage } from '/@/hooks/message' import {useMessage, useMessageBox} from '/@/hooks/message'
import { fetchList } from '/@/api/recruit/newstucheckin' import { fetchList } from '/@/api/recruit/newstucheckin'
import { getDictsByTypes } from '/@/api/admin/dict' import { getDictsByTypes } from '/@/api/admin/dict'
import { useDict } from '/@/hooks/dict' import { useDict } from '/@/hooks/dict'
@@ -251,6 +264,7 @@ import { getList } from '/@/api/recruit/recruitstudentplangroup'
import DetailPopover from '/@/components/DetailPopover/index.vue' import DetailPopover from '/@/components/DetailPopover/index.vue'
import ClickableTag from '/@/components/ClickableTag/index.vue' import ClickableTag from '/@/components/ClickableTag/index.vue'
import { InfoFilled, CircleCheck, CircleClose, DocumentChecked, Warning, Clock } from '@element-plus/icons-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 StuCheckIn = defineAsyncComponent(() => import('./stu-check-in.vue'))
const TeacherNameNo = defineAsyncComponent(() => import('/@/components/TeacherNameNo/index.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(() => { onMounted(() => {
init() init()
}) })

View File

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