| | |
| | | |
| | | export const EnumTaskCheckReceiveMethodText = { |
| | | [EnumTaskCheckReceiveMethod.CheckIn]: '发单签到', |
| | | [EnumTaskCheckReceiveMethod.Submit]: '自主提交', |
| | | [EnumTaskCheckReceiveMethod.Submit]: '灵工提交', |
| | | }; |
| | | |
| | | export const EnumTaskSettlementAuditStatusText = { |
| | |
| | | return result; |
| | | } |
| | | |
| | | export const hiddenIDNumberForEnd6 = (realIDNumber: string) => { |
| | | export const hiddenIDNumberForEnd4 = (realIDNumber: string) => { |
| | | if (!realIDNumber) return ''; |
| | | return realIDNumber.replace(/^(\d+)(.{6})$/, '$1******'); |
| | | return realIDNumber.replace(/^(\d+)(.{4})$/, '$1****'); |
| | | }; |
| | |
| | | } from '@bole-core/components'; |
| | | import * as taskCheckReceiveServices from '@/services/api/taskCheckReceive'; |
| | | import { ModelValueType } from 'element-plus'; |
| | | import { downloadFileByUrl, format, OrderUtils, setOSSLink } from '@/utils'; |
| | | import { downloadFileByUrl, format, OrderUtils, setOSSLink, hiddenIDNumberForEnd4 } from '@/utils'; |
| | | import { EnumTaskCheckReceiveStatusText } from '@/constants'; |
| | | |
| | | defineOptions({ |
| | |
| | | EnumEnterpriseEmployeeSourceText, |
| | | } from '@/constants'; |
| | | import { Message } from '@bole-core/core'; |
| | | import { convertApi2FormUrlOnlyOne, downloadFileByUrl, format } from '@/utils'; |
| | | import { |
| | | convertApi2FormUrlOnlyOne, |
| | | downloadFileByUrl, |
| | | format, |
| | | hiddenIDNumberForEnd4, |
| | | } from '@/utils'; |
| | | import StaffInfoDialog from './components/StaffInfoDialog.vue'; |
| | | import BatchImportDialog from './components/BatchImportDialog.vue'; |
| | | import SendShotMessageDialog from './components/SendShotMessageDialog.vue'; |
| | |
| | | placeholder="请输入身份证号" |
| | | v-model.trim="form.identity" |
| | | @blur="handleCalculateAge" |
| | | :formatter="formatterIdentity" |
| | | ></ProFormText> |
| | | </ProFormItemV2> |
| | | </ProFormColItem> |
| | |
| | | v-model:file-url="form.identityImg" |
| | | :limitFileSize="10" |
| | | :showTip="false" |
| | | imgBlur |
| | | > |
| | | </ProFormImageUpload> |
| | | </ProFormItemV2> |
| | |
| | | v-model:file-url="form.identityBackImg" |
| | | :limitFileSize="10" |
| | | :showTip="false" |
| | | imgBlur |
| | | > |
| | | </ProFormImageUpload> |
| | | </ProFormItemV2> |
| | |
| | | ProFormInputNumber, |
| | | ProFormDatePicker, |
| | | } from '@bole-core/components'; |
| | | import { calculateAge, deepClone, format, hiddenIDNumberForEnd6 } from '@/utils'; |
| | | import { calculateAge, deepClone, format, hiddenIDNumberForEnd4 } from '@/utils'; |
| | | import { EnumUserGender, EnumUserGenderTextForPerson } from '@/constants'; |
| | | import { BoleRegExp } from '@bole-core/core'; |
| | | |
| | |
| | | } |
| | | |
| | | function formatterIdentity(value: string) { |
| | | return hiddenIDNumberForEnd6(value); |
| | | return hiddenIDNumberForEnd4(value); |
| | | } |
| | | </script> |
| | |
| | | </ProFormColItem> |
| | | </ProFormCol> |
| | | <ProFormItemV2 label="身份证正面:" prop="identityImg"> |
| | | <ProFormImageUpload v-model:file-url="detail.identityImg"> </ProFormImageUpload> |
| | | <ProFormImageUpload v-model:file-url="detail.identityImg" imgBlur> </ProFormImageUpload> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 label="身份证反面:" prop="identityBackImg"> |
| | | <ProFormImageUpload v-model:file-url="detail.identityBackImg"> </ProFormImageUpload> |
| | | <ProFormImageUpload v-model:file-url="detail.identityBackImg" imgBlur> </ProFormImageUpload> |
| | | </ProFormItemV2> |
| | | </ProForm> |
| | | </template> |
| | |
| | | ProFormRadio, |
| | | UploadUserFile, |
| | | } from '@bole-core/components'; |
| | | import { convertApi2FormUrlOnlyOne, format, hiddenIDNumberForEnd6 } 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'; |
| | |
| | | }, |
| | | onSuccess(data) { |
| | | detail.name = data.name; |
| | | detail.identity = hiddenIDNumberForEnd6(data.identity); |
| | | detail.identity = hiddenIDNumberForEnd4(data.identity); |
| | | detail.contactPhoneNumber = data.contactPhoneNumber; |
| | | detail.gender = data.gender; |
| | | detail.age = data.age ?? 0; |
| | |
| | | import { format } from '@/utils'; |
| | | import { format, hiddenIDNumberForEnd4 } from '@/utils'; |
| | | import { useTable } from '@bole-core/components'; |
| | | import * as enterpriseEmployeeServices from '@/services/api/enterpriseEmployee'; |
| | | import { ModelValueType } from 'element-plus'; |
| | |
| | | contractBegin: { type: 'date' }, |
| | | contractEnd: { type: 'date' }, |
| | | source: { type: 'enum', valueEnum: EnumEnterpriseEmployeeSourceText }, |
| | | identity: { |
| | | formatter: (row: API.GetPersonalUserInfosQueryResultItem) => { |
| | | return hiddenIDNumberForEnd4(row.identity); |
| | | }, |
| | | }, |
| | | }, |
| | | } |
| | | ); |