From c675695faef95b623a6b3de6a02066118a42b98b Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 13 十一月 2025 17:27:19 +0800
Subject: [PATCH] fix: bug

---
 src/views/EmploymentManage/CheckReceiveTaskDetail.vue |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
index c0e74fa..3e56f78 100644
--- a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
+++ b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
@@ -59,13 +59,11 @@
   ProFormCol,
   ProFormColItem,
   ProFormItemV2,
-  ProTableQueryFilterBar,
 } from '@bole-core/components';
 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 { EnumBillingMethodUnitText, EnumBillingMethod, EnumBillingMethodText } from '@/constants';
 import dayjs from 'dayjs';
 import CheckManageDialog from './components/CheckManageDialog.vue';
 import ManualCheckManageDialog from './components/ManualCheckManageDialog.vue';
@@ -78,6 +76,19 @@
   detailBtn: {
     emits: {
       onClick: (role) => openDialog(role, true),
+    },
+  },
+  acceptanceBtn: {
+    emits: {
+      onClick: (role) => openDialog(role),
+    },
+    extraProps: {
+      hide: (row: API.GetCheckReceiveTaskQueryResultItem) =>
+        !(
+          row.checkReceiveStatus === EnumTaskCheckReceiveStatus.WaitCheckReceive &&
+          row.checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.Submit) &&
+          taskInfo.value?.isInternal
+        ),
     },
   },
 };
@@ -105,6 +116,8 @@
 const BaseState = {
   loading: true,
   checkReceiveMethods: [] as any as EnumTaskCheckReceiveMethod[],
+
+  isInternal: false,
 };
 
 const state = reactive({ ...BaseState });
@@ -141,6 +154,7 @@
         showLoading: !state.loading,
       });
       state.checkReceiveMethods = res.objectData?.checkReceiveMethods;
+      state.isInternal = res.objectData?.isInternal;
       return res;
     } catch (error) {}
   },
@@ -166,6 +180,10 @@
   handleEdit({
     id: row.id,
     checkReceiveMethods: state.checkReceiveMethods,
+    isInternal: state.isInternal,
+    tabType: state.checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.CheckIn)
+      ? 'signRecord'
+      : '',
     isDetail,
   });
 }
@@ -174,7 +192,9 @@
   defaultFormParams: {
     id: '',
     checkReceiveMethods: [] as any as EnumTaskCheckReceiveMethod[],
+    isInternal: false,
     isDetail: false,
+    tabType: '',
   },
 });
 

--
Gitblit v1.9.1