| | |
| | | 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, { |
| | |
| | | }, |
| | | }); |
| | | |
| | | function openDialog(row: API.GetTaskUsersQueryResultItem) { |
| | | 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: 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() : '合同', |
| | | gender: detail.gender, |
| | | age: detail.age ?? null, |
| | | idFrontUrl: convertApi2FormUrlOnlyOne(detail.identityImg), |
| | | idBackUrl: convertApi2FormUrlOnlyOne(detail.identityBackImg), |
| | | contractUrl: convertApi2FormUrlOnlyOne(detail.contractUrl, { |
| | | fileName: detail.contractUrl ? detail.contractUrl.split('/').pop() : '合同', |
| | | }), |
| | | regiterTime: row.regiterTime ?? '', |
| | | userRealTime: row.userRealTime, |
| | | userSignContractTime: row.userSignContractTime, |
| | | regiterTime: detail.applyTime ?? '', |
| | | userRealTime: detail.userRealTime ?? '', |
| | | userSignContractTime: detail.userSignContractTime ?? '', |
| | | isDetail: true, |
| | | }); |
| | | } catch (error) {} |
| | | } |
| | | |
| | | async function setTaskUserHire( |