From 8050d4647fde521b270ce5e1fd0610f95cbd6487 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 15 十月 2025 17:54:00 +0800
Subject: [PATCH] feat: 微信
---
.eslintrc-auto-import.json | 1 +
src/views/EnterpriseManage/components/WechatConfigureView.vue | 8 +++++++-
auto-imports.d.ts | 2 ++
src/constants/enterpriseWallet.ts | 4 ++++
4 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/.eslintrc-auto-import.json b/.eslintrc-auto-import.json
index 411e78c..61d8aea 100644
--- a/.eslintrc-auto-import.json
+++ b/.eslintrc-auto-import.json
@@ -136,6 +136,7 @@
"EnumWeChatPayApplymentSalesScenesType": true,
"EnumWeChatPayApplymentSalesScenesTypeText": true,
"EnumWeChatPayApplymentState": true,
+ "EnumWeChatPayApplymentStateText": true,
"EnumWeChatPayApplymentSubjectType": true,
"EnumWeChatPayApplymentSubjectTypeText": true,
"EnumWeChatPaySettlementModifyVerifyResult": true,
diff --git a/auto-imports.d.ts b/auto-imports.d.ts
index 0a94ba1..bd415dc 100644
--- a/auto-imports.d.ts
+++ b/auto-imports.d.ts
@@ -141,6 +141,7 @@
const EnumWeChatPayApplymentSalesScenesType: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentSalesScenesType']
const EnumWeChatPayApplymentSalesScenesTypeText: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentSalesScenesTypeText']
const EnumWeChatPayApplymentState: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentState']
+ const EnumWeChatPayApplymentStateText: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentStateText']
const EnumWeChatPayApplymentSubjectType: typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentSubjectType']
const EnumWeChatPayApplymentSubjectTypeText: typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentSubjectTypeText']
const EnumWeChatPaySettlementModifyVerifyResult: typeof import('./src/constants/apiEnum')['EnumWeChatPaySettlementModifyVerifyResult']
@@ -483,6 +484,7 @@
readonly EnumWeChatPayApplymentSalesScenesType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentSalesScenesType']>
readonly EnumWeChatPayApplymentSalesScenesTypeText: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentSalesScenesTypeText']>
readonly EnumWeChatPayApplymentState: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentState']>
+ readonly EnumWeChatPayApplymentStateText: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentStateText']>
readonly EnumWeChatPayApplymentSubjectType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPayApplymentSubjectType']>
readonly EnumWeChatPayApplymentSubjectTypeText: UnwrapRef<typeof import('./src/constants/enterpriseWallet')['EnumWeChatPayApplymentSubjectTypeText']>
readonly EnumWeChatPaySettlementModifyVerifyResult: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumWeChatPaySettlementModifyVerifyResult']>
diff --git a/src/constants/enterpriseWallet.ts b/src/constants/enterpriseWallet.ts
index 0a94440..1cf522b 100644
--- a/src/constants/enterpriseWallet.ts
+++ b/src/constants/enterpriseWallet.ts
@@ -99,3 +99,7 @@
[EnumWeChatPayApplymentBankAccountType.BANK_ACCOUNT_TYPE_PERSONAL]:
'缁忚惀鑰呬釜浜洪摱琛屽崱锛堜粎涓綋鎴峰彲閫夋嫨锛�',
};
+
+export const EnumWeChatPayApplymentStateText = {
+ [EnumWeChatPayApplymentState.APPLYMENT_STATE_EDITTING]: '瀵瑰叕閾惰璐︽埛',
+};
diff --git a/src/views/EnterpriseManage/components/WechatConfigureView.vue b/src/views/EnterpriseManage/components/WechatConfigureView.vue
index 30922fd..2060204 100644
--- a/src/views/EnterpriseManage/components/WechatConfigureView.vue
+++ b/src/views/EnterpriseManage/components/WechatConfigureView.vue
@@ -1,6 +1,6 @@
<template>
<LoadingLayout :loading="isLoading">
- <ProForm :model="form" ref="dialogForm" label-width="210px">
+ <ProForm :model="form" ref="dialogForm" label-width="210px" :is-read="isDetail">
<ProFormItemV2
label="涓氬姟鐢宠缂栧彿:"
prop="business_code"
@@ -1161,6 +1161,7 @@
const dialogForm = ref<FormInstance>();
const form = reactive({
+ applyment_state: '' as any as EnumWeChatPayApplymentState,
business_code: '',
contact_type: '' as any as EnumWeChatPayApplymentContactType,
contact_name: '',
@@ -1244,6 +1245,10 @@
bank_branch_area: [] as number[],
});
+const isDetail = computed(
+ () => form.applyment_state === EnumWeChatPayApplymentState.APPLYMENT_STATE_FINISHED
+);
+
const EnumWeChatPayApplymentCertTypeTextList = computed(() => {
if (form.subject_type === EnumWeChatPayApplymentSubjectType.SUBJECT_TYPE_INSTITUTIONS) {
return EnumWeChatPayApplymentCertTypeTextForSYDW;
@@ -1293,6 +1298,7 @@
});
},
onSuccess(data) {
+ form.applyment_state = data.applyment_state;
form.business_code = data.business_code ?? '';
form.contact_type = data.contact_info?.contact_type;
form.contact_name = data.contact_info?.contact_name ?? '';
--
Gitblit v1.9.1