From ccf503d917f80dd8a1b25eed713282fb2494a919 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 04 九月 2025 16:06:40 +0800
Subject: [PATCH] fix: 签约

---
 src/views/EnterpriseManage/components/ConfigureDialog.vue |   62 ++++++++++++++++++++++++++++++
 1 files changed, 61 insertions(+), 1 deletions(-)

diff --git a/src/views/EnterpriseManage/components/ConfigureDialog.vue b/src/views/EnterpriseManage/components/ConfigureDialog.vue
index e1d475e..46b8b87 100644
--- a/src/views/EnterpriseManage/components/ConfigureDialog.vue
+++ b/src/views/EnterpriseManage/components/ConfigureDialog.vue
@@ -35,11 +35,45 @@
         </ProFormItemV2>
         <ProFormItemV2 label="閾惰璐︽埛:" prop="verifyStatus">
           {{ VerifyStatusText[form.verifyStatus] }}
-          <el-button style="margin-left: 40px" type="primary" link @click="handleCheckBankAccount"
+          <el-button style="margin-left: 10px" type="primary" link @click="handleCheckBankAccount"
             >鏍¢獙</el-button
           >
         </ProFormItemV2>
       </template> -->
+      <template v-if="form.enterpriseConfigureType === EnterpriseConfigureType.AliPay">
+        <ProFormItemV2
+          label="鏀粯瀹濊处鍙�:"
+          prop="alipayAccount"
+          :checkRules="[{ message: '璇疯緭鍏ユ敮浠樺疂璐﹀彿' }]"
+        >
+          <div style="display: flex; width: 100%">
+            <ProFormText v-model.trim="form.alipayAccount" placeholder="璇疯緭鍏ユ敮浠樺疂璐﹀彿">
+            </ProFormText>
+            <el-button style="margin-left: 10px" type="primary" link @click="openEnterpriseWallet"
+              >鑾峰彇绛剧害閾炬帴</el-button
+            >
+          </div>
+        </ProFormItemV2>
+        <ProFormItemV2
+          label="鍟嗘埛ID:"
+          prop="alipayMerchantId"
+          :checkRules="[{ message: '璇疯緭鍏ュ晢鎴稩D' }]"
+        >
+          <ProFormText v-model.trim="form.alipayMerchantId" placeholder="璇疯緭鍏ュ晢鎴稩D" />
+        </ProFormItemV2>
+        <ProFormItemV2 label="绛剧害鐘舵��:" prop="alipayAccount" required>
+          <span>宸茬绾�</span>
+          <el-button style="margin-left: 10px" type="primary" link @click="handleCheckBankAccount"
+            >鏍¢獙</el-button
+          >
+        </ProFormItemV2>
+        <ProFormItemV2 label="杩涗欢鐘舵��:" prop="alipayAccount" required>
+          <span>宸茶繘浠�</span>
+          <el-button style="margin-left: 10px" type="primary" link @click="handleCheckBankAccount"
+            >鏍¢獙</el-button
+          >
+        </ProFormItemV2>
+      </template>
       <template v-if="form.enterpriseConfigureType === EnterpriseConfigureType.Electronic">
         <div class="configure-dialog-form-title">閫氶亾閰嶇疆</div>
         <ProFormItemV2
@@ -84,6 +118,7 @@
       </span>
     </template>
   </ProDialog>
+  <QrcodeDialog v-bind="dialogQrcodeProps"></QrcodeDialog>
 </template>
 
 <script setup lang="ts">
@@ -97,6 +132,7 @@
   ProFormInputNumber,
   ProFormSelect,
   ProFormSwitch,
+  useFormDialog,
 } from '@bole-core/components';
 import { BoleRegExp } from '@bole-core/core';
 import {
@@ -107,6 +143,8 @@
   EnumSmsAccessText,
   EnumElectronSignAccess,
 } from '@/constants';
+import * as enterpriseWalletServices from '@/services/api/enterpriseWallet';
+import QrcodeDialog from './QrcodeDialog.vue';
 
 defineOptions({
   name: 'ConfigureDialog',
@@ -121,6 +159,8 @@
   electronSignAccesses: EnumElectronSignAccess[];
   smsAccess: EnumSmsAccess;
   smsCost: number;
+  alipayAccount: string;
+  alipayMerchantId: string;
 };
 
 const form = defineModel<Form>('form');
@@ -152,6 +192,26 @@
     }
   });
 }
+
+const { dialogProps: dialogQrcodeProps, handleAdd } = useFormDialog({
+  defaultFormParams: {
+    qrcodeUrl: '',
+  },
+});
+
+async function openEnterpriseWallet() {
+  try {
+    let params: API.OpenEnterpriseWalletCommand = {
+      access: EnumEnterpriseWalletAccess.Alipay,
+    };
+    let res = await enterpriseWalletServices.openEnterpriseWallet(params);
+    if (res) {
+      handleAdd({
+        qrcodeUrl: res.signUrl,
+      });
+    }
+  } catch (error) {}
+}
 </script>
 <style lang="scss" scoped>
 @use '@/style/common.scss' as *;

--
Gitblit v1.9.1