| | |
| | | }; |
| | | |
| | | export const EnumTaskCheckReceiveMethodText = { |
| | | [EnumTaskCheckReceiveMethod.CheckIn]: '人工签到', |
| | | [EnumTaskCheckReceiveMethod.CheckIn]: '发单签到', |
| | | [EnumTaskCheckReceiveMethod.Submit]: '自主提交', |
| | | }; |
| | | |
| | |
| | | :title="title" |
| | | :visited-views="visitedViews" |
| | | :cached-views="cachedViews" |
| | | :username="name" |
| | | :username="userDetail.enterpriseName" |
| | | :themeMap="themeMap" |
| | | :logo="Logo" |
| | | :showModifyPasswordBtn="false" |
| | |
| | | const { isMobile } = storeToRefs(appStore); |
| | | const { routes } = storeToRefs(permissionStore); |
| | | const { visitedViews, cachedViews } = storeToRefs(tagsViewStore); |
| | | const { name } = storeToRefs(userStore); |
| | | const { userDetail } = storeToRefs(userStore); |
| | | |
| | | const themeMap = ThemeManager.getThemeMap(); |
| | | |
| | |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | export const hiddenIDNumberForEnd6 = (realIDNumber: string) => { |
| | | if (!realIDNumber) return ''; |
| | | return realIDNumber.replace(/^(\d+)(.{6})$/, '$1******'); |
| | | }; |
| | |
| | | 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> |
| | |
| | | ProFormRadio, |
| | | UploadUserFile, |
| | | } from '@bole-core/components'; |
| | | import { convertApi2FormUrlOnlyOne, format } from '@/utils'; |
| | | import { convertApi2FormUrlOnlyOne, format, hiddenIDNumberForEnd6 } from '@/utils'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | | import { EnumUserGender, EnumUserGenderTextForPerson } from '@/constants'; |
| | | import * as enterpriseEmployeeServices from '@/services/api/enterpriseEmployee'; |
| | |
| | | }, |
| | | onSuccess(data) { |
| | | detail.name = data.name; |
| | | detail.identity = data.identity; |
| | | detail.identity = hiddenIDNumberForEnd6(data.identity); |
| | | detail.contactPhoneNumber = data.contactPhoneNumber; |
| | | detail.gender = data.gender; |
| | | detail.age = data.age ?? 0; |