From 1f8b6081c575c6159ee1cde2ace4165773d3a1c3 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 15 十月 2025 14:57:25 +0800
Subject: [PATCH] feat: 微信

---
 src/views/EnterpriseManage/EnterpriseManageList.vue |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/src/views/EnterpriseManage/EnterpriseManageList.vue b/src/views/EnterpriseManage/EnterpriseManageList.vue
index 9df9afe..12a573b 100644
--- a/src/views/EnterpriseManage/EnterpriseManageList.vue
+++ b/src/views/EnterpriseManage/EnterpriseManageList.vue
@@ -35,6 +35,7 @@
       </ProTableV2>
     </AppContainer>
     <ConfigureDialog v-bind="dialogProps" />
+    <WechatWalletOpen v-bind="dialogWechatProps"></WechatWalletOpen>
   </LoadingLayout>
 </template>
 
@@ -56,6 +57,7 @@
 import ConfigureDialog from './components/ConfigureDialog.vue';
 import { Message } from '@bole-core/core';
 import * as enterpriseServices from '@/services/api/enterprise';
+import WechatWalletOpen from './components/WechatWalletOpen.vue';
 
 defineOptions({
   name: 'EnterpriseManageList',
@@ -132,7 +134,7 @@
   });
 }
 
-const { dialogProps, handleEdit, dialogState } = useFormDialog({
+const { dialogProps, handleEdit, dialogState, editForm } = useFormDialog({
   onConfirm: handleAddOrEdit,
   defaultFormParams: {
     id: '',
@@ -140,9 +142,24 @@
   },
 });
 
-async function handleAddOrEdit() {
+const { dialogProps: dialogWechatProps, handleAdd } = useFormDialog({
+  defaultFormParams: {
+    url: '',
+  },
+});
+
+async function handleAddOrEdit(data?: any) {
   try {
-    Message.successMessage('鎿嶄綔鎴愬姛');
+    if (editForm.enterpriseConfigureType === EnterpriseConfigureType.Wechat) {
+      handleAdd({
+        url: data?.sign_url,
+      });
+    }
+    Message.successMessage(
+      editForm.enterpriseConfigureType === EnterpriseConfigureType.Wechat
+        ? '鎻愪氦鎴愬姛锛岃瓒呯骇绠$悊鍛樻壂鐮佽繘琛岀绾︽搷浣�'
+        : '鎿嶄綔鎴愬姛'
+    );
     getList(paginationState.pageIndex);
     dialogState.dialogVisible = false;
   } catch (error) {}

--
Gitblit v1.9.1