From 65c7175a1d7d448f91ee61a8a9aa935263939d37 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 17 四月 2025 10:10:22 +0800
Subject: [PATCH] feat: 接口对接

---
 src/views/EnterpriseManage/components/ConfigureDialog.vue |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/src/views/EnterpriseManage/components/ConfigureDialog.vue b/src/views/EnterpriseManage/components/ConfigureDialog.vue
index c91035b..0224cb3 100644
--- a/src/views/EnterpriseManage/components/ConfigureDialog.vue
+++ b/src/views/EnterpriseManage/components/ConfigureDialog.vue
@@ -3,12 +3,12 @@
     <ProForm :model="innerForm" ref="dialogForm" label-width="100px">
       <ProFormItemV2 label="" prop="enterpriseConfigureType" label-width="0">
         <ProFormRadio
-          v-model="enterpriseConfigureType"
+          v-model="innerForm.enterpriseConfigureType"
           :value-enum="EnterpriseConfigureTypeText"
           buttonStyle
         />
       </ProFormItemV2>
-      <template v-if="enterpriseConfigureType === EnterpriseConfigureType.Bank">
+      <template v-if="innerForm.enterpriseConfigureType === EnterpriseConfigureType.Bank">
         <ProFormItemV2 label="寮�鎴锋�昏:" prop="openBank">
           <ProFormText
             v-model.trim="innerForm.openBank"
@@ -40,7 +40,7 @@
           >
         </ProFormItemV2>
       </template>
-      <template v-if="enterpriseConfigureType === EnterpriseConfigureType.Electronic">
+      <template v-if="innerForm.enterpriseConfigureType === EnterpriseConfigureType.Electronic">
         <div class="configure-dialog-form-title">閫氶亾閰嶇疆</div>
         <ProFormItemV2
           label="鍚嶇О:"
@@ -95,7 +95,7 @@
           </ProFormItemV2>
         </template>
       </template>
-      <template v-if="enterpriseConfigureType === EnterpriseConfigureType.ShortMessage">
+      <template v-if="innerForm.enterpriseConfigureType === EnterpriseConfigureType.ShortMessage">
         <div class="configure-dialog-form-title">閫氶亾閰嶇疆</div>
         <ProFormItemV2
           label="鍚嶇О:"
@@ -162,6 +162,7 @@
 type Props = {
   modelValue: boolean;
   form?: {
+    enterpriseConfigureType: EnterpriseConfigureType;
     openBank: string;
     openBranchBank: string;
     bankAccount: string;
@@ -180,12 +181,10 @@
   modelValue: false,
 });
 
-const enterpriseConfigureType = ref<EnterpriseConfigureType>(EnterpriseConfigureType.Bank);
-
 const emit = defineEmits<{
   (e: 'update:modelValue', value: boolean): void;
   (e: 'update:form', value: Props['form']): void;
-  (e: 'onConfirm', value: EnterpriseConfigureType): void;
+  (e: 'onConfirm'): void;
   (e: 'onCancel'): void;
 }>();
 
@@ -220,7 +219,7 @@
   if (!dialogForm.value) return;
   dialogForm.value.validate((valid) => {
     if (valid) {
-      emit('onConfirm', enterpriseConfigureType.value);
+      emit('onConfirm');
     } else {
       return;
     }

--
Gitblit v1.9.1