| | |
| | | :name="item.name" |
| | | :age="item.age" |
| | | :gender="item.gender" |
| | | :avatar="item.avatar" |
| | | :avatar="setOSSLink(item.avatar)" |
| | | :isReal="item.isReal" |
| | | :personalIdentityContent="item.personalIdentityContent" |
| | | :educationalBackgroundContent="item.educationalBackgroundContent" |
| | |
| | | import { useTaskUserList } from '@12333/hooks'; |
| | | import { FlexJobCard } from '@12333/components'; |
| | | import Taro from '@tarojs/taro'; |
| | | import { setOSSLink } from '@12333/utils'; |
| | | |
| | | defineOptions({ |
| | | name: 'SignList', |
| | |
| | | :createdTime="item.createdTime" |
| | | :serviceFee="item.serviceFee" |
| | | :unit="BillingMethodEnumUnit[item.billingMethod]" |
| | | @click="goSubmitTaskDetail(item)" |
| | | mode="taskManage" |
| | | > |
| | | <template #footer-actions> |
| | | <nut-button type="primary" @click.stop="goBatchTaskList(item, 'arrange')" |
| | | >人员安排</nut-button |
| | | > |
| | | <nut-button |
| | | v-if="item.status === EnumTaskStatus.Complete" |
| | | type="primary" |
| | |
| | | class="dark-btn" |
| | | @click.stop="goBatchTaskList(item, 'detail')" |
| | | >详情</nut-button |
| | | > |
| | | <nut-button type="primary" v-else @click.stop="goBatchTaskList(item, 'arrange')" |
| | | >人员安排</nut-button |
| | | > |
| | | </template> |
| | | </JobApplicationCard> |
| | |
| | | onSuccess(data) { |
| | | form.typeCode = data.typeCode; |
| | | form.code = data.code; |
| | | form.startDate = dayjs(data.startDate).format('YYYY-MM-DD'); |
| | | form.endDate = dayjs(data.endDate).format('YYYY-MM-DD'); |
| | | form.startDate = data.startDate ? dayjs(data.startDate).format('YYYY-MM-DD') : ''; |
| | | form.endDate = data.startDate ? dayjs(data.endDate).format('YYYY-MM-DD') : ''; |
| | | form.issueUnit = data.issueUnit; |
| | | form.isForever = data.isForever; |
| | | form.img = convertApi2FormUrlOnlyOne(setOSSLink(data.img)); |
| | |
| | | @click="handleCall" |
| | | ></PageFooterAction> |
| | | <PageFooterBtn |
| | | v-if="detail.releaseStatus === EnumTaskReleaseStatus.InProcess" |
| | | v-if="showApplyBtn" |
| | | type="primary" |
| | | @click="handleApply" |
| | | :disabled="detail?.hireStatus === EnumTaskUserHireStatus.Wait" |
| | | >{{ `报名(${detail?.applyCount ?? 0}人已报名)` }}</PageFooterBtn |
| | | > |
| | | <PageFooterBtn v-if="detail.hireStatus === EnumTaskUserHireStatus.Wait" color="#999999" |
| | | >已停止</PageFooterBtn |
| | | <PageFooterBtn |
| | | v-if="detail.applyButton === GetTaskInfoQueryResultApplyButton.WaitHire" |
| | | color="#999999" |
| | | disabled |
| | | >待确认</PageFooterBtn |
| | | > |
| | | <!-- <PageFooterBtn |
| | | v-if="detail.applyButton === GetTaskInfoQueryResultApplyButton.WaitSignContract" |
| | | >去签约</PageFooterBtn |
| | | > --> |
| | | <PageFooterBtn |
| | | v-if="detail.hireButton === GetTaskInfoQueryResultHireButton.InProcess" |
| | | color="#999999" |
| | | disabled |
| | | >进行中</PageFooterBtn |
| | | > |
| | | <!-- <PageFooterBtn |
| | | v-if="detail.hireButton === GetTaskInfoQueryResultHireButton.ApplyCheckReceive" |
| | | >申请验收</PageFooterBtn |
| | | > --> |
| | | <PageFooterBtn |
| | | v-if="detail.hireButton === GetTaskInfoQueryResultHireButton.Completed" |
| | | color="#999999" |
| | | disabled |
| | | >已完成</PageFooterBtn |
| | | > |
| | | <PageFooterBtn v-if="detail.releaseStatus === EnumTaskReleaseStatus.Stopped" color="#999999" |
| | | >已停止</PageFooterBtn |
| | |
| | | BillingMethodEnumUnit, |
| | | EnumTaskReleaseStatus, |
| | | EnumTaskUserHireStatus, |
| | | GetTaskInfoQueryResultApplyButton, |
| | | GetTaskInfoQueryResultHireButton, |
| | | } from '@12333/constants'; |
| | | import { useAccessLogin } from '@/hooks'; |
| | | |
| | |
| | | const router = Taro.useRouter(); |
| | | const taskId = router.params?.id ?? ''; |
| | | |
| | | const showApplyBtn = computed(() => { |
| | | return ( |
| | | detail.value?.releaseStatus === EnumTaskReleaseStatus.InProcess && |
| | | (detail.value?.hireStatus === EnumTaskUserHireStatus.Wait || !detail.value?.hireStatus) |
| | | ); |
| | | }); |
| | | |
| | | const { |
| | | isLoading, |
| | | isError, |
| | |
| | | |
| | | /** 任务结算状态 */ |
| | | export enum EnumTaskCheckReceiveStatus { |
| | | /**待验收 */ |
| | | Wait = 10, |
| | | /**待提交 */ |
| | | WaitSubmit = 10, |
| | | /**已验收 */ |
| | | Completed = 30, |
| | | } |
| | |
| | | /**已完成 */ |
| | | Completed = 20, |
| | | } |
| | | |
| | | /** 我的报名列表-详情-按钮类型 */ |
| | | export enum GetTaskInfoQueryResultApplyButton { |
| | | /**待确认 */ |
| | | WaitHire = 10, |
| | | /**去签约 */ |
| | | WaitSignContract = 20, |
| | | } |
| | | |
| | | /** 我的录用列表-详情-按钮类型 */ |
| | | export enum GetTaskInfoQueryResultHireButton { |
| | | /**申请验收 */ |
| | | ApplyCheckReceive = 1, |
| | | /**进行中 */ |
| | | InProcess = 10, |
| | | /**已完成 */ |
| | | Completed = 20, |
| | | } |
| | |
| | | /* eslint-disable */ |
| | | // API 更新时间: |
| | | // API 唯一标识: |
| | | import * as userResume from './userResume'; |
| | | import * as resource from './resource'; |
| | | import * as enterpriseEmployee from './enterpriseEmployee'; |
| | | import * as user from './user'; |
| | | import * as dictionary from './dictionary'; |
| | | import * as auth from './auth'; |
| | | import * as taskUser from './taskUser'; |
| | | import * as task from './task'; |
| | | import * as enterprise from './enterprise'; |
| | | import * as role from './role'; |
| | | import * as enterprise from './enterprise'; |
| | | import * as task from './task'; |
| | | import * as dictionary from './dictionary'; |
| | | import * as user from './user'; |
| | | import * as userResume from './userResume'; |
| | | import * as auth from './auth'; |
| | | import * as resource from './resource'; |
| | | import * as taskUser from './taskUser'; |
| | | import * as menu from './menu'; |
| | | import * as enterpriseEmployee from './enterpriseEmployee'; |
| | | export default { |
| | | userResume, |
| | | resource, |
| | | enterpriseEmployee, |
| | | user, |
| | | dictionary, |
| | | auth, |
| | | taskUser, |
| | | task, |
| | | enterprise, |
| | | role, |
| | | enterprise, |
| | | task, |
| | | dictionary, |
| | | user, |
| | | userResume, |
| | | auth, |
| | | resource, |
| | | taskUser, |
| | | menu, |
| | | enterpriseEmployee, |
| | | }; |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 查询验收分页列表 POST /api/flexjob/taskUser/getCheckReceiveTaskUserInfos */ |
| | | export async function getCheckReceiveTaskUserInfos( |
| | | body: API.GetCheckReceiveTaskUserInfosQuery, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetCheckReceiveTaskUserInfosQueryResult>( |
| | | '/api/flexjob/taskUser/getCheckReceiveTaskUserInfos', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** B端查询应聘报名分页列表信息 POST /api/flexjob/taskUser/getTaskUsers */ |
| | | export async function getTaskUsers(body: API.GetTaskUsersQuery, options?: API.RequestConfig) { |
| | | return request<API.GetTaskUsersQueryResult>('/api/flexjob/taskUser/getTaskUsers', { |
| | |
| | | } |
| | | |
| | | enum EnumTaskCheckReceiveStatus { |
| | | /**待验收 */ |
| | | Wait = 10, |
| | | /**待提交 */ |
| | | WaitSubmit = 10, |
| | | /**已验收 */ |
| | | Completed = 30, |
| | | } |
| | |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetArrangeTaskUsersQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetCheckReceiveTaskUserInfosQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetCheckReceiveTaskUserInfosQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | |
| | | arrangeStatus?: EnumTaskUserArrangeStatus; |
| | | } |
| | | |
| | | interface GetCheckReceiveTaskUserInfosQuery { |
| | | /** 任务Id */ |
| | | taskInfoId?: string; |
| | | /** 关键字 */ |
| | | keywords?: string; |
| | | /** 验收日期-最早时间 */ |
| | | dateBegin?: string; |
| | | /** 验收日期-最晚时间 */ |
| | | dateEnd?: string; |
| | | checkReceiveStatus?: EnumTaskCheckReceiveStatus; |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | | interface GetCheckReceiveTaskUserInfosQueryResult { |
| | | pageModel?: PagedListQueryResultPageModel; |
| | | /** 数据 */ |
| | | data?: GetCheckReceiveTaskUserInfosQueryResultItem[]; |
| | | } |
| | | |
| | | interface GetCheckReceiveTaskUserInfosQueryResultItem { |
| | | /** 任务Id */ |
| | | id?: string; |
| | | /** 任务名称 */ |
| | | taskName?: string; |
| | | /** 任务开始时间 */ |
| | | beginTime?: string; |
| | | /** 任务结束时间 */ |
| | | endTime?: string; |
| | | /** 任务地点名称 */ |
| | | addressName?: string; |
| | | /** 姓名 */ |
| | | name?: string; |
| | | /** 身份证号 */ |
| | | identity?: string; |
| | | gender?: EnumUserGender; |
| | | /** 年龄 */ |
| | | age?: number; |
| | | /** 手机号 */ |
| | | contactPhoneNumber?: string; |
| | | /** 提交时间 */ |
| | | lastSubmitTime?: string; |
| | | checkReceiveStatus?: EnumTaskCheckReceiveStatus; |
| | | } |
| | | |
| | | type GetCurrentLogierMenusQuery = Record<string, any>; |
| | | |
| | | interface GetDictionaryCategoriesQuery { |
| | |
| | | age?: number; |
| | | /** 手机号 */ |
| | | contactPhoneNumber?: string; |
| | | hireStatus?: EnumTaskUserHireStatus; |
| | | /** 实名状态 */ |
| | | /** 是否实名 */ |
| | | userIsReal?: boolean; |
| | | realMethod?: EnumUserRealMethod; |
| | | /** 身份编号 */ |
| | | personalIdentityCode?: string; |
| | | /** 身份 */ |
| | | personalIdentityContent?: string; |
| | | /** 学历编号 */ |
| | | educationalBackgroundCode?: string; |
| | | /** 学历 */ |
| | | educationalBackgroundContent?: string; |
| | | /** 上岗次数 */ |
| | | taskCount?: number; |
| | | /** 工作资历 */ |
| | | workSeniority?: string; |
| | | /** 工作经验 */ |
| | | workExperience?: string; |
| | | hireStatus?: EnumTaskUserHireStatus; |
| | | userSignContractStatus?: EnumTaskUserSignContractStatus; |
| | | /** 录用时间 */ |
| | | hireTime?: string; |
| | |
| | | status?: EnumTaskStatus; |
| | | releaseStatus?: EnumTaskReleaseStatus; |
| | | hireStatus?: EnumTaskUserHireStatus; |
| | | applyButton?: GetTaskInfoQueryResultApplyButton; |
| | | hireButton?: GetTaskInfoQueryResultHireButton; |
| | | } |
| | | |
| | | enum GetTaskInfoQueryResultApplyButton { |
| | | /**待确认 */ |
| | | WaitHire = 10, |
| | | /**去签约 */ |
| | | WaitSignContract = 20, |
| | | } |
| | | |
| | | interface GetTaskInfoQueryResultBenefit { |
| | |
| | | typeCode?: string; |
| | | /** 证书类型 */ |
| | | typeContent?: string; |
| | | } |
| | | |
| | | enum GetTaskInfoQueryResultHireButton { |
| | | /**申请验收 */ |
| | | ApplyCheckReceive = 1, |
| | | /**进行中 */ |
| | | InProcess = 10, |
| | | /**已完成 */ |
| | | Completed = 20, |
| | | } |
| | | |
| | | interface GetTaskInfosQuery { |
| | |
| | | interface GetTaskUsersQuery { |
| | | /** 任务Id */ |
| | | id?: string; |
| | | /** 关键字 */ |
| | | keywords?: string; |
| | | hireStatus?: EnumTaskUserHireStatus; |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | |
| | | /** 永久证书 */ |
| | | isForever?: boolean; |
| | | /** 开始日期 */ |
| | | startDate: string; |
| | | startDate?: string; |
| | | /** 结束日期 */ |
| | | endDate: string; |
| | | endDate?: string; |
| | | /** 发证单位 */ |
| | | issueUnit?: string; |
| | | /** 证书正面照片 */ |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 查询灵工分页列表数据 POST /api/user/userResume/getUserResumes */ |
| | | /** 查询简历分页列表数据 POST /api/user/userResume/getUserResumes */ |
| | | export async function getUserResumes(body: API.GetUserResumesQuery, options?: API.RequestConfig) { |
| | | return request<API.GetUserResumesQueryResult>('/api/user/userResume/getUserResumes', { |
| | | method: 'POST', |