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/components/WechatConfigureView.vue |   32 ++++++++++++++++++++++++++++++--
 1 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/src/views/EnterpriseManage/components/WechatConfigureView.vue b/src/views/EnterpriseManage/components/WechatConfigureView.vue
index c979471..30922fd 100644
--- a/src/views/EnterpriseManage/components/WechatConfigureView.vue
+++ b/src/views/EnterpriseManage/components/WechatConfigureView.vue
@@ -153,6 +153,7 @@
           v-model="form.subject_type"
           :valueEnum="EnumWeChatPayApplymentSubjectTypeText"
           placeholder="璇烽�夋嫨涓讳綋绫诲瀷"
+          @change="handleSubjectTypeChange"
         >
         </ProFormSelect>
       </ProFormItemV2>
@@ -896,7 +897,7 @@
               v-model:file-url="form.web_authorisation"
               :limit="1"
               :limitFileSize="10"
-              accept="jpg/jpeg,png,pdf"
+              accept="jpg/jpeg,png"
             ></ProFormUpload>
             <el-button
               style="margin-left: 10px"
@@ -1027,8 +1028,9 @@
       >
         <ProFormSelect
           v-model="form.bank_account_type"
-          :valueEnum="EnumWeChatPayApplymentBankAccountTypeText"
+          :valueEnum="bank_account_typeList"
           placeholder="璇烽�夋嫨缁撶畻閾惰璐︽埛绫诲瀷"
+          @change="handleBankAccountTypeChange"
         >
         </ProFormSelect>
       </ProFormItemV2>
@@ -1050,6 +1052,7 @@
           v-model:account_bank_code="form.account_bank_code"
           v-model:bank_alias_code="form.bank_alias_code"
           v-model:need_bank_branch="form.need_bank_branch"
+          v-model:bank_branch_id="form.bank_branch_id"
           :bank_account_type="form.bank_account_type"
           placeholder="璇疯緭鍏ュ紑鎴烽摱琛�"
           clearable
@@ -1102,6 +1105,7 @@
   ProFormRadio,
   ProFormDatePicker,
   ProFormImageUpload,
+  useFormDialog,
 } from '@bole-core/components';
 import * as enterpriseWalletServices from '@/services/api/enterpriseWallet';
 import { useQuery } from '@tanstack/vue-query';
@@ -1122,6 +1126,7 @@
   EnumWeChatPayApplymentSalesScenesType,
   EnumWeChatPayApplymentSalesScenesTypeText,
   EnumWeChatPayApplymentBankAccountTypeText,
+  EnumWeChatPayApplymentBankAccountTypeTextForGTH,
   BooleanOptions,
 } from '@/constants';
 import { convertApi2FormUrlOnlyOne, downloadFileByUrl, format, convertApi2FormUrls } from '@/utils';
@@ -1267,6 +1272,13 @@
     return EnumWeChatPayApplymentContactTypeTextForZFJG;
   }
   return EnumWeChatPayApplymentIdDocTypeText;
+});
+
+const bank_account_typeList = computed(() => {
+  if (form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_INDIVIDUAL) {
+    return EnumWeChatPayApplymentBankAccountTypeTextForGTH;
+  }
+  return EnumWeChatPayApplymentBankAccountTypeText;
 });
 
 const { isLoading, refetch } = useQuery({
@@ -1739,6 +1751,22 @@
   );
 }
 
+function handleSubjectTypeChange() {
+  form.cert_type = '' as any as EnumWeChatPayApplymentCertType;
+  form.id_holder_type = '' as any as EnumWeChatPayApplymentIdHolderType;
+  form.id_doc_type = '' as any as EnumWeChatPayApplymentIdDocType;
+  form.bank_account_type = EnumWeChatPayApplymentBankAccountType.BANK_ACCOUNT_TYPE_CORPORATE;
+  handleBankAccountTypeChange();
+}
+
+function handleBankAccountTypeChange() {
+  form.bank_alias = '';
+  form.account_bank = '';
+  form.account_bank_code = '' as any as number;
+  form.bank_alias_code = '';
+  form.need_bank_branch = false;
+}
+
 defineExpose({
   onConfirm: openEnterpriseWeChatPayWallet,
 });

--
Gitblit v1.9.1