From f483f159e98b867bd961134e8ff0053400929cc8 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 06 十一月 2025 18:23:47 +0800
Subject: [PATCH] feat: 接口

---
 src/views/EmploymentManage/CheckReceiveTaskDetail.vue |   47 ++++++++++++++++++++++++++++-------------------
 1 files changed, 28 insertions(+), 19 deletions(-)

diff --git a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
index a2ef214..33f4f1e 100644
--- a/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
+++ b/src/views/EmploymentManage/CheckReceiveTaskDetail.vue
@@ -1,5 +1,5 @@
 <template>
-  <LoadingLayout :loading="state.loading">
+  <LoadingLayout v-loading="state.loading">
     <AppContainer>
       <el-card class="query-filter-bar-wrapper" shadow="never">
         <ProForm :model="taskInfo" is-read>
@@ -16,7 +16,11 @@
             </ProFormColItem>
             <ProFormColItem :span="8">
               <ProFormItemV2 label="鏈嶅姟璐归噾棰�:">
-                {{ `${taskInfo.serviceFee}${EnumBillingMethodUnitText[taskInfo.billingMethod]}` }}
+                {{
+                  taskInfo.billingMethod === EnumBillingMethod.Face
+                    ? EnumBillingMethodText[taskInfo.billingMethod]
+                    : `${taskInfo.serviceFee}${EnumBillingMethodUnitText[taskInfo.billingMethod]}`
+                }}
               </ProFormItemV2>
             </ProFormColItem>
           </ProFormCol>
@@ -70,7 +74,7 @@
 import * as taskServices from '@/services/api/task';
 import { useQuery } from '@tanstack/vue-query';
 import { CheckReceiveTaskDetailColumns } from './constants';
-import { EnumBillingMethodUnitText } from '@/constants';
+import { EnumBillingMethodUnitText, EnumBillingMethod, EnumBillingMethodText } from '@/constants';
 import dayjs from 'dayjs';
 import CheckManageDialog from './components/CheckManageDialog.vue';
 import ManualCheckManageDialog from './components/ManualCheckManageDialog.vue';
@@ -88,10 +92,11 @@
     emits: {
       onClick: (role) => openDialog(role),
     },
-    extraProps: {
-      hide: (row: API.GetCheckReceiveTaskQueryResultItem) =>
-        row.checkReceiveStatus === EnumTaskCheckReceiveStatus.Completed,
-    },
+    // extraProps: {
+    //   hide: (row: API.GetCheckReceiveTaskQueryResultItem) =>
+    //     row.checkReceiveStatus === EnumTaskCheckReceiveStatus.Completed ||
+    //     state.checkReceiveMethod === EnumTaskCheckReceiveMethod.CheckIn,
+    // },
   },
   {
     data: {
@@ -122,7 +127,7 @@
 
 const BaseState = {
   loading: true,
-  checkReceiveMethod: '' as any as EnumTaskCheckReceiveMethod,
+  checkReceiveMethods: [] as any as EnumTaskCheckReceiveMethod[],
 };
 
 const state = reactive({ ...BaseState });
@@ -158,7 +163,7 @@
       let res = await taskCheckReceiveServices.getCheckReceiveTask(params, {
         showLoading: !state.loading,
       });
-      state.checkReceiveMethod = res.objectData?.checkReceiveMethod;
+      state.checkReceiveMethods = res.objectData?.checkReceiveMethods;
       return res;
     } catch (error) {}
   },
@@ -175,21 +180,25 @@
 );
 
 function openDialog(row: API.GetCheckReceiveTaskQueryResultItem, isDetail = false) {
-  if (state.checkReceiveMethod === EnumTaskCheckReceiveMethod.CheckIn && !isDetail) {
-    handleManualEdit({
-      id: row.id,
-    });
-  } else {
-    handleEdit({
-      id: row.id,
-      isDetail,
-    });
-  }
+  // if (state.checkReceiveMethod === EnumTaskCheckReceiveMethod.CheckIn) {
+  //   handleManualEdit({
+  //     id: row.id,
+  //   });
+  // } else {
+  handleEdit({
+    id: row.id,
+    tabType: 'signRecord',
+    checkReceiveMethods: state.checkReceiveMethods,
+    isDetail,
+  });
+  // }
 }
 
 const { dialogProps, handleEdit } = useFormDialog({
   defaultFormParams: {
     id: '',
+    tabType: '',
+    checkReceiveMethods: [] as any as EnumTaskCheckReceiveMethod[],
     isDetail: false,
   },
 });

--
Gitblit v1.9.1