From 5b0401fea3c339aa45feb0d165f36b1b7a76fdaf Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 20 十一月 2025 16:49:01 +0800
Subject: [PATCH] feat: 页面

---
 src/services/api/ExternalSystem.ts                            |   11 +++++++++++
 src/views/Reward/WithdrawalApproval.vue                       |    4 ++++
 src/views/Reward/components/WithdrawalApprovalAuditDialog.vue |    4 +++-
 src/services/api/typings.d.ts                                 |    6 +++++-
 src/hooks/externalSystem.ts                                   |   18 ++++++++++++++++++
 src/views/Reward/components/RewardApplyTradeCheckDialog.vue   |    4 +++-
 src/views/Reward/FinancialApproval.vue                        |    6 ++++++
 7 files changed, 50 insertions(+), 3 deletions(-)

diff --git a/src/hooks/externalSystem.ts b/src/hooks/externalSystem.ts
new file mode 100644
index 0000000..5e9cc54
--- /dev/null
+++ b/src/hooks/externalSystem.ts
@@ -0,0 +1,18 @@
+import * as externalSystemServices from '@/services/api/ExternalSystem';
+import { useQuery } from '@tanstack/vue-query';
+
+export function useGetCurrentExternalSystem() {
+  const { data } = useQuery({
+    queryKey: ['externalSystemServices/getCurrentExternalSystem'],
+    queryFn: async () => {
+      return await externalSystemServices.getCurrentExternalSystem({ showLoading: false });
+    },
+    initialData: () => ({} as API.GetCurrentExternalSystemOutput),
+  });
+
+  const isSignWallet = computed(() => data.value?.isSignWallet);
+
+  return {
+    isSignWallet,
+  };
+}
diff --git a/src/services/api/ExternalSystem.ts b/src/services/api/ExternalSystem.ts
index 721692b..21cdaca 100644
--- a/src/services/api/ExternalSystem.ts
+++ b/src/services/api/ExternalSystem.ts
@@ -17,6 +17,17 @@
   });
 }
 
+/** 鏌ョ湅褰撳墠澶栭儴绯荤粺淇℃伅 GET /api/ExternalSystem/GetCurrentExternalSystem */
+export async function getCurrentExternalSystem(options?: API.RequestConfig) {
+  return request<API.GetCurrentExternalSystemOutput>(
+    '/api/ExternalSystem/GetCurrentExternalSystem',
+    {
+      method: 'GET',
+      ...(options || {}),
+    }
+  );
+}
+
 /** 鑾峰彇澶栭儴绯荤粺鍒楄〃 POST /api/ExternalSystem/GetExternalSystemList */
 export async function getExternalSystemList(
   body: API.GetExternalSystemInput,
diff --git a/src/services/api/typings.d.ts b/src/services/api/typings.d.ts
index 91185da..3e48d67 100644
--- a/src/services/api/typings.d.ts
+++ b/src/services/api/typings.d.ts
@@ -7492,6 +7492,11 @@
     endDate?: string;
   }
 
+  interface GetCurrentExternalSystemOutput {
+    /** 鏄惁绛剧害閽卞寘 */
+    isSignWallet?: boolean;
+  }
+
   interface GetCustomContractParamterListInput {
     pageModel?: Pagination;
     /** 瀹㈡埛Id */
@@ -23172,7 +23177,6 @@
   }
 
   interface UpdateParkBountyApplyByEnterpriseInput {
-    batchNo?: string;
     enterpriseMonthApplyId?: string;
   }
 
diff --git a/src/views/Reward/FinancialApproval.vue b/src/views/Reward/FinancialApproval.vue
index 5438961..3af5205 100644
--- a/src/views/Reward/FinancialApproval.vue
+++ b/src/views/Reward/FinancialApproval.vue
@@ -83,6 +83,7 @@
 import { convertApi2FormUrlObjectBySeparator, convertApi2FormUrlOnlyOne, format } from '@/utils';
 import { useIndustrialParkDropDownList } from '@/hooks/industrialPark';
 import { useAccess } from '@/hooks';
+import { useGetCurrentExternalSystem } from '@/hooks/externalSystem';
 
 defineOptions({
   name: 'FinancialApproval',
@@ -119,6 +120,7 @@
 
 const state = reactive({ ...BaseState });
 const { industrialParkList } = useIndustrialParkDropDownList();
+const { isSignWallet } = useGetCurrentExternalSystem();
 
 const fourStreamsIndustrialParkList = computed(() => {
   return industrialParkList.value.filter((x) => !!x.rewardEnable);
@@ -217,6 +219,8 @@
     incomeBankName: row.incomeBankName,
     creationTime: row.creationTime,
     insurePeopleNum: row.insurePeopleNum ?? ('' as any as number),
+
+    isSignWallet: isSignWallet.value,
   });
 }
 
@@ -251,6 +255,8 @@
     incomeBankName: '',
     creationTime: '',
     insurePeopleNum: 0,
+
+    isSignWallet: false,
   },
 });
 
diff --git a/src/views/Reward/WithdrawalApproval.vue b/src/views/Reward/WithdrawalApproval.vue
index aeab687..c673591 100644
--- a/src/views/Reward/WithdrawalApproval.vue
+++ b/src/views/Reward/WithdrawalApproval.vue
@@ -77,6 +77,7 @@
 import _ from 'lodash';
 import { ModelValueType } from 'element-plus';
 import { useAccess, useIndustrialParkDropDownList } from '@/hooks';
+import { useGetCurrentExternalSystem } from '@/hooks/externalSystem';
 
 defineOptions({
   name: 'WithdrawalApproval',
@@ -115,6 +116,7 @@
 const state = reactive({ ...BaseState });
 
 const { fourStreamsIndustrialParkList } = useIndustrialParkDropDownList();
+const { isSignWallet } = useGetCurrentExternalSystem();
 
 onMounted(async () => {
   await getList();
@@ -169,6 +171,7 @@
   handleAdd({
     drawWithId: row.drawWithId,
     isCheck,
+    isSignWallet: isSignWallet.value,
   });
 }
 
@@ -180,6 +183,7 @@
     checkRemark: '',
     isCheck: false,
     checkFileUrl: [] as UploadUserFile[],
+    isSignWallet: false,
   },
 });
 
diff --git a/src/views/Reward/components/RewardApplyTradeCheckDialog.vue b/src/views/Reward/components/RewardApplyTradeCheckDialog.vue
index 7a474ed..082ea82 100644
--- a/src/views/Reward/components/RewardApplyTradeCheckDialog.vue
+++ b/src/views/Reward/components/RewardApplyTradeCheckDialog.vue
@@ -49,7 +49,7 @@
           </ProFormItemV2>
         </ProFormColItem>
       </ProFormCol>
-      <ProFormCol>
+      <ProFormCol v-if="!form.isSignWallet || form.isCheck">
         <ProFormColItem :span="12">
           <ProFormItemV2
             label="涓婁紶鍑瘉:"
@@ -178,6 +178,8 @@
   incomeBankName: string;
   insurePeopleNum: number;
   creationTime: string;
+
+  isSignWallet: boolean;
 };
 
 const form = defineModel<Form>('form');
diff --git a/src/views/Reward/components/WithdrawalApprovalAuditDialog.vue b/src/views/Reward/components/WithdrawalApprovalAuditDialog.vue
index bdb9a5a..2040c3d 100644
--- a/src/views/Reward/components/WithdrawalApprovalAuditDialog.vue
+++ b/src/views/Reward/components/WithdrawalApprovalAuditDialog.vue
@@ -29,7 +29,7 @@
           </ProFormItemV2>
         </ProFormColItem>
       </ProFormCol>
-      <ProFormCol>
+      <ProFormCol v-if="!form.isSignWallet || form.isCheck">
         <ProFormColItem :span="12">
           <ProFormItemV2
             label="涓婁紶鍑瘉:"
@@ -138,6 +138,8 @@
   creationTime?: string;
   isCheck: boolean;
   checkFileUrl: UploadUserFile[];
+
+  isSignWallet: boolean;
 };
 
 const form = defineModel<Form>('form');

--
Gitblit v1.9.1