From d9033a55a545208545f70111aebf28c94a91c024 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期日, 19 十月 2025 20:55:45 +0800
Subject: [PATCH] feat: 1.2.0.1

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

diff --git a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
index a16ce8b..a2ef214 100644
--- a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
+++ b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
@@ -48,6 +48,7 @@
       </ProTableV2>
     </AppContainer>
     <CheckManageDialog v-bind="dialogProps" />
+    <ManualCheckManageDialog v-bind="dialogManualProps" />
   </LoadingLayout>
 </template>
 
@@ -72,6 +73,7 @@
 import { EnumBillingMethodUnitText } from '@/constants';
 import dayjs from 'dayjs';
 import CheckManageDialog from './components/CheckManageDialog.vue';
+import ManualCheckManageDialog from './components/ManualCheckManageDialog.vue';
 
 defineOptions({
   name: 'CheckReceiveTaskDetail',
@@ -120,6 +122,7 @@
 
 const BaseState = {
   loading: true,
+  checkReceiveMethod: '' as any as EnumTaskCheckReceiveMethod,
 };
 
 const state = reactive({ ...BaseState });
@@ -155,6 +158,7 @@
       let res = await taskCheckReceiveServices.getCheckReceiveTask(params, {
         showLoading: !state.loading,
       });
+      state.checkReceiveMethod = res.objectData?.checkReceiveMethod;
       return res;
     } catch (error) {}
   },
@@ -171,10 +175,16 @@
 );
 
 function openDialog(row: API.GetCheckReceiveTaskQueryResultItem, isDetail = false) {
-  handleEdit({
-    id: row.id,
-    isDetail,
-  });
+  if (state.checkReceiveMethod === EnumTaskCheckReceiveMethod.CheckIn && !isDetail) {
+    handleManualEdit({
+      id: row.id,
+    });
+  } else {
+    handleEdit({
+      id: row.id,
+      isDetail,
+    });
+  }
 }
 
 const { dialogProps, handleEdit } = useFormDialog({
@@ -183,4 +193,10 @@
     isDetail: false,
   },
 });
+
+const { dialogProps: dialogManualProps, handleEdit: handleManualEdit } = useFormDialog({
+  defaultFormParams: {
+    id: '',
+  },
+});
 </script>

--
Gitblit v1.9.1