| | |
| | | placeholder="请输入身份证号" |
| | | v-model.trim="form.identity" |
| | | @blur="handleCalculateAge" |
| | | :formatter="formatterIdentity" |
| | | ></ProFormText> |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | | <ProFormColItem :span="12"> |
| | | <ProFormItemV2 |
| | | label="协议时间:" |
| | | prop="contractTime" |
| | | :check-rules="[{ message: '请选择协议时间', type: 'array' }]" |
| | | > |
| | | <ProFormItemV2 label="协议时间:" prop="contractTime"> |
| | | <ProFormDatePicker |
| | | v-model="form.contractTime" |
| | | type="daterange" |
| | |
| | | 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'; |
| | | |
| | |
| | | |
| | | type Form = { |
| | | title?: string; |
| | | id: string; |
| | | name: string; |
| | | identity: string; |
| | | contactPhoneNumber: string; |
| | |
| | | function handleCalculateAge() { |
| | | form.value.age = calculateAge(form.value.identity); |
| | | } |
| | | |
| | | function formatterIdentity(value: string) { |
| | | return hiddenIDNumberForEnd6(value); |
| | | } |
| | | </script> |