| | |
| | | </ProTableV2> |
| | | </AppContainer> |
| | | <ConfigureDialog v-bind="dialogProps" /> |
| | | <WechatWalletOpen v-bind="dialogWechatProps"></WechatWalletOpen> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | |
| | | import ConfigureDialog from './components/ConfigureDialog.vue'; |
| | | import { Message } from '@bole-core/core'; |
| | | import * as enterpriseServices from '@/services/api/enterprise'; |
| | | import WechatWalletOpen from './components/WechatWalletOpen.vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'EnterpriseManageList', |
| | |
| | | }); |
| | | } |
| | | |
| | | const { dialogProps, handleEdit, dialogState } = useFormDialog({ |
| | | const { dialogProps, handleEdit, dialogState, editForm } = useFormDialog({ |
| | | onConfirm: handleAddOrEdit, |
| | | defaultFormParams: { |
| | | id: '', |
| | |
| | | }, |
| | | }); |
| | | |
| | | async function handleAddOrEdit() { |
| | | const { dialogProps: dialogWechatProps, handleAdd } = useFormDialog({ |
| | | defaultFormParams: { |
| | | url: '', |
| | | }, |
| | | }); |
| | | |
| | | async function handleAddOrEdit(data?: any) { |
| | | try { |
| | | Message.successMessage('操作成功'); |
| | | if (editForm.enterpriseConfigureType === EnterpriseConfigureType.Wechat) { |
| | | handleAdd({ |
| | | url: data?.sign_url, |
| | | }); |
| | | } |
| | | Message.successMessage( |
| | | editForm.enterpriseConfigureType === EnterpriseConfigureType.Wechat |
| | | ? '提交成功,请超级管理员扫码进行签约操作' |
| | | : '操作成功' |
| | | ); |
| | | getList(paginationState.pageIndex); |
| | | dialogState.dialogVisible = false; |
| | | } catch (error) {} |
| | |
| | | const visible = defineModel({ type: Boolean }); |
| | | |
| | | const emit = defineEmits<{ |
| | | (e: 'onConfirm'): void; |
| | | (e: 'onConfirm', value: any): void; |
| | | (e: 'onCancel'): void; |
| | | }>(); |
| | | |
| | |
| | | res = await wechatConfigureViewRef.value?.onConfirm?.(); |
| | | } |
| | | if (res) { |
| | | emit('onConfirm'); |
| | | emit('onConfirm', res); |
| | | } |
| | | } |
| | | </script> |
| | |
| | | watch( |
| | | [toRef(props, 'bank_alias_code'), toRef(props, 'city_code'), toRef(props, 'need_bank_branch')], |
| | | ([bank_alias_code, city_code, need_bank_branch]) => { |
| | | bank_branch_id.value = ''; |
| | | // bank_branch_id.value = ''; |
| | | if (need_bank_branch) { |
| | | getList(); |
| | | } |
| | |
| | | const account_bank_code = defineModel<number>('account_bank_code'); |
| | | const bank_alias_code = defineModel<string>('bank_alias_code'); |
| | | const need_bank_branch = defineModel<boolean>('need_bank_branch'); |
| | | const bank_branch_id = defineModel<string>('bank_branch_id'); |
| | | |
| | | onMounted(() => { |
| | | if (props.bank_account_type !== ('' as any)) { |
| | |
| | | watch( |
| | | () => props.bank_account_type, |
| | | (newVal) => { |
| | | bank_alias.value = ''; |
| | | account_bank.value = ''; |
| | | account_bank_code.value = '' as any as number; |
| | | bank_alias_code.value = ''; |
| | | need_bank_branch.value = false; |
| | | // bank_alias.value = ''; |
| | | // account_bank.value = ''; |
| | | // account_bank_code.value = '' as any as number; |
| | | // bank_alias_code.value = ''; |
| | | // need_bank_branch.value = false; |
| | | if (newVal !== ('' as any)) { |
| | | getList(); |
| | | } |
| | |
| | | account_bank_code.value = bank.account_bank_code; |
| | | bank_alias_code.value = bank.bank_alias_code; |
| | | need_bank_branch.value = bank.need_bank_branch; |
| | | bank_branch_id.value = ''; |
| | | } |
| | | } |
| | | </script> |
| | |
| | | v-model="form.bank_account_type" |
| | | :valueEnum="bank_account_typeList" |
| | | placeholder="请选择结算银行账户类型" |
| | | @change="handleBankAccountTypeChange" |
| | | > |
| | | </ProFormSelect> |
| | | </ProFormItemV2> |
| | |
| | | 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 |
| | |
| | | ProFormRadio, |
| | | ProFormDatePicker, |
| | | ProFormImageUpload, |
| | | useFormDialog, |
| | | } from '@bole-core/components'; |
| | | import * as enterpriseWalletServices from '@/services/api/enterpriseWallet'; |
| | | import { useQuery } from '@tanstack/vue-query'; |
| | |
| | | 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({ |
New file |
| | |
| | | <template> |
| | | <ProDialog title="超级管理员签约" v-model="visible" width="530" destroy-on-close draggable> |
| | | <iframe v-if="form.url" width="430px" height="430px" :src="form.url"></iframe> |
| | | </ProDialog> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { ProDialog } from '@bole-core/components'; |
| | | |
| | | defineOptions({ |
| | | name: 'WechatWalletOpen', |
| | | }); |
| | | |
| | | type Form = { |
| | | url: string; |
| | | }; |
| | | |
| | | const form = defineModel<Form>('form'); |
| | | const visible = defineModel({ type: Boolean }); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @use '@/style/common.scss' as *; |
| | | </style> |