| | |
| | | placeholder="请输入身份证号" |
| | | v-model.trim="form.identity" |
| | | @blur="handleCalculateAge" |
| | | :formatter="formatterIdentity" |
| | | ></ProFormText> |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | |
| | | ProFormInputNumber, |
| | | ProFormDatePicker, |
| | | } from '@bole-core/components'; |
| | | import { calculateAge, deepClone, format } from '@/utils'; |
| | | import { calculateAge, deepClone, format, hiddenIDNumberForEnd6 } from '@/utils'; |
| | | import { EnumUserGender, EnumUserGenderTextForPerson } from '@/constants'; |
| | | import { BoleRegExp } from '@bole-core/core'; |
| | | |
| | |
| | | function handleCalculateAge() { |
| | | form.value.age = calculateAge(form.value.identity); |
| | | } |
| | | |
| | | function formatterIdentity(value: string) { |
| | | return hiddenIDNumberForEnd6(value); |
| | | } |
| | | </script> |