From b963967437a43ca15e5afd8f4f7c3896d2431d93 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期二, 11 十一月 2025 14:36:51 +0800
Subject: [PATCH] fix: bug

---
 src/views/EmploymentManage/CheckReceiveTaskDetail.vue |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
index 33f4f1e..cf04ab5 100644
--- a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
+++ b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
@@ -16,11 +16,7 @@
             </ProFormColItem>
             <ProFormColItem :span="8">
               <ProFormItemV2 label="鏈嶅姟璐归噾棰�:">
-                {{
-                  taskInfo.billingMethod === EnumBillingMethod.Face
-                    ? EnumBillingMethodText[taskInfo.billingMethod]
-                    : `${taskInfo.serviceFee}${EnumBillingMethodUnitText[taskInfo.billingMethod]}`
-                }}
+                {{ OrderUtils.getServiceFeeText(taskInfo.serviceFee, taskInfo.billingMethod) }}
               </ProFormItemV2>
             </ProFormColItem>
           </ProFormCol>
@@ -73,6 +69,7 @@
 import * as taskCheckReceiveServices from '@/services/api/taskCheckReceive';
 import * as taskServices from '@/services/api/task';
 import { useQuery } from '@tanstack/vue-query';
+import { OrderUtils } from '@/utils';
 import { CheckReceiveTaskDetailColumns } from './constants';
 import { EnumBillingMethodUnitText, EnumBillingMethod, EnumBillingMethodText } from '@/constants';
 import dayjs from 'dayjs';
@@ -92,11 +89,13 @@
     emits: {
       onClick: (role) => openDialog(role),
     },
-    // extraProps: {
-    //   hide: (row: API.GetCheckReceiveTaskQueryResultItem) =>
-    //     row.checkReceiveStatus === EnumTaskCheckReceiveStatus.Completed ||
-    //     state.checkReceiveMethod === EnumTaskCheckReceiveMethod.CheckIn,
-    // },
+    extraProps: {
+      hide: (row: API.GetCheckReceiveTaskQueryResultItem) =>
+        !(
+          row.checkReceiveStatus === EnumTaskCheckReceiveStatus.WaitCheckReceive &&
+          row.checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.Submit)
+        ),
+    },
   },
   {
     data: {
@@ -187,7 +186,9 @@
   // } else {
   handleEdit({
     id: row.id,
-    tabType: 'signRecord',
+    tabType: state.checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.CheckIn)
+      ? 'signRecord'
+      : '',
     checkReceiveMethods: state.checkReceiveMethods,
     isDetail,
   });

--
Gitblit v1.9.1