From 84609d384c2f0abfcfcb23cbfe1be5922425842a Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 03 九月 2025 15:07:36 +0800 Subject: [PATCH] feat: 钱包 --- apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue b/apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue index 4cfbfce..9b371ce 100644 --- a/apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue +++ b/apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue @@ -44,7 +44,7 @@ @click.stop="handleUnsign(item)" >瑙g害</nut-button > - <nut-button type="primary" @click.stop="checkContract">鏌ョ湅鍚堢害</nut-button> + <nut-button type="primary" @click.stop="checkContract(item)">鏌ョ湅鍚堢害</nut-button> </template> <nut-button v-else-if=" @@ -72,7 +72,7 @@ } from '@12333/constants'; import * as enterpriseEmployeeServices from '@12333/services/apiV2/enterpriseEmployee'; import Taro from '@tarojs/taro'; -import { Message } from '@12333/utils'; +import { Message, openDocument, setOSSLink } from '@12333/utils'; defineOptions({ name: 'InnerPage', @@ -82,7 +82,7 @@ userSignContractStatus: EnumTaskUserSignContractStatus.Pass, }); -const { infiniteLoadingProps } = useInfiniteLoading( +const { infiniteLoadingProps, invalidateQueries } = useInfiniteLoading( ({ pageParam }) => { let params: API.GetEnterpriseEmployeesQuery = { pageModel: { @@ -103,7 +103,13 @@ } ); -function checkContract() {} +function checkContract(item: API.GetEnterpriseEmployeesQueryResultItem) { + if (!item.contractUrl) { + Message.warning('鍗忚鏃犳硶鏌ョ湅锛岃绋嶅悗鍐嶈瘯'); + return; + } + openDocument(setOSSLink(item.contractUrl)); +} function goDetail(item: API.GetEnterpriseEmployeesQueryResultItem) { Taro.navigateTo({ @@ -114,6 +120,14 @@ async function handleUnsign(item: API.GetEnterpriseEmployeesQueryResultItem) { try { await Message.confirm({ message: '纭畾瑕佽В绾﹀悧锛�' }); + let params: API.StopElectronSignCommand = { + ids: [item.id], + }; + let res = await enterpriseEmployeeServices.stopElectronSign(params); + if (res) { + Message.success('瑙g害鎴愬姛'); + invalidateQueries(); + } } catch (error) {} } function goFlexJobSign(item: API.GetEnterpriseEmployeesQueryResultItem) { -- Gitblit v1.9.1