src/services/api/enterpriseEmployee.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/services/api/index.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/services/api/taskCheckReceive.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/services/api/typings.d.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/services/api/user.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/EmploymentManage/CheckManage.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/services/api/enterpriseEmployee.ts
@@ -2,6 +2,21 @@ // @ts-ignore import { request } from '@/utils/request'; /** 编辑灵工信息 POST /api/user/enterpriseEmployee/editEnterpriseEmployee */ export async function editEnterpriseEmployee( body: API.EditEnterpriseEmployeeCommand, options?: API.RequestConfig ) { return request<string>('/api/user/enterpriseEmployee/editEnterpriseEmployee', { method: 'POST', headers: { 'Content-Type': 'application/json-patch+json', }, data: body, ...(options || {}), }); } /** 查询灵工详情 GET /api/user/enterpriseEmployee/getEnterpriseEmployee */ export async function getEnterpriseEmployee( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) @@ -37,3 +52,18 @@ } ); } /** 导入灵工信息 POST /api/user/enterpriseEmployee/importEnterpriseEmployees */ export async function importEnterpriseEmployees( body: API.ImportEnterpriseEmployeesCommand, options?: API.RequestConfig ) { return request<number>('/api/user/enterpriseEmployee/importEnterpriseEmployees', { method: 'POST', headers: { 'Content-Type': 'application/json-patch+json', }, data: body, ...(options || {}), }); } src/services/api/index.ts
@@ -6,11 +6,11 @@ import * as role from './role'; import * as enterprise from './enterprise'; import * as task from './task'; import * as taskCheckReceive from './taskCheckReceive'; import * as dictionary from './dictionary'; import * as user from './user'; import * as userResume from './userResume'; import * as auth from './auth'; import * as taskCheckReceive from './taskCheckReceive'; import * as resource from './resource'; import * as taskUser from './taskUser'; import * as menu from './menu'; @@ -19,11 +19,11 @@ role, enterprise, task, taskCheckReceive, dictionary, user, userResume, auth, taskCheckReceive, resource, taskUser, menu, src/services/api/taskCheckReceive.ts
@@ -17,6 +17,21 @@ }); } /** 导出验收记录 POST /api/flexjob/taskCheckReceive/exportTaskCheckReceiveTaskUsers */ export async function exportTaskCheckReceiveTaskUsers( body: API.ExportTaskCheckReceiveTaskUsersCommand, options?: API.RequestConfig ) { return request<string>('/api/flexjob/taskCheckReceive/exportTaskCheckReceiveTaskUsers', { method: 'POST', headers: { 'Content-Type': 'application/json-patch+json', }, data: body, ...(options || {}), }); } /** 查询验收任务详情 POST /api/flexjob/taskCheckReceive/getCheckReceiveTask */ export async function getCheckReceiveTask( body: API.GetCheckReceiveTaskQuery, src/services/api/typings.d.ts
@@ -163,6 +163,8 @@ interface APIgetUserResumeParams { /** 用户Id */ userId?: string; /** 灵工Id */ enterpriseEmployeeId?: string; } interface APIgetUserResumePersonalParams { @@ -241,6 +243,24 @@ interface DeleteUserResumeCredentialCommand { ids: string[]; } interface EditEnterpriseEmployeeCommand { /** 姓名 */ name?: string; /** 身份证号 */ identity?: string; /** 手机号 */ contactPhoneNumber?: string; gender?: EnumUserGender; /** 年龄 */ age?: number; /** 身份证人像面 */ identityImg?: string; /** 身份证国徽面 */ identityBackImg?: string; /** Id */ id?: string; } enum EnumBillingMethod { @@ -489,6 +509,11 @@ Enterprise = 20, /**运营 */ Operation = 100, } interface ExportTaskCheckReceiveTaskUsersCommand { /** 任务Id */ id?: string; } interface FriendlyResultBoolean { @@ -806,6 +831,24 @@ /** 错误码 */ errorCode?: string; data?: GetPersonalLoginInfoQueryResult; /** 执行成功 */ success?: boolean; /** 错误信息 */ msg?: any; /** 附加数据 */ extras?: any; /** 时间戳 */ timestamp?: number; } interface FriendlyResultGetPersonalUserInfosQueryResult { /** 跟踪Id */ traceId?: string; /** 状态码 */ code?: number; /** 错误码 */ errorCode?: string; data?: GetPersonalUserInfosQueryResult; /** 执行成功 */ success?: boolean; /** 错误信息 */ @@ -1331,6 +1374,25 @@ timestamp?: number; } interface FriendlyResultString { /** 跟踪Id */ traceId?: string; /** 状态码 */ code?: number; /** 错误码 */ errorCode?: string; /** 数据 */ data?: string; /** 执行成功 */ success?: boolean; /** 错误信息 */ msg?: any; /** 附加数据 */ extras?: any; /** 时间戳 */ timestamp?: number; } type GetAliyunOSSAcsQuery = Record<string, any>; interface GetAliyunOSSAcsQueryResult { @@ -1412,6 +1474,9 @@ interface GetCheckReceiveTaskQuery { /** 任务Id */ taskInfoId?: string; checkReceiveStatus?: EnumTaskCheckReceiveStatus; /** 日期(B端小程序专用) */ date?: string; pageModel?: PagedListQueryPageModel; } @@ -1815,9 +1880,9 @@ /** 是否实名 */ isReal?: boolean; /** 我的收藏 */ collectUsers?: number; collectedUserCount?: number; /** 联系记录 */ contactRecords?: number; contactedRecordCount?: number; } interface GetEnterpriseQueryResult { @@ -2188,6 +2253,60 @@ hireRefuseTaskCount?: number; } interface GetPersonalUserInfosQuery { /** 关键字(姓名/手机/身份证号/客户) */ keywords?: string; /** 最近录用时间-最早时间 */ hireTimeBegin?: string; /** 最近录用时间-最晚时间 */ hireTimeEnd?: string; /** 最近签约时间-最早时间 */ signContractBegin?: string; /** 最近签约时间-最晚时间 */ signContractEnd?: string; /** 是否已实名 */ isReal?: boolean; pageModel?: PagedListQueryPageModel; } interface GetPersonalUserInfosQueryResult { pageModel?: PagedListQueryResultPageModel; /** 数据 */ data?: GetPersonalUserInfosQueryResultItem[]; } interface GetPersonalUserInfosQueryResultItem { /** Id */ id?: string; /** 姓名 */ name?: string; /** 手机号 */ contactPhoneNumber?: string; /** 身份证号 */ identity?: string; gender?: EnumUserGender; /** 年龄 */ age?: number; /** 常驻省份编号 */ provinceCode?: string; /** 常驻省份 */ provinceContent?: string; /** 常驻城市编号 */ cityCode?: string; /** 常驻城市 */ cityContent?: string; /** 所属商户 */ enterprises?: string[]; /** 是否实名 */ isReal?: boolean; /** 实名时间 */ realTime?: string; /** 最近录用时间 */ hireTime?: string; /** 最近签约时间 */ signContractTime?: string; } interface GetResourceFieldsQueryResultItem { /** 编号 */ code?: string; @@ -2393,6 +2512,8 @@ releaseStatus?: EnumTaskReleaseStatus; recommendStatus?: EnumTaskRecommendStatus; checkReceiveStatus?: EnumTaskCheckReceiveStatus; /** 是否收藏 */ isCollected?: boolean; pageModel?: PagedListQueryPageModel; } @@ -2667,6 +2788,8 @@ photos?: string[]; /** 经历 */ taskInfoUsers?: GetUserResumeQueryResultExperience[]; /** 是否已收藏 */ isCollected?: boolean; } interface GetUserResumeQueryResultCredential { @@ -2722,6 +2845,10 @@ ageMax?: number; /** 资格证书编号 */ userCredentials?: string[]; /** 是否已收藏 */ isCollected?: boolean; /** 是否已联系 */ isContacted?: boolean; pageModel?: PagedListQueryPageModel; } @@ -2763,6 +2890,8 @@ workSeniority?: string; /** 工作经验 */ workExperience?: string; /** 创建时间 */ createdTime?: string; } type GetUserResumeWorkExperienceQuery = Record<string, any>; @@ -2774,6 +2903,11 @@ workExperience?: string; } interface ImportEnterpriseEmployeesCommand { /** Excel地址 */ excelUrl?: string; } interface LoginCommandCallback { /** 用户Id */ id?: string; src/services/api/user.ts
@@ -20,6 +20,21 @@ ); } /** 查询C端人员分页列表数据 POST /api/user/user/getPersonalUserInfos */ export async function getPersonalUserInfos( body: API.GetPersonalUserInfosQuery, options?: API.RequestConfig ) { return request<API.GetPersonalUserInfosQueryResult>('/api/user/user/getPersonalUserInfos', { method: 'POST', headers: { 'Content-Type': 'application/json-patch+json', }, data: body, ...(options || {}), }); } /** 查询用户角色列表 GET /api/user/user/getUserInfoRoles */ export async function getUserInfoRoles( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) src/views/EmploymentManage/CheckManage.vue
@@ -63,7 +63,7 @@ import { CheckManageColumns } from './constants'; import * as taskCheckReceiveServices from '@/services/api/taskCheckReceive'; import { ModelValueType } from 'element-plus'; import { format } from '@/utils'; import { downloadFileByUrl, format, setOSSLink } from '@/utils'; import { EnumTaskCheckReceiveStatusText } from '@/constants'; defineOptions({ @@ -184,5 +184,15 @@ }); } function handleExport(row: API.GetCheckReceiveTasksQueryResultItem) {} async function handleExport(row: API.GetCheckReceiveTasksQueryResultItem) { try { let params: API.ExportTaskCheckReceiveTaskUsersCommand = { id: row.id, }; let res = await taskCheckReceiveServices.exportTaskCheckReceiveTaskUsers(params); if (res) { downloadFileByUrl(setOSSLink(res)); } } catch (error) {} } </script>