This commit is contained in:
guochunsi
2026-01-22 14:26:51 +08:00
parent fa46931044
commit 2334afe6e0
5 changed files with 86 additions and 72 deletions

View File

@@ -299,7 +299,7 @@ import { getObj, addObjStu, putObj } from '/@/api/recruit/recruitprestudent'
import { getList } from '/@/api/recruit/recruitstudentplangroup'
import { getDicts } from '/@/api/admin/dict'
import { queryAllTeacherByRecruit } from '/@/api/professional/professionaluser/teacherbase'
import { verifyIdCardAll, verifyPhone, verifyAdmissionNumber } from '/@/utils/toolsValidate'
import { verifyPhone, verifyAdmissionNumber } from '/@/utils/toolsValidate'
// Props
const props = defineProps<{
@@ -379,17 +379,7 @@ const dataRule = {
}
],
idCard: [
{ required: true, message: '身份证不能为空', trigger: 'blur' },
{
validator: (rule: any, value: any, callback: any) => {
if (value && !verifyIdCardAll(value)) {
callback(new Error('请输入正确的身份证号码'))
} else {
callback()
}
},
trigger: 'blur'
}
{ required: true, message: '身份证不能为空', trigger: 'blur' }
],
admission: [
{ required: true, message: '准考证不能为空', trigger: 'blur' },