From 40c67b0b86d3428b4c0a320118641ebd687770df Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 13 十月 2025 13:53:06 +0800
Subject: [PATCH] feat: 微信
---
.eslintrc-auto-import.json | 1 +
src/views/EnterpriseManage/components/WechatConfigureView.vue | 25 ++++++++++++++++++++++++-
auto-imports.d.ts | 2 ++
3 files changed, 27 insertions(+), 1 deletions(-)
diff --git a/.eslintrc-auto-import.json b/.eslintrc-auto-import.json
index 52bffd2..d6693d1 100644
--- a/.eslintrc-auto-import.json
+++ b/.eslintrc-auto-import.json
@@ -118,6 +118,7 @@
"EnumWalletTransactionStatus": true,
"EnumWalletTransactionStatusText": true,
"EnumWeChatPayApplymentBankAccountType": true,
+ "EnumWeChatPayApplymentBankAccountTypeText": true,
"EnumWeChatPayApplymentCertType": true,
"EnumWeChatPayApplymentCertTypeTextForSHZZ": true,
"EnumWeChatPayApplymentCertTypeTextForSYDW": true,
diff --git a/auto-imports.d.ts b/auto-imports.d.ts
index f76939f..053525e 100644
--- a/auto-imports.d.ts
+++ b/auto-imports.d.ts
@@ -122,6 +122,7 @@
const EnumWalletTransactionStatus: typeof import('./src/constants/apiEnum')['EnumWalletTransactionStatus']
const EnumWalletTransactionStatusText: typeof import('./src/constants/finance')['EnumWalletTransactionStatusText']
const EnumWeChatPayApplymentBankAccountType: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentBankAccountType']
+ const EnumWeChatPayApplymentBankAccountTypeText: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentBankAccountTypeText']
const EnumWeChatPayApplymentCertType: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentCertType']
const EnumWeChatPayApplymentCertTypeTextForSHZZ: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentCertTypeTextForSHZZ']
const EnumWeChatPayApplymentCertTypeTextForSYDW: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentCertTypeTextForSYDW']
@@ -460,6 +461,7 @@
readonly EnumWalletTransactionStatus: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWalletTransactionStatus']>
readonly EnumWalletTransactionStatusText: UnwrapRef<typeof import('./src/constants/finance')['EnumWalletTransactionStatusText']>
readonly EnumWeChatPayApplymentBankAccountType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentBankAccountType']>
+ readonly EnumWeChatPayApplymentBankAccountTypeText: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentBankAccountTypeText']>
readonly EnumWeChatPayApplymentCertType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentCertType']>
readonly EnumWeChatPayApplymentCertTypeTextForSHZZ: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentCertTypeTextForSHZZ']>
readonly EnumWeChatPayApplymentCertTypeTextForSYDW: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentCertTypeTextForSYDW']>
diff --git a/src/views/EnterpriseManage/components/WechatConfigureView.vue b/src/views/EnterpriseManage/components/WechatConfigureView.vue
index d5829db..ef79f45 100644
--- a/src/views/EnterpriseManage/components/WechatConfigureView.vue
+++ b/src/views/EnterpriseManage/components/WechatConfigureView.vue
@@ -572,6 +572,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 +896,7 @@
:checkRules="[{ message: '璇疯緭鍏ュ紑鎴烽摱琛岀渷甯傜紪鐮�' }]"
>
<ProFormText v-model.trim="form.bank_address_code" placeholder="璇疯緭鍏ュ紑鎴烽摱琛岀渷甯傜紪鐮�" />
+ <el-button type="primary" link @click="downloadAddressCodeTemplate">鐪佸競缂栫爜妯℃澘</el-button>
</ProFormItemV2>
<ProFormItemV2
label="寮�鎴烽摱琛岄摱琛屽彿:"
@@ -1161,7 +1165,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 +1257,10 @@
}
function deleteUboInfo(index: number) {
+ if (form.ubo_info_list.length <= 1) {
+ Message.errorMessage('鑷冲皯淇濈暀涓�涓彈鐩婁汉');
+ return;
+ }
form.ubo_info_list.splice(index, 1);
}
@@ -1311,6 +1328,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