From aced89ccd7cbd06eecf1d92407fe152d5a3bfb99 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 27 八月 2025 11:14:59 +0800 Subject: [PATCH] feat: 签约 --- apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue | 38 ++++++++++++++++++++++++++------------ 1 files changed, 26 insertions(+), 12 deletions(-) diff --git a/apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue b/apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue index 3f72bab..46982c2 100644 --- a/apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue +++ b/apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue @@ -25,28 +25,36 @@ :gender="item.gender" :age="item.age" :isReal="item.userIsReal" + :personalIdentityContent="item.personalIdentityContent" + :educationalBackgroundContent="item.educationalBackgroundContent" + :taskCount="item.taskCount" + :avatar="item.avatar" + :workExperience="item.workExperience" + :workSeniority="item.workSeniority" @click="goDetail(item)" > <template #footerRight> - <span></span> - <!-- <template - v-if="queryState.userSignContractStatus === EnumTaskUserSignContractStatus.Pass" + <template + v-if="Number(queryState.userSignContractStatus) === EnumTaskUserSignContractStatus.Pass" > <nut-button class="flexJobManage-card-plain-button" type="default" plain - @click.stop="handleUnContract" + @click.stop="handleUnsign(item)" >瑙g害</nut-button > <nut-button type="primary" @click.stop="checkContract">鏌ョ湅鍚堢害</nut-button> </template> <nut-button - v-else-if="queryState.userSignContractStatus === EnumTaskUserSignContractStatus.Wait" + v-else-if=" + Number(queryState.userSignContractStatus) === EnumTaskUserSignContractStatus.Wait || + Number(queryState.userSignContractStatus) === EnumTaskUserSignContractStatus.Refuse + " type="primary" - @click.stop="goSignContract(item)" + @click.stop="goFlexJobSign(item)" >绛剧害</nut-button - > --> + > </template> </FlexJobCard> </template> @@ -64,6 +72,7 @@ } from '@12333/constants'; import * as enterpriseEmployeeServices from '@12333/services/apiV2/enterpriseEmployee'; import Taro from '@tarojs/taro'; +import { Message } from '@12333/utils'; defineOptions({ name: 'InnerPage', @@ -94,17 +103,22 @@ } ); +function checkContract() {} + function goDetail(item: API.GetEnterpriseEmployeesQueryResultItem) { Taro.navigateTo({ - url: `${RouterPath.flexJobDetailFromManage}?userId=${item.id}`, + url: `${RouterPath.flexJobDetailFromManage}?enterpriseEmployeeId=${item.id}`, }); } -function checkContract() {} -function handleUnContract() {} -function goSignContract(item: API.GetNewestWorkerListOutput) { +async function handleUnsign(item: API.GetEnterpriseEmployeesQueryResultItem) { + try { + await Message.confirm({ message: '纭畾瑕佽В绾﹀悧锛�' }); + } catch (error) {} +} +function goFlexJobSign(item: API.GetEnterpriseEmployeesQueryResultItem) { Taro.navigateTo({ - url: `${RouterPath.flexJobSign}`, + url: `${RouterPath.flexJobSign}?enterpriseEmployeeId=${item.id}`, }); } </script> -- Gitblit v1.9.1