|  |  |  | 
|---|
|  |  |  | import StaffInfoDialog from '@/views/FlexJobManage/components/StaffInfoDialog.vue'; | 
|---|
|  |  |  | import { convertApi2FormUrlOnlyOne } from '@/utils'; | 
|---|
|  |  |  | import * as taskUserServices from '@/services/api/taskUser'; | 
|---|
|  |  |  | import * as enterpriseEmployeeServices from '@/services/api/enterpriseEmployee'; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | defineOptions({ | 
|---|
|  |  |  | name: 'EmploymentSignList', | 
|---|
|  |  |  | 
|---|
|  |  |  | page: pageIndex, | 
|---|
|  |  |  | orderInput: extraParamState.orderInput, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // searchWord: extraParamState.searchWord, | 
|---|
|  |  |  | id: id, | 
|---|
|  |  |  | keywords: extraParamState.searchWord, | 
|---|
|  |  |  | hireStatus: extraParamState.hireStatus, | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | let res = await taskUserServices.getTaskUsers(params, { | 
|---|
|  |  |  | 
|---|
|  |  |  | contactPhoneNumber: '', | 
|---|
|  |  |  | gender: EnumUserGender.Male, | 
|---|
|  |  |  | age: null as any as number, | 
|---|
|  |  |  | idFrontUrl: [] as UploadUserFile[], | 
|---|
|  |  |  | idBackUrl: [] as UploadUserFile[], | 
|---|
|  |  |  | identityImg: [] as UploadUserFile[], | 
|---|
|  |  |  | identityBackImg: [] as UploadUserFile[], | 
|---|
|  |  |  | contractUrl: [] as UploadUserFile[], | 
|---|
|  |  |  | regiterTime: '', | 
|---|
|  |  |  | userRealTime: '', | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function openDialog(row: API.GetTaskUsersQueryResultItem) { | 
|---|
|  |  |  | handleStaffInfoEdit({ | 
|---|
|  |  |  | id: row.id, | 
|---|
|  |  |  | name: row.name, | 
|---|
|  |  |  | identity: row.identity, | 
|---|
|  |  |  | contactPhoneNumber: row.contactPhoneNumber, | 
|---|
|  |  |  | gender: row.gender, | 
|---|
|  |  |  | age: row.age ?? null, | 
|---|
|  |  |  | idFrontUrl: convertApi2FormUrlOnlyOne(row.idFrontUrl), | 
|---|
|  |  |  | idBackUrl: convertApi2FormUrlOnlyOne(row.idBackUrl), | 
|---|
|  |  |  | contractUrl: convertApi2FormUrlOnlyOne(row.contractUrl, { | 
|---|
|  |  |  | fileName: row.contractUrl ? row.contractUrl.split('/').pop() : '合同', | 
|---|
|  |  |  | }), | 
|---|
|  |  |  | regiterTime: row.regiterTime ?? '', | 
|---|
|  |  |  | userRealTime: row.userRealTime, | 
|---|
|  |  |  | userSignContractTime: row.userSignContractTime, | 
|---|
|  |  |  | isDetail: true, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | async function openDialog(row: API.GetTaskUsersQueryResultItem) { | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | let detail = await enterpriseEmployeeServices.getEnterpriseEmployee({ | 
|---|
|  |  |  | id: row.enterpriseEmployeeId, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | handleStaffInfoEdit({ | 
|---|
|  |  |  | id: row.id, | 
|---|
|  |  |  | name: row.name, | 
|---|
|  |  |  | identity: row.identity, | 
|---|
|  |  |  | contactPhoneNumber: row.contactPhoneNumber, | 
|---|
|  |  |  | gender: detail.gender, | 
|---|
|  |  |  | age: detail.age ?? null, | 
|---|
|  |  |  | identityImg: convertApi2FormUrlOnlyOne(detail.identityImg), | 
|---|
|  |  |  | identityBackImg: convertApi2FormUrlOnlyOne(detail.identityBackImg), | 
|---|
|  |  |  | contractUrl: convertApi2FormUrlOnlyOne(detail.contractUrl, { | 
|---|
|  |  |  | fileName: detail.contractUrl ? detail.contractUrl.split('/').pop() : '合同', | 
|---|
|  |  |  | }), | 
|---|
|  |  |  | regiterTime: detail.applyTime ?? '', | 
|---|
|  |  |  | userRealTime: detail.userRealTime ?? '', | 
|---|
|  |  |  | userSignContractTime: detail.userSignContractTime ?? '', | 
|---|
|  |  |  | isDetail: true, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } catch (error) {} | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | async function setTaskUserHire( | 
|---|
|  |  |  | 
|---|
|  |  |  | hireStatus: EnumTaskUserHireStatus | 
|---|
|  |  |  | ) { | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | await Message.tipMessage( | 
|---|
|  |  |  | `确认要${hireStatus === EnumTaskUserHireStatus.Pass ? '录用' : '谢绝'}吗?` | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | let params: API.SetTaskUserHireCommand = { | 
|---|
|  |  |  | id: row.id, | 
|---|
|  |  |  | hireStatus: hireStatus, | 
|---|