From 8050d4647fde521b270ce5e1fd0610f95cbd6487 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 15 十月 2025 17:54:00 +0800 Subject: [PATCH] feat: 微信 --- src/views/EnterpriseManage/components/WechatConfigureView.vue | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/src/views/EnterpriseManage/components/WechatConfigureView.vue b/src/views/EnterpriseManage/components/WechatConfigureView.vue index be3e4b9..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" @@ -1030,6 +1030,7 @@ v-model="form.bank_account_type" :valueEnum="bank_account_typeList" placeholder="璇烽�夋嫨缁撶畻閾惰璐︽埛绫诲瀷" + @change="handleBankAccountTypeChange" > </ProFormSelect> </ProFormItemV2> @@ -1051,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 @@ -1103,6 +1105,7 @@ ProFormRadio, ProFormDatePicker, ProFormImageUpload, + useFormDialog, } from '@bole-core/components'; import * as enterpriseWalletServices from '@/services/api/enterpriseWallet'; import { useQuery } from '@tanstack/vue-query'; @@ -1158,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: '', @@ -1241,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; @@ -1290,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 ?? ''; @@ -1753,6 +1762,15 @@ 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({ -- Gitblit v1.9.1