From 798e45dc0480d911759696797aa4139fb7641566 Mon Sep 17 00:00:00 2001 From: guochunsi <1595020186@qq.com> Date: Tue, 20 Jan 2026 19:02:48 +0800 Subject: [PATCH] a --- src/config/global.ts | 2 +- .../recruitstudentsignup/indexClass.vue | 138 ++---------------- 2 files changed, 16 insertions(+), 124 deletions(-) diff --git a/src/config/global.ts b/src/config/global.ts index 8022246..159139f 100644 --- a/src/config/global.ts +++ b/src/config/global.ts @@ -76,7 +76,7 @@ export const NOTICE_SEND_STATUS_LIST = [ { label: "已发放", value: "1" } ]; -// 审核状态 使用字典recruit_audit_status +// 审核状态 使用字典 recruit_audit_status // 市平台考试类型审核状态 使用字典recruit_city_exzm_type diff --git a/src/views/recruit/recruitstudentsignup/indexClass.vue b/src/views/recruit/recruitstudentsignup/indexClass.vue index 86b7925..7b9ff04 100644 --- a/src/views/recruit/recruitstudentsignup/indexClass.vue +++ b/src/views/recruit/recruitstudentsignup/indexClass.vue @@ -395,24 +395,18 @@ import axios from 'axios' import { getList } from '/@/api/recruit/recruitstudentplangroup' import { classPage, - - leaveSchool, - rePush, - // updateInfo, - yjOut, - toWord, - sureLQTZ, tbStuWork, oneClass, oneStuNo, - changeClassInfo, getMajorClass + changeClassInfo, + getMajorClass } from '/@/api/recruit/recruitstudentsignup' import { getLabelValueByProps } from '/@/utils/dictLabel' import { getClassListByRole, getDeptList } from "/@/api/basic/basicclass" import {listPlanByCondition as planMajor} from "/@/api/recruit/recruitstudentplan" -import { getTypeValue } from "/@/api/admin/dict" +import { getDictsByTypes } from "/@/api/admin/dict" import { getUserListByRole } from "/@/api/admin/user" -import { ROLE_CODE, PAY_STATUS_LIST, PUSHED_STATUS_LIST, DATA_SOURCE_LIST } from "/@/config/global" +import { ROLE_CODE, PUSHED_STATUS_LIST, DATA_SOURCE_LIST } from "/@/config/global" import { showLoading, hideLoading } from '/@/api/asset/loading' import { useDict } from '/@/hooks/dict' @@ -475,7 +469,7 @@ const dataForm = reactive({ }) const auditorList = ref([]) -const paystatusList = PAY_STATUS_LIST +const paystatusList = ref([]) // 缴费状态(字典 - 仅搜索表单使用) // 搜索表单显示状态 const showSearch = ref(true) @@ -628,9 +622,16 @@ const init = () => { getDataList() chanMajor() }) - getTypeValue('finance_student_source').then((res: any) => { - eduList.value = res.data + + // 批量获取字典数据 + getDictsByTypes([ + 'finance_student_source', // 文化程度 + 'recruit_pay_status' // 缴费状态 + ]).then((res) => { + eduList.value = res.data.finance_student_source || [] + paystatusList.value = res.data.recruit_pay_status || [] }) + // 所有经办人 getUserListByRole(ROLE_CODE.ROLE_RECRUIT_SECOND).then((res: any) => { auditorList.value = res.data @@ -708,8 +709,7 @@ const resetForm = (formName: string) => { formRef.value?.resetFields() } } -<<<<<<< HEAD -======= + // 使用插槽 缴费状态 const getStatus = (type: string) => { if (type == '0') { @@ -744,115 +744,7 @@ const getMajor = (type: string) => { return '' } -const lqtz = (row: any) => { - id.value = row.id - pdfPath.value = "" - if (row.isBackTz == '0') { - lqtzsShow.value = true - } else { - lqtzsShow.value = false - } - toWord(row).then((res: any) => { - pdfPath.value = "/recruit/file/previewPdf?filePath=" + encodeURIComponent(res.data) - lqtzsVisible.value = true - }) -} -const infoTable = (row: any) => { - window.open("printRecruitedStu.html?appId=" + row.id) -} - -const suerLQTZ = () => { - useMessageBox().confirm('是否确认已打印本通知书?请谨慎操作').then(() => { - return sureLQTZ({ id: id.value }) - }).then(() => { - message.success('保存成功') - lqtzsVisible.value = false - getDataList() - }) -} - -const rePushHandle = (row: any) => { - useMessageBox().confirm('是否确认重新推送本条数据?请谨慎操作').then(() => { - return rePush({ id: row.id }) - }).then(() => { - message.success('推送成功') - getDataList() - }) -} - -const delayPayTimeSet = (row: any) => { - delayPayTime.value = '' - id.value = row.id - if (row.delayPaymentTime) { - delayPayTime.value = row.delayPaymentTime - } - delayPayTimeVisible.value = true -} - -const updateInfoHandle = () => { - // useMessageBox().confirm('是否确认进度延迟收费操作?请谨慎操作').then(() => { - // return updateInfo({ delayPaymentTime: delayPayTime.value, id: id.value }) - // }).then(() => { - // delayPayTimeVisible.value = false - // message.success('延迟收费修改成功') - // getDataList() - // }) -} - -const updateFS = () => { - updateFs({ "serialNumber": tableData.value[0].serialNumber.substring(1, tableData.value[0].serialNumber.length) }).then(() => { - ElNotification.success({ - title: '成功', - message: '已提交查询请求,请等待1分钟后重新查询' - }) - dialogFormVisible.value = false - getDataList() - }) -} - -const showPayCode = (row: any) => { - showPrise1.value = false - showPrise2.value = false - showPrise3.value = false - - // 置空 - payQrcode1.value = "" - payQrcode2.value = "" - payQrcode3.value = "" - - if (row.clfPayCode == "" || row.clfPayCode == undefined) { - payQrcode1Msg.value = "" - showPrise1.value = false - } else { - 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' - } - - if (row.xfPayCode == "" || row.xfPayCode == undefined) { - payQrcode2Msg.value = "" - showPrise2.value = false - } else { - 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' - } - - if (row.zdbPayCode == "" || row.zdbPayCode == undefined) { - payQrcode3Msg.value = "" - showPrise3.value = false - } else { - 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' - } - - tableData.value = [] - tableData.value.push(row) - dialogFormVisible.value = true -} ->>>>>>> be196ec8efc2c233093a278ab03451f67a7e8c2e // 初始化 onMounted(() => {