| | |
| | | <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" |
| | |
| | | > |
| | | </ProFormItemV2> |
| | | </template> |
| | | <template v-if="enterpriseConfigureType === EnterpriseConfigureType.Electronic"> |
| | | <template v-if="innerForm.enterpriseConfigureType === EnterpriseConfigureType.Electronic"> |
| | | <div class="configure-dialog-form-title">通道配置</div> |
| | | <ProFormItemV2 |
| | | label="名称:" |
| | |
| | | </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="名称:" |
| | |
| | | type Props = { |
| | | modelValue: boolean; |
| | | form?: { |
| | | enterpriseConfigureType: EnterpriseConfigureType; |
| | | openBank: string; |
| | | openBranchBank: string; |
| | | bankAccount: string; |
| | |
| | | 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; |
| | | }>(); |
| | | |
| | |
| | | if (!dialogForm.value) return; |
| | | dialogForm.value.validate((valid) => { |
| | | if (valid) { |
| | | emit('onConfirm', enterpriseConfigureType.value); |
| | | emit('onConfirm'); |
| | | } else { |
| | | return; |
| | | } |