From 157ccc5dd9df9358f62a2f753668f21bec1c90ee Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 29 八月 2025 16:47:32 +0800 Subject: [PATCH] feat: 签约 --- apps/bMiniApp/src/subpackages/flexJobManage/flexJobDetailFromManage/InnerPage.vue | 3 +-- apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue | 4 ++++ apps/cMiniApp/src/subpackages/mine/mineAgreementSignDetail/InnerPage.vue | 3 +++ apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue | 10 +++++++++- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/apps/bMiniApp/src/subpackages/flexJobManage/flexJobDetailFromManage/InnerPage.vue b/apps/bMiniApp/src/subpackages/flexJobManage/flexJobDetailFromManage/InnerPage.vue index 1755a66..d7d339b 100644 --- a/apps/bMiniApp/src/subpackages/flexJobManage/flexJobDetailFromManage/InnerPage.vue +++ b/apps/bMiniApp/src/subpackages/flexJobManage/flexJobDetailFromManage/InnerPage.vue @@ -38,8 +38,7 @@ @click="goToSign" v-if=" enterpriseEmployeeInfo.userSignContractStatus === EnumTaskUserSignContractStatus.Wait || - enterpriseEmployeeInfo.userSignContractStatus === - EnumTaskUserSignContractStatus.Refuse || + enterpriseEmployeeInfo.userSignContractStatus === EnumTaskUserSignContractStatus.Stop || !enterpriseEmployeeInfo.userSignContractStatus " >绛剧害</PageFooterBtn diff --git a/apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue b/apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue index 4cfbfce..d41f2a4 100644 --- a/apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue +++ b/apps/bMiniApp/src/subpackages/flexJobManage/flexJobManage/InnerPage.vue @@ -82,7 +82,7 @@ userSignContractStatus: EnumTaskUserSignContractStatus.Pass, }); -const { infiniteLoadingProps } = useInfiniteLoading( +const { infiniteLoadingProps, invalidateQueries } = useInfiniteLoading( ({ pageParam }) => { let params: API.GetEnterpriseEmployeesQuery = { pageModel: { @@ -114,6 +114,14 @@ async function handleUnsign(item: API.GetEnterpriseEmployeesQueryResultItem) { try { await Message.confirm({ message: '纭畾瑕佽В绾﹀悧锛�' }); + let params: API.StopElectronSignCommand = { + id: item.id, + }; + let res = await enterpriseEmployeeServices.stopElectronSign(params); + if (res) { + Message.success('瑙g害鎴愬姛'); + invalidateQueries(); + } } catch (error) {} } function goFlexJobSign(item: API.GetEnterpriseEmployeesQueryResultItem) { diff --git a/apps/cMiniApp/src/subpackages/mine/mineAgreementSignDetail/InnerPage.vue b/apps/cMiniApp/src/subpackages/mine/mineAgreementSignDetail/InnerPage.vue index db31ead..829b909 100644 --- a/apps/cMiniApp/src/subpackages/mine/mineAgreementSignDetail/InnerPage.vue +++ b/apps/cMiniApp/src/subpackages/mine/mineAgreementSignDetail/InnerPage.vue @@ -132,6 +132,9 @@ } } catch (error) {} }); +Taro.useDidShow(() => { + refetch(); +}); </script> <style lang="scss"> diff --git a/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue b/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue index 96d7728..3204d9c 100644 --- a/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue +++ b/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue @@ -295,4 +295,8 @@ scale: 18, }); } + +Taro.useDidShow(() => { + refetch(); +}); </script> -- Gitblit v1.9.1