| | |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | export const hiddenIDNumberForEnd4 = (realIDNumber: string) => { |
| | | if (!realIDNumber) return ''; |
| | | return realIDNumber.replace(/^(\d+)(.{4})$/, '$1****'); |
| | | }; |
| | |
| | | } from '@bole-core/components'; |
| | | import { useAccess, useGlobalEventContext } from '@/hooks'; |
| | | import CPersonDetailDialog from './components/CPersonDetailDialog.vue'; |
| | | import { convertApi2FormUrlOnlyOne, format } from '@/utils'; |
| | | import { convertApi2FormUrlOnlyOne, format, hiddenIDNumberForEnd4 } from '@/utils'; |
| | | import { ModelValueType } from 'element-plus'; |
| | | import * as userServices from '@/services/api/user'; |
| | | |
| | |
| | | return row.enterprises ? row.enterprises.map((x) => x).join(',') : ''; |
| | | }, |
| | | }, |
| | | identity: { |
| | | formatter: (row: API.GetPersonalUserInfosQueryResultItem) => { |
| | | return hiddenIDNumberForEnd4(row.identity); |
| | | }, |
| | | }, |
| | | }, |
| | | } |
| | | ); |
| | |
| | | <ProFormCol> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 label="身份证号:" prop="identity"> |
| | | <ProFormText v-model.trim="form.identity"></ProFormText> |
| | | <ProFormText :model-value="hiddenIDNumberForEnd4(form.identity)"></ProFormText> |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | |
| | | ProFormRadio, |
| | | UploadUserFile, |
| | | } from '@bole-core/components'; |
| | | import { convertApi2FormUrlOnlyOne, format } from '@/utils'; |
| | | import { convertApi2FormUrlOnlyOne, format, hiddenIDNumberForEnd4 } from '@/utils'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import { EnumUserGender, EnumUserGenderTextForPerson } from '@/constants'; |
| | | import * as enterpriseEmployeeServices from '@/services/api/enterpriseEmployee'; |