From 5eb708efd67798bb5b0dccd45d932b98b85462d3 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 13 十月 2025 13:55:08 +0800
Subject: [PATCH] Merge branch 'dev-1.1.2' of http://120.26.58.240:8888/r/flexJobAdmin into dev-1.1.2

---
 src/views/EnterpriseManage/components/WechatConfigureView.vue |   28 ++++++++++++++++++++++++++--
 1 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/src/views/EnterpriseManage/components/WechatConfigureView.vue b/src/views/EnterpriseManage/components/WechatConfigureView.vue
index d5829db..9c54690 100644
--- a/src/views/EnterpriseManage/components/WechatConfigureView.vue
+++ b/src/views/EnterpriseManage/components/WechatConfigureView.vue
@@ -18,6 +18,7 @@
           v-model.trim="form.contact_type"
           :value-enum="EnumWeChatPayApplymentContactTypeText"
           :button-style="false"
+          :convertEnumValue="false"
         />
       </ProFormItemV2>
       <ProFormItemV2
@@ -572,6 +573,9 @@
           :checkRules="[{ message: '璇疯緭鍏ョ嚎涓嬪満鎵�鐪佸競缂栫爜', type: 'number' }]"
         >
           <ProFormText v-model.trim="form.biz_address_code" placeholder="璇疯緭鍏ョ嚎涓嬪満鎵�鐪佸競缂栫爜" />
+          <el-button type="primary" link @click="downloadAddressCodeTemplate"
+            >鐪佸競缂栫爜妯℃澘</el-button
+          >
         </ProFormItemV2>
         <ProFormItemV2
           label="绾夸笅鍦烘墍鍦板潃:"
@@ -893,6 +897,7 @@
         :checkRules="[{ message: '璇疯緭鍏ュ紑鎴烽摱琛岀渷甯傜紪鐮�' }]"
       >
         <ProFormText v-model.trim="form.bank_address_code" placeholder="璇疯緭鍏ュ紑鎴烽摱琛岀渷甯傜紪鐮�" />
+        <el-button type="primary" link @click="downloadAddressCodeTemplate">鐪佸競缂栫爜妯℃澘</el-button>
       </ProFormItemV2>
       <ProFormItemV2
         label="寮�鎴烽摱琛岄摱琛屽彿:"
@@ -981,7 +986,7 @@
 
 const form = reactive({
   business_code: '',
-  contact_type: '' as any as EnumWeChatPayApplymentContactType,
+  contact_type: EnumWeChatPayApplymentContactType.LEGAL,
   contact_name: '',
   contact_id_doc_type: '' as any as EnumWeChatPayApplymentIdDocType,
   contact_id_number: '',
@@ -1161,7 +1166,16 @@
               format(x.ubo_period_end, 'YYYY-MM-DD'),
             ],
           }))
-        : [];
+        : [
+            {
+              ubo_id_doc_type: '' as any as EnumWeChatPayApplymentIdDocType,
+              ubo_id_doc_copy: [],
+              ubo_id_doc_name: '',
+              ubo_id_doc_number: '',
+              ubo_id_doc_address: '',
+              ubo_period: [],
+            },
+          ];
     form.merchant_shortname = data.business_info?.merchant_shortname ?? '';
     form.service_phone = data.business_info?.service_phone ?? '';
     form.sales_scenes_type = data.business_info?.sales_info?.sales_scenes_type ?? [];
@@ -1244,6 +1258,10 @@
 }
 
 function deleteUboInfo(index: number) {
+  if (form.ubo_info_list.length <= 1) {
+    Message.errorMessage('鑷冲皯淇濈暀涓�涓彈鐩婁汉');
+    return;
+  }
   form.ubo_info_list.splice(index, 1);
 }
 
@@ -1311,6 +1329,12 @@
     '缃戠珯鎺堟潈鍑�'
   );
 }
+function downloadAddressCodeTemplate() {
+  downloadFileByUrl(
+    'https://parkmanagement.oss-cn-hangzhou.aliyuncs.com/FlexJob/temp/%E3%80%8A%E7%9C%81%E5%B8%82%E5%8C%BA%E7%BC%96%E5%8F%B7%E5%AF%B9%E7%85%A7%E8%A1%A8%E3%80%8B.xlsx',
+    '鐪佸競缂栫爜妯$増'
+  );
+}
 
 defineExpose({
   onConfirm: enterpriseWalletExpandindirectCreate,

--
Gitblit v1.9.1