新增 文化程度

This commit is contained in:
TimSpan 2024-12-19 10:01:12 +08:00
parent 5b33b5fbd2
commit ffddb4dd45
3 changed files with 15 additions and 1 deletions

View File

@ -6,6 +6,7 @@ type DictType =
| 'IsEnable' | 'IsEnable'
| 'IsOrNot' | 'IsOrNot'
| 'Sex' | 'Sex'
| 'EducationLevel'
export const initEnums = () => { export const initEnums = () => {
api.get<Record<DictType, SelectNodeVo<any>[]>>('/common/enums').then(resp => { api.get<Record<DictType, SelectNodeVo<any>[]>>('/common/enums').then(resp => {

View File

@ -131,6 +131,7 @@ export interface securityUnitIdListParams {
securityNumber?: string; securityNumber?: string;
noSecurityNumberDesc?: string; noSecurityNumberDesc?: string;
homeAddress?: string; homeAddress?: string;
educationLevel?: string;
} }
export interface securityUnitIdListPagerVo { export interface securityUnitIdListPagerVo {
snowFlakeId?: string; snowFlakeId?: string;

View File

@ -34,6 +34,7 @@ const _formParams = reactive<securityUnitIdListParams>({
noSecurityNumberDesc: '', noSecurityNumberDesc: '',
homeAddress: '', homeAddress: '',
remark: '', remark: '',
educationLevel: '',
}) })
const cardBlur = () => { const cardBlur = () => {
let value = _formParams.idCard let value = _formParams.idCard
@ -87,6 +88,7 @@ const saveOrUpdateEnterprisesUnit = (callback: Function, params, type: string) =
_formParams.telephone = params.telephone.originalValue _formParams.telephone = params.telephone.originalValue
_formParams.workPost = params.workPost _formParams.workPost = params.workPost
_formParams.sex = params.sex.value _formParams.sex = params.sex.value
_formParams.educationLevel = params.educationLevel.value
_formParams.nativePlace = params.nativePlace _formParams.nativePlace = params.nativePlace
_formParams.idCard = params.idCard.originalValue _formParams.idCard = params.idCard.originalValue
_formParams.dateOfBirth = params.dateOfBirth _formParams.dateOfBirth = params.dateOfBirth
@ -135,10 +137,18 @@ const saveOrUpdateEnterprisesUnit = (callback: Function, params, type: string) =
required: true, required: true,
options: [...dictSelectNodes('Sex')], options: [...dictSelectNodes('Sex')],
}, },
educationLevel: {
type: 'radioGroup',
label: '文化程度',
required: true,
options: [...dictSelectNodes('EducationLevel')],
},
securityNumber: { securityNumber: {
type: 'input', type: 'input',
label: '保安证号', label: '保安证号',
required: true, // required: true,
}, },
dateOfBirth: { dateOfBirth: {
type: 'datePicker', type: 'datePicker',
@ -207,6 +217,8 @@ const clearForm = () => {
_formParams.noSecurityNumberDesc = '' _formParams.noSecurityNumberDesc = ''
_formParams.homeAddress = '' _formParams.homeAddress = ''
_formParams.remark = '' _formParams.remark = ''
_formParams.educationLevel = ''
} }
export const showEnterprisesUnit = (record_) => { export const showEnterprisesUnit = (record_) => {
// console.log('🚀 ~ showEnterprisesUnit ~ record_:', record_) // console.log('🚀 ~ showEnterprisesUnit ~ record_:', record_)