From 1fab92677dec509f233bab14045317e55beb92a5 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 13 八月 2025 09:18:48 +0800
Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp
---
apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue | 39 ++++++++++++++++++++++++++++++++++++++-
1 files changed, 38 insertions(+), 1 deletions(-)
diff --git a/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue b/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue
index 9631f42..f66686a 100644
--- a/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue
+++ b/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue
@@ -108,10 +108,37 @@
@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.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
@@ -142,6 +169,9 @@
EnumSettlementCycleText,
BillingMethodEnumUnit,
EnumTaskReleaseStatus,
+ EnumTaskUserHireStatus,
+ GetTaskInfoQueryResultApplyButton,
+ GetTaskInfoQueryResultHireButton,
} from '@12333/constants';
import { useAccessLogin } from '@/hooks';
@@ -156,6 +186,13 @@
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,
--
Gitblit v1.9.1