| | |
| | | url: `${RouterPath.taskCheckedDetail}?id=${item.id}`, |
| | | }); |
| | | } |
| | | if (item.checkReceiveStatus === EnumTaskCheckReceiveStatus.WaitCheckReceive) { |
| | | if ( |
| | | item.checkReceiveStatus === EnumTaskCheckReceiveStatus.WaitCheckReceive || |
| | | item.checkReceiveStatus === EnumTaskCheckReceiveStatus.WaitSubmit |
| | | ) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.taskHandleCheckDetail}?id=${item.id}&date=${date}`, |
| | | }); |
| | |
| | | function goSubmitTaskDetail(item: API.GetCheckReceiveTasksQueryResultItem) { |
| | | if (Number(queryState.checkReceiveStatus) === EnumTaskCheckReceiveStatus.WaitSubmit) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.taskSubmitCheck}?id=${item.id}`, |
| | | url: `${RouterPath.taskSubmitCheck}?id=${item.id}&date=${queryState.date}`, |
| | | }); |
| | | } |
| | | if (Number(queryState.checkReceiveStatus) === EnumTaskCheckReceiveStatus.Completed) { |
| | |
| | | |
| | | <script setup lang="ts"> |
| | | import { TaskCard } from '@12333/components'; |
| | | import { useUserStore } from '@/stores/modules/user'; |
| | | import { useTaskList } from '@12333/hooks'; |
| | | import * as taskServices from '@12333/services/apiV2/task'; |
| | | import * as taskUserServices from '@12333/services/apiV2/taskUser'; |
| | | import { useInfiniteLoading, useTaskList } from '@12333/hooks'; |
| | | import Taro from '@tarojs/taro'; |
| | | import { Message } from '@12333/utils'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | | }); |
| | | |
| | | const { infiniteLoadingProps } = useTaskList({ |
| | | defaultQueryMenuState: {}, |
| | | }); |
| | | const { infiniteLoadingProps, invalidateQueries } = useInfiniteLoading( |
| | | ({ pageParam }) => { |
| | | let params: API.GetTaskInfosQuery = { |
| | | pageModel: { |
| | | rows: 20, |
| | | page: pageParam, |
| | | }, |
| | | isCollected: true, |
| | | }; |
| | | |
| | | return taskServices.getTaskInfos(params, { |
| | | showLoading: false, |
| | | }); |
| | | }, |
| | | { |
| | | queryKey: ['taskServices/getTaskInfos'], |
| | | } |
| | | ); |
| | | |
| | | function goTaskDetail(id: string) { |
| | | Taro.navigateTo({ |
| | |
| | | }); |
| | | } |
| | | |
| | | function clearExpiredTask() {} |
| | | async function clearExpiredTask() { |
| | | try { |
| | | await Message.confirm({ |
| | | message: '确定要清空已失效任务吗?', |
| | | }); |
| | | let res = await taskUserServices.clearTaskCollect({}); |
| | | if (res) { |
| | | Message.success('清空成功'); |
| | | invalidateQueries(); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | |
| | | import Taro from '@tarojs/taro'; |
| | | import { goBack } from '@/utils'; |
| | | import { useQueryClient } from '@tanstack/vue-query'; |
| | | import dayjs from 'dayjs'; |
| | | |
| | | defineOptions({ |
| | | name: 'InnerPage', |
| | |
| | | |
| | | const route = Taro.useRouter(); |
| | | const id = route.params?.id as string; |
| | | const date = route.params?.date as string; |
| | | const queryClient = useQueryClient(); |
| | | |
| | | const form = reactive({ |
| | |
| | | try { |
| | | let params: API.SubmitCheckReceiveTaskCommand = { |
| | | taskInfoId: id, |
| | | date: dayjs(date).format('YYYY-MM-DD'), |
| | | files: form.files.map((x) => x.path), |
| | | }; |
| | | let res = await taskCheckReceiveServices.submitCheckReceiveTask(params); |
| | |
| | | rows: 20, |
| | | page: pageParam, |
| | | }, |
| | | taskInfoId: id, |
| | | id: id, |
| | | }; |
| | | |
| | | return taskCheckReceiveServices.getCheckReceiveTaskUserSubmits(params, { |
| | |
| | | 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 || {}), |
| | | }); |
| | | return request<API.ImportEnterpriseEmployeesCommandResult>( |
| | | '/api/user/enterpriseEmployee/importEnterpriseEmployees', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | |
| | | 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 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'; |
| | |
| | | role, |
| | | enterprise, |
| | | task, |
| | | taskCheckReceive, |
| | | dictionary, |
| | | userResume, |
| | | auth, |
| | | taskCheckReceive, |
| | | resource, |
| | | taskUser, |
| | | menu, |
| | |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 按日期修订任务状态 POST /api/flexjob/task/autoTaskStatusByDate */ |
| | | export async function autoTaskStatusByDate( |
| | | body: API.AutoTaskStatusByDateCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/flexjob/task/autoTaskStatusByDate', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 删除任务 DELETE /api/flexjob/task/deleteTaskInfo */ |
| | | export async function deleteTaskInfo(body: API.DeleteTaskInfoCommand, options?: API.RequestConfig) { |
| | | return request<number>('/api/flexjob/task/deleteTaskInfo', { |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 清空已停止的任务收藏 DELETE /api/flexjob/taskUser/clearTaskCollect */ |
| | | export async function clearTaskCollect( |
| | | body: API.ClearTaskCollectCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/flexjob/taskUser/clearTaskCollect', { |
| | | method: 'DELETE', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 收藏任务 POST /api/flexjob/taskUser/collectTask */ |
| | | export async function collectTask(body: API.CollectTaskCommand, options?: API.RequestConfig) { |
| | | return request<number>('/api/flexjob/taskUser/collectTask', { |
| | |
| | | ids?: string[]; |
| | | } |
| | | |
| | | type AutoTaskStatusByDateCommand = Record<string, any>; |
| | | |
| | | interface BindWxmpUserInfoCommand { |
| | | /** 访问令牌 */ |
| | | accessToken: string; |
| | |
| | | id?: string; |
| | | checkReceiveStatus?: EnumTaskUserSubmitCheckReceiveStatus; |
| | | } |
| | | |
| | | type ClearTaskCollectCommand = Record<string, any>; |
| | | |
| | | interface CollectTaskCommand { |
| | | /** 任务Id */ |
| | |
| | | |
| | | interface EditEnterpriseEmployeeCommand { |
| | | /** 姓名 */ |
| | | name?: string; |
| | | name: string; |
| | | /** 身份证号 */ |
| | | identity?: string; |
| | | identity: string; |
| | | /** 手机号 */ |
| | | contactPhoneNumber?: string; |
| | | contactPhoneNumber: string; |
| | | gender?: EnumUserGender; |
| | | /** 年龄 */ |
| | | age?: number; |
| | |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetPersonalUserInfoSignContractsQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetPersonalUserInfoSignContractsQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetPersonalUserInfosQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | |
| | | errorCode?: string; |
| | | /** 数据 */ |
| | | data?: string; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultImportEnterpriseEmployeesCommandResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: ImportEnterpriseEmployeesCommandResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | |
| | | avatar?: string; |
| | | /** 姓名 */ |
| | | name?: string; |
| | | gender?: EnumUserGender; |
| | | /** 企业全称 */ |
| | | enterpriseName?: string; |
| | | /** 角色 */ |
| | |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | | interface GetOpenUserResumesQuery { |
| | | /** 任务Id */ |
| | | taskInfoId?: string; |
| | | /** 期望岗位编号 */ |
| | | userExpectJobs?: string[]; |
| | | gender?: EnumUserGender; |
| | | /** 身份编号 */ |
| | | personalIdentityCode?: string; |
| | | /** 年龄范围最小 */ |
| | | ageMin?: number; |
| | | /** 年龄范围大 */ |
| | | ageMax?: number; |
| | | /** 资格证书编号 */ |
| | | userCredentials?: string[]; |
| | | /** 是否已收藏 */ |
| | | isCollected?: boolean; |
| | | /** 是否已联系 */ |
| | | isContacted?: boolean; |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | | interface GetOperationUserInfosQuery { |
| | | /** 关键字 */ |
| | | keywords?: string; |
| | |
| | | interface GetPersonalLoginInfoQueryResult { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 头像 */ |
| | | avatar?: string; |
| | | /** 姓名 */ |
| | | name?: string; |
| | | /** 是否实名 */ |
| | |
| | | hirePassTaskCount?: number; |
| | | /** 已取消 */ |
| | | hireRefuseTaskCount?: number; |
| | | } |
| | | |
| | | interface GetPersonalUserInfoSignContractsQuery { |
| | | /** 用户Id */ |
| | | id?: string; |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | | interface GetPersonalUserInfoSignContractsQueryResult { |
| | | pageModel?: PagedListQueryResultPageModel; |
| | | /** 数据 */ |
| | | data?: GetPersonalUserInfoSignContractsQueryResultItem[]; |
| | | } |
| | | |
| | | interface GetPersonalUserInfoSignContractsQueryResultItem { |
| | | /** 灵工Id */ |
| | | id?: string; |
| | | /** 所属商户 */ |
| | | enterpriseName?: string; |
| | | /** 报名时间 */ |
| | | applyTime?: string; |
| | | hireStatus?: EnumTaskUserHireStatus; |
| | | /** 录用时间 */ |
| | | hireTime?: string; |
| | | userSignContractStatus?: EnumTaskUserSignContractStatus; |
| | | enterpriseSignContractStatus?: EnumTaskUserSignContractStatus; |
| | | /** 企业签约时间 */ |
| | | enterpriseSignContractTime?: string; |
| | | /** 电子合同 */ |
| | | contractUrl?: string; |
| | | } |
| | | |
| | | interface GetPersonalUserInfosQuery { |
| | |
| | | contactPhoneNumber?: string; |
| | | /** 身份证号 */ |
| | | identity?: string; |
| | | /** 身份证人像面 */ |
| | | identityImg?: string; |
| | | /** 身份证国徽面 */ |
| | | identityBackImg?: string; |
| | | gender?: EnumUserGender; |
| | | /** 年龄 */ |
| | | age?: number; |
| | |
| | | excelUrl?: string; |
| | | } |
| | | |
| | | interface ImportEnterpriseEmployeesCommandResult { |
| | | /** 总数 */ |
| | | totalCount?: number; |
| | | /** 成功数量 */ |
| | | successCount?: number; |
| | | /** 失败数量 */ |
| | | failCount?: number; |
| | | /** 错误信息 */ |
| | | errors?: ImportEnterpriseEmployeesCommandResultError[]; |
| | | } |
| | | |
| | | interface ImportEnterpriseEmployeesCommandResultError { |
| | | /** 错误信息 */ |
| | | errorMessage?: string; |
| | | /** 姓名 */ |
| | | name?: string; |
| | | /** 手机号 */ |
| | | contactPhoneNumber?: string; |
| | | /** 身份证号 */ |
| | | identity?: string; |
| | | } |
| | | |
| | | interface LoginCommandCallback { |
| | | /** 用户Id */ |
| | | id?: string; |
| | |
| | | interface SubmitCheckReceiveTaskCommand { |
| | | /** 任务Id */ |
| | | taskInfoId?: string; |
| | | /** 日期 */ |
| | | date?: string; |
| | | /** 附件 */ |
| | | files?: string[]; |
| | | } |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 查询C端人员签约详情分页列表数据 POST /api/user/user/getPersonalUserInfoSignContracts */ |
| | | export async function getPersonalUserInfoSignContracts( |
| | | body: API.GetPersonalUserInfoSignContractsQuery, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetPersonalUserInfoSignContractsQueryResult>( |
| | | '/api/user/user/getPersonalUserInfoSignContracts', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询用户角色列表 GET /api/user/user/getUserInfoRoles */ |
| | | export async function getUserInfoRoles( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 查询开放简历分页列表数据 POST /api/user/userResume/getOpenUserResumes */ |
| | | export async function getOpenUserResumes( |
| | | body: API.GetOpenUserResumesQuery, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetUserResumesQueryResult>('/api/user/userResume/getOpenUserResumes', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 查询用户简历 GET /api/user/userResume/getUserResume */ |
| | | export async function getUserResume( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |