1
This commit is contained in:
@@ -1,32 +1,17 @@
|
||||
<template>
|
||||
<div class="tab-index-container">
|
||||
<!-- 搜索表单 -->
|
||||
<search-form
|
||||
v-show="showSearch"
|
||||
:model="queryForm"
|
||||
ref="searchFormRef"
|
||||
@keyup-enter="getDataList"
|
||||
>
|
||||
<search-form v-show="showSearch" :model="queryForm" ref="searchFormRef" @keyup-enter="getDataList">
|
||||
<template #default="{ visible }">
|
||||
<template v-if="visible">
|
||||
<el-form-item label="招生计划" prop="groupId">
|
||||
<el-select v-model="queryForm.groupId" filterable clearable placeholder="请选择招生计划" @change="chanMajor">
|
||||
<el-option
|
||||
v-for="item in planList"
|
||||
:key="item.id"
|
||||
:label="item.groupName"
|
||||
:value="item.id"
|
||||
/>
|
||||
<el-option v-for="item in planList" :key="item.id" :label="item.groupName" :value="item.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="学院" prop="deptCode">
|
||||
<el-select v-model="queryForm.deptCode" filterable clearable placeholder="请选择学院">
|
||||
<el-option
|
||||
v-for="item in deptList"
|
||||
:key="item.deptCode"
|
||||
:label="item.deptName"
|
||||
:value="item.deptCode"
|
||||
/>
|
||||
<el-option v-for="item in deptList" :key="item.deptCode" :label="item.deptName" :value="item.deptCode" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="录取专业" prop="confirmedMajor">
|
||||
@@ -46,32 +31,17 @@
|
||||
<template v-else>
|
||||
<el-form-item label="缴费状态" prop="paystatus">
|
||||
<el-select v-model="queryForm.paystatus" filterable clearable placeholder="请选择缴费状态">
|
||||
<el-option
|
||||
v-for="item in paystatusList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
<el-option v-for="item in paystatusList" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="推送状态" prop="pushed">
|
||||
<el-select v-model="queryForm.pushed" filterable clearable placeholder="请选择推送状态">
|
||||
<el-option
|
||||
v-for="item in pushedList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
<el-option v-for="item in pushedList" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="报到状态" prop="backSchoolState">
|
||||
<el-select v-model="queryForm.backSchoolState" filterable clearable placeholder="请选择报到状态">
|
||||
<el-option
|
||||
v-for="item in backSchoolStateList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
<el-option v-for="item in backSchoolStateList" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</template>
|
||||
@@ -86,30 +56,11 @@
|
||||
|
||||
<!-- 操作按钮 -->
|
||||
<div class="action-buttons-wrapper mb15">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
>
|
||||
名单导出
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="hasAuth('recruit_recruitstudentsignup_allCX')"
|
||||
type="primary"
|
||||
plain
|
||||
icon="Search"
|
||||
class="ml10"
|
||||
@click="updateAllFS"
|
||||
>
|
||||
<el-button type="warning" plain icon="Download" @click="handleExport"> 名单导出 </el-button>
|
||||
<el-button v-if="hasAuth('recruit_recruitstudentsignup_allCX')" type="primary" plain icon="Search" class="ml10" @click="updateAllFS">
|
||||
批量查询
|
||||
</el-button>
|
||||
<right-toolbar
|
||||
@queryTable="getDataList"
|
||||
class="ml10"
|
||||
style="float: right; "
|
||||
v-model:showSearch="showSearch"
|
||||
></right-toolbar>
|
||||
<right-toolbar @queryTable="getDataList" class="ml10" style="float: right" v-model:showSearch="showSearch"></right-toolbar>
|
||||
</div>
|
||||
|
||||
<!-- 表格 -->
|
||||
@@ -161,14 +112,15 @@
|
||||
{
|
||||
label: '报到状态',
|
||||
layout: 'horizontal',
|
||||
content: getBackSchoolStateConfig(scope.row.backSchoolState)?.label
|
||||
content: getBackSchoolStateConfig(scope.row.backSchoolState)?.label,
|
||||
},
|
||||
{
|
||||
label: '备注信息',
|
||||
content: scope.row.backSchoolRemark,
|
||||
contentClass: 'reason-content'
|
||||
}
|
||||
]">
|
||||
contentClass: 'reason-content',
|
||||
},
|
||||
]"
|
||||
>
|
||||
<template #reference>
|
||||
<ClickableTag
|
||||
:type="getBackSchoolStateConfig(scope.row.backSchoolState)?.type || 'info'"
|
||||
@@ -219,18 +171,21 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="pushed" label="推送状态" width="110" align="center" show-overflow-tooltip>
|
||||
<template #default="scope">
|
||||
<el-tag
|
||||
:type="getStatusConfig(pushedList, scope.row.pushed)?.type"
|
||||
>
|
||||
<el-tag :type="getStatusConfig(pushedList, scope.row.pushed)?.type">
|
||||
{{ getStatusConfig(pushedList, scope.row.pushed)?.label }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="200" align="center" fixed="right">
|
||||
<el-table-column label="操作" width="300" align="center" fixed="right">
|
||||
<template #default="scope">
|
||||
|
||||
<el-button
|
||||
v-if="hasAuth('recruit_recruitstudentsignup_show') && scope.row.pushed == '1' && scope.row.paiedOffline != '10' && (scope.row.clfPayCode != undefined && scope.row.clfPayCode != '')"
|
||||
v-if="
|
||||
hasAuth('recruit_recruitstudentsignup_show') &&
|
||||
scope.row.pushed == '1' &&
|
||||
scope.row.paiedOffline != '10' &&
|
||||
scope.row.clfPayCode != undefined &&
|
||||
scope.row.clfPayCode != ''
|
||||
"
|
||||
type="primary"
|
||||
link
|
||||
:icon="Tickets"
|
||||
@@ -238,14 +193,20 @@
|
||||
>
|
||||
支付二维码
|
||||
</el-button>
|
||||
<el-button v-if="hasAuth('recruit_recruitstudentsignup_back')" type="primary" link icon="EditPen" @click="handleCheckIn(scope.row)">
|
||||
报到
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="hasAuth('recruit_recruitstudentsignup_back')"
|
||||
v-if="hasAuth('recruit_recruitstudentsignup_leaveSchool')"
|
||||
type="primary"
|
||||
link
|
||||
icon="EditPen"
|
||||
@click="handleCheckIn(scope.row)"
|
||||
@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>
|
||||
@@ -253,11 +214,7 @@
|
||||
|
||||
<!-- 分页 -->
|
||||
<div class="pagination-wrapper">
|
||||
<pagination
|
||||
v-bind="state.pagination"
|
||||
@current-change="currentChangeHandle"
|
||||
@size-change="sizeChangeHandle"
|
||||
/>
|
||||
<pagination v-bind="state.pagination" @current-change="currentChangeHandle" @size-change="sizeChangeHandle" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -273,8 +230,8 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div style="padding-top: 20px;">
|
||||
<div id="payQrcode1" style="display: inline-block;">
|
||||
<div style="padding-top: 20px">
|
||||
<div id="payQrcode1" style="display: inline-block">
|
||||
{{ payQrcode1Msg }}
|
||||
</div>
|
||||
<!-- <vue-qr :text="payQrcode1" :size="200" v-if="showPrise1" style="display: inline-block"></vue-qr> -->
|
||||
@@ -289,7 +246,11 @@
|
||||
</div>
|
||||
<!-- <vue-qr :text="payQrcode3" :size="200" v-if="showPrise3" style="display: inline-block"></vue-qr> -->
|
||||
</div>
|
||||
<span style="color: red;padding-top: 20px;">** 此界面为查询学生缴款二维码,如有收不到微信推送,或手机号填错的,可直接在此扫码支付,支付成功后,请手动点击"立即查询"按钮,查询该生的缴费情况;因财政收费系统有一定的滞后性,如点击"立即查询"后任显示未交费,请稍后再继续查询,或重新点击"立即查询"按钮 **</span>
|
||||
<span style="color: red; padding-top: 20px"
|
||||
>**
|
||||
此界面为查询学生缴款二维码,如有收不到微信推送,或手机号填错的,可直接在此扫码支付,支付成功后,请手动点击"立即查询"按钮,查询该生的缴费情况;因财政收费系统有一定的滞后性,如点击"立即查询"后任显示未交费,请稍后再继续查询,或重新点击"立即查询"按钮
|
||||
**</span
|
||||
>
|
||||
</el-dialog>
|
||||
|
||||
<stu-check-in ref="stuCheckInRef" @reload="refreshChange" />
|
||||
@@ -297,43 +258,43 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="backSchoolCheckinTabIndex">
|
||||
import { ref, reactive, onMounted, nextTick, defineAsyncComponent, defineExpose } from 'vue'
|
||||
import { useAuth } from '/@/hooks/auth'
|
||||
import { BasicTableProps, useTable } from '/@/hooks/table'
|
||||
import { useMessage } from '/@/hooks/message'
|
||||
import { getList } from '/@/api/recruit/recruitstudentplangroup'
|
||||
import { backSchoolStuPage } from '/@/api/recruit/recruitstudentsignup'
|
||||
import { getDeptList } from '/@/api/basic/basicclass'
|
||||
import { listPlanByCondition as planMajor } from '/@/api/recruit/recruitstudentplan'
|
||||
import { updateFs, updateAllFS as updateAllFSApi } from '/@/api/finance/financenormalstu'
|
||||
import { getDicts } from '/@/api/admin/dict'
|
||||
import { PAY_STATUS_LIST,PUSHED_STATUS_LIST,getStatusConfig, getCheckInStatusConfig } from '/@/config/global'
|
||||
import { CircleCheck, CircleClose, DocumentChecked, Warning, Clock, Tickets } from '@element-plus/icons-vue'
|
||||
import { ref, reactive, onMounted, nextTick, defineAsyncComponent, defineExpose } from 'vue';
|
||||
import { useAuth } from '/@/hooks/auth';
|
||||
import { BasicTableProps, useTable } from '/@/hooks/table';
|
||||
import { useMessage, useMessageBox } from '/@/hooks/message';
|
||||
import { getList } from '/@/api/recruit/recruitstudentplangroup';
|
||||
import { backSchoolStuPage, leaveSchool } from '/@/api/recruit/recruitstudentsignup';
|
||||
import { getDeptList } from '/@/api/basic/basicclass';
|
||||
import { listPlanByCondition as planMajor } from '/@/api/recruit/recruitstudentplan';
|
||||
import { updateFs, updateAllFS as updateAllFSApi } from '/@/api/finance/financenormalstu';
|
||||
import { getDicts } from '/@/api/admin/dict';
|
||||
import { PAY_STATUS_LIST, PUSHED_STATUS_LIST, getStatusConfig, getCheckInStatusConfig } from '/@/config/global';
|
||||
import { CircleCheck, CircleClose, DocumentChecked, Warning, Clock, Tickets } from '@element-plus/icons-vue';
|
||||
|
||||
const StuCheckIn = defineAsyncComponent(() => import('./stu-check-in.vue'))
|
||||
const GenderTag = defineAsyncComponent(() => import('/@/components/GenderTag/index.vue'))
|
||||
const SearchForm = defineAsyncComponent(() => import('/@/components/SearchForm/index.vue'))
|
||||
const ClickableTag = defineAsyncComponent(() => import('/@/components/ClickableTag/index.vue'))
|
||||
const DetailPopover = defineAsyncComponent(() => import('/@/components/DetailPopover/index.vue'))
|
||||
const { hasAuth } = useAuth()
|
||||
const StuCheckIn = defineAsyncComponent(() => import('./stu-check-in.vue'));
|
||||
const GenderTag = defineAsyncComponent(() => import('/@/components/GenderTag/index.vue'));
|
||||
const SearchForm = defineAsyncComponent(() => import('/@/components/SearchForm/index.vue'));
|
||||
const ClickableTag = defineAsyncComponent(() => import('/@/components/ClickableTag/index.vue'));
|
||||
const DetailPopover = defineAsyncComponent(() => import('/@/components/DetailPopover/index.vue'));
|
||||
const { hasAuth } = useAuth();
|
||||
// 消息提示 hooks
|
||||
const message = useMessage()
|
||||
const message = useMessage();
|
||||
|
||||
// 表格引用
|
||||
const tableRef = ref()
|
||||
const searchFormRef = ref()
|
||||
const stuCheckInRef = ref()
|
||||
const tableRef = ref();
|
||||
const searchFormRef = ref();
|
||||
const stuCheckInRef = ref();
|
||||
|
||||
// 搜索表单显示状态
|
||||
const showSearch = ref(true)
|
||||
const showSearch = ref(true);
|
||||
|
||||
// 数据
|
||||
const planList = ref<any[]>([])
|
||||
const planMajorList = ref<any[]>([])
|
||||
const deptList = ref<any[]>([])
|
||||
const backSchoolStateList = ref<any[]>([])
|
||||
const paystatusList = PAY_STATUS_LIST
|
||||
const pushedList = PUSHED_STATUS_LIST
|
||||
const planList = ref<any[]>([]);
|
||||
const planMajorList = ref<any[]>([]);
|
||||
const deptList = ref<any[]>([]);
|
||||
const backSchoolStateList = ref<any[]>([]);
|
||||
const paystatusList = PAY_STATUS_LIST;
|
||||
const pushedList = PUSHED_STATUS_LIST;
|
||||
|
||||
// 查询表单
|
||||
const queryForm = reactive({
|
||||
@@ -345,33 +306,33 @@ const queryForm = reactive({
|
||||
pushed: '',
|
||||
backSchoolState: '',
|
||||
isOut: '1',
|
||||
auditStatus: '20'
|
||||
})
|
||||
auditStatus: '20',
|
||||
});
|
||||
|
||||
// 弹窗状态
|
||||
const dialogFormVisible = ref(false)
|
||||
const tableData = ref<any[]>([])
|
||||
const payQrcode1 = ref('')
|
||||
const showPrise1 = ref(false)
|
||||
const payQrcode1Msg = ref('')
|
||||
const payQrcode2 = ref('')
|
||||
const payQrcode2Msg = ref('')
|
||||
const showPrise2 = ref(false)
|
||||
const payQrcode3 = ref('')
|
||||
const payQrcode3Msg = ref('')
|
||||
const showPrise3 = ref(false)
|
||||
const dialogFormVisible = ref(false);
|
||||
const tableData = ref<any[]>([]);
|
||||
const payQrcode1 = ref('');
|
||||
const showPrise1 = ref(false);
|
||||
const payQrcode1Msg = ref('');
|
||||
const payQrcode2 = ref('');
|
||||
const payQrcode2Msg = ref('');
|
||||
const showPrise2 = ref(false);
|
||||
const payQrcode3 = ref('');
|
||||
const payQrcode3Msg = ref('');
|
||||
const showPrise3 = ref(false);
|
||||
|
||||
// 获取学院名称
|
||||
const getDeptName = (deptCode: string) => {
|
||||
const item = deptList.value.find(item => item.deptCode === deptCode)
|
||||
return item ? item.deptName : ''
|
||||
}
|
||||
const item = deptList.value.find((item) => item.deptCode === deptCode);
|
||||
return item ? item.deptName : '';
|
||||
};
|
||||
|
||||
// 获取专业名称
|
||||
const getMajorName = (majorCode: string) => {
|
||||
const item = planMajorList.value.find(item => item.majorCode === majorCode)
|
||||
return item ? item.majorName : ''
|
||||
}
|
||||
const item = planMajorList.value.find((item) => item.majorCode === majorCode);
|
||||
return item ? item.majorName : '';
|
||||
};
|
||||
|
||||
// 获取报到状态配置(用于 ClickableTag)
|
||||
const getBackSchoolStateConfig = (value: string) => {
|
||||
@@ -380,204 +341,213 @@ const getBackSchoolStateConfig = (value: string) => {
|
||||
CircleClose,
|
||||
DocumentChecked,
|
||||
Warning,
|
||||
Clock
|
||||
})
|
||||
}
|
||||
Clock,
|
||||
});
|
||||
};
|
||||
|
||||
// 表格状态
|
||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
queryForm: queryForm,
|
||||
pageList: async (params: any) => {
|
||||
const response = await backSchoolStuPage(params)
|
||||
const response = await backSchoolStuPage(params);
|
||||
return {
|
||||
data: {
|
||||
records: response.data.records,
|
||||
total: response.data.total
|
||||
}
|
||||
}
|
||||
total: response.data.total,
|
||||
},
|
||||
createdIsNeed: false
|
||||
})
|
||||
};
|
||||
},
|
||||
createdIsNeed: false,
|
||||
});
|
||||
|
||||
// 使用 table hook
|
||||
const { getDataList, currentChangeHandle, sizeChangeHandle, tableStyle, downBlobFile } = useTable(state)
|
||||
const { getDataList, currentChangeHandle, sizeChangeHandle, tableStyle, downBlobFile } = useTable(state);
|
||||
|
||||
// 招生计划改变
|
||||
const chanMajor = async () => {
|
||||
if (queryForm.groupId) {
|
||||
await getMajorList(queryForm.groupId)
|
||||
await getMajorList(queryForm.groupId);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// 获取专业列表
|
||||
const getMajorList = async (groupId: string) => {
|
||||
try {
|
||||
const data = await planMajor({ groupId })
|
||||
planMajorList.value = data.data || []
|
||||
const data = await planMajor({ groupId });
|
||||
planMajorList.value = data.data || [];
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('获取专业列表失败', error)
|
||||
console.error('获取专业列表失败', error);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// 初始化
|
||||
const init = async () => {
|
||||
try {
|
||||
// 查询报到状态字典
|
||||
const dictData = await getDicts('check_in_status')
|
||||
backSchoolStateList.value = dictData.data || []
|
||||
const dictData = await getDicts('check_in_status');
|
||||
backSchoolStateList.value = dictData.data || [];
|
||||
|
||||
// 查询二级学院信息
|
||||
const deptData = await getDeptList()
|
||||
deptList.value = deptData.data || []
|
||||
const deptData = await getDeptList();
|
||||
deptList.value = deptData.data || [];
|
||||
|
||||
// 获取招生计划列表
|
||||
const planData = await getList()
|
||||
planList.value = planData.data || []
|
||||
const planData = await getList();
|
||||
planList.value = planData.data || [];
|
||||
if (planList.value.length > 0) {
|
||||
queryForm.groupId = planList.value[0].id
|
||||
await getMajorList(queryForm.groupId)
|
||||
queryForm.groupId = planList.value[0].id;
|
||||
await getMajorList(queryForm.groupId);
|
||||
}
|
||||
|
||||
getDataList()
|
||||
getDataList();
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('初始化失败', error)
|
||||
console.error('初始化失败', error);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// 打开报到窗口
|
||||
const handleCheckIn = (row: any) => {
|
||||
nextTick(() => {
|
||||
stuCheckInRef.value?.init(row, state.pagination?.current || 1)
|
||||
})
|
||||
}
|
||||
stuCheckInRef.value?.init(row, state.pagination?.current || 1);
|
||||
});
|
||||
};
|
||||
|
||||
// 刷新回调
|
||||
const refreshChange = () => {
|
||||
getDataList()
|
||||
}
|
||||
getDataList();
|
||||
};
|
||||
|
||||
// 批量查询
|
||||
const updateAllFS = async () => {
|
||||
if (!queryForm.groupId) {
|
||||
message.warning('招生计划不能为空')
|
||||
return
|
||||
message.warning('招生计划不能为空');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const plan = planList.value.find(e => e.id === queryForm.groupId)
|
||||
if (!plan) return
|
||||
const plan = planList.value.find((e) => e.id === queryForm.groupId);
|
||||
if (!plan) return;
|
||||
|
||||
const data = await updateAllFSApi({ year: plan.year, stuSource: '1' })
|
||||
const data = await updateAllFSApi({ year: plan.year, stuSource: '1' });
|
||||
if (data.data.code == '200') {
|
||||
message.success('正在更新所有缴费单状态,请稍后查看更新结果')
|
||||
message.success('正在更新所有缴费单状态,请稍后查看更新结果');
|
||||
}
|
||||
} catch (error: any) {
|
||||
// console.log(error)
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// 导出
|
||||
const handleExport = async () => {
|
||||
if (!queryForm.groupId) {
|
||||
message.warning('招生计划不能为空')
|
||||
return
|
||||
message.warning('招生计划不能为空');
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
await downBlobFile(
|
||||
'/recruit/recruitstudentsignup/exportBackData',
|
||||
queryForm,
|
||||
'招生名单导出.xls'
|
||||
)
|
||||
await downBlobFile('/recruit/recruitstudentsignup/exportBackData', queryForm, '招生名单导出.xls');
|
||||
} catch (error: any) {
|
||||
message.error(error.msg || '导出失败')
|
||||
message.error(error.msg || '导出失败');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// 立即查询
|
||||
const updateFS = async () => {
|
||||
if (tableData.value.length === 0) return
|
||||
if (tableData.value.length === 0) return;
|
||||
|
||||
try {
|
||||
const serialNumber = tableData.value[0].serialNumber.substring(1, tableData.value[0].serialNumber.length)
|
||||
await updateFs({ serialNumber })
|
||||
message.success('已提交查询请求,请等待1分钟后重新查询')
|
||||
dialogFormVisible.value = false
|
||||
getDataList()
|
||||
const serialNumber = tableData.value[0].serialNumber.substring(1, tableData.value[0].serialNumber.length);
|
||||
await updateFs({ serialNumber });
|
||||
message.success('已提交查询请求,请等待1分钟后重新查询');
|
||||
dialogFormVisible.value = false;
|
||||
getDataList();
|
||||
} catch (error: any) {
|
||||
message.error(error.msg || '查询失败')
|
||||
message.error(error.msg || '查询失败');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// 显示支付二维码
|
||||
const showPayCode = (row: any) => {
|
||||
showPrise1.value = false
|
||||
showPrise2.value = false
|
||||
showPrise3.value = false
|
||||
showPrise1.value = false;
|
||||
showPrise2.value = false;
|
||||
showPrise3.value = false;
|
||||
|
||||
payQrcode1.value = ''
|
||||
payQrcode2.value = ''
|
||||
payQrcode3.value = ''
|
||||
payQrcode1.value = '';
|
||||
payQrcode2.value = '';
|
||||
payQrcode3.value = '';
|
||||
|
||||
if (row.clfPayCode && row.clfPayCode != '') {
|
||||
payQrcode1Msg.value = '材料费、代办费'
|
||||
showPrise1.value = true
|
||||
payQrcode1.value = 'https://jscz.govpay.ccb.com/online/fsjf?PyF_BillNo=' + row.clfPayCode + '&Verf_CD=blank&Admn_Rgon_Cd=320400'
|
||||
payQrcode1Msg.value = '材料费、代办费';
|
||||
showPrise1.value = true;
|
||||
payQrcode1.value = 'https://jscz.govpay.ccb.com/online/fsjf?PyF_BillNo=' + row.clfPayCode + '&Verf_CD=blank&Admn_Rgon_Cd=320400';
|
||||
} else {
|
||||
payQrcode1Msg.value = ''
|
||||
showPrise1.value = false
|
||||
payQrcode1Msg.value = '';
|
||||
showPrise1.value = false;
|
||||
}
|
||||
|
||||
if (row.xfPayCode && row.xfPayCode != '') {
|
||||
payQrcode2Msg.value = '学费'
|
||||
showPrise2.value = true
|
||||
payQrcode2.value = 'https://jscz.govpay.ccb.com/online/fsjf?PyF_BillNo=' + row.xfPayCode + '&Verf_CD=blank&Admn_Rgon_Cd=320400'
|
||||
payQrcode2Msg.value = '学费';
|
||||
showPrise2.value = true;
|
||||
payQrcode2.value = 'https://jscz.govpay.ccb.com/online/fsjf?PyF_BillNo=' + row.xfPayCode + '&Verf_CD=blank&Admn_Rgon_Cd=320400';
|
||||
} else {
|
||||
payQrcode2Msg.value = ''
|
||||
showPrise2.value = false
|
||||
payQrcode2Msg.value = '';
|
||||
showPrise2.value = false;
|
||||
}
|
||||
|
||||
if (row.zdbPayCode && row.zdbPayCode != '') {
|
||||
payQrcode3Msg.value = '中德班学费'
|
||||
showPrise3.value = true
|
||||
payQrcode3.value = 'https://jscz.govpay.ccb.com/online/fsjf?PyF_BillNo=' + row.zdbPayCode + '&Verf_CD=blank&Admn_Rgon_Cd=320400'
|
||||
payQrcode3Msg.value = '中德班学费';
|
||||
showPrise3.value = true;
|
||||
payQrcode3.value = 'https://jscz.govpay.ccb.com/online/fsjf?PyF_BillNo=' + row.zdbPayCode + '&Verf_CD=blank&Admn_Rgon_Cd=320400';
|
||||
} else {
|
||||
payQrcode3Msg.value = ''
|
||||
showPrise3.value = false
|
||||
payQrcode3Msg.value = '';
|
||||
showPrise3.value = false;
|
||||
}
|
||||
|
||||
tableData.value = [row]
|
||||
dialogFormVisible.value = true
|
||||
}
|
||||
tableData.value = [row];
|
||||
dialogFormVisible.value = true;
|
||||
};
|
||||
|
||||
// 重置查询
|
||||
const resetQuery = () => {
|
||||
searchFormRef.value?.resetFields()
|
||||
queryForm.groupId = ''
|
||||
queryForm.deptCode = ''
|
||||
queryForm.confirmedMajor = ''
|
||||
queryForm.search = ''
|
||||
queryForm.paystatus = ''
|
||||
queryForm.pushed = ''
|
||||
queryForm.backSchoolState = ''
|
||||
queryForm.isOut = '1'
|
||||
queryForm.auditStatus = '20'
|
||||
searchFormRef.value?.resetFields();
|
||||
queryForm.groupId = '';
|
||||
queryForm.deptCode = '';
|
||||
queryForm.confirmedMajor = '';
|
||||
queryForm.search = '';
|
||||
queryForm.paystatus = '';
|
||||
queryForm.pushed = '';
|
||||
queryForm.backSchoolState = '';
|
||||
queryForm.isOut = '1';
|
||||
queryForm.auditStatus = '20';
|
||||
if (planList.value.length > 0) {
|
||||
queryForm.groupId = planList.value[0].id
|
||||
queryForm.groupId = planList.value[0].id;
|
||||
}
|
||||
getDataList()
|
||||
}
|
||||
getDataList();
|
||||
};
|
||||
|
||||
const handleLeaveSchool = (row: any, force: any) => {
|
||||
var str = force? '强制' : '';
|
||||
useMessageBox()
|
||||
.confirm('是否确认'+str+'办理退档操作?请谨慎操作')
|
||||
.then(() => {
|
||||
return leaveSchool({ 'id':row.id,'force':force });
|
||||
})
|
||||
.then(() => {
|
||||
message.success('操作成功');
|
||||
getDataList();
|
||||
});
|
||||
};
|
||||
|
||||
// 暴露方法供父组件调用
|
||||
defineExpose({
|
||||
init
|
||||
})
|
||||
init,
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
init()
|
||||
})
|
||||
init();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@@ -588,7 +558,6 @@ onMounted(() => {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
.action-buttons-wrapper {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user