| | |
| | | <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" |
| | |
| | | const dialogForm = ref<FormInstance>(); |
| | | |
| | | const form = reactive({ |
| | | applyment_state: '' as any as EnumWeChatPayApplymentState, |
| | | business_code: '', |
| | | contact_type: '' as any as EnumWeChatPayApplymentContactType, |
| | | contact_name: '', |
| | |
| | | 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; |
| | |
| | | }); |
| | | }, |
| | | 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 ?? ''; |