新增 文化程度

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'
| 'IsOrNot'
| 'Sex'
| 'EducationLevel'
export const initEnums = () => {
api.get<Record<DictType, SelectNodeVo<any>[]>>('/common/enums').then(resp => {

View File

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

View File

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