| | |
| | | </ProTableV2> |
| | | </AppContainer> |
| | | <ConfigureDialog v-bind="dialogProps" /> |
| | | <WechatWalletOpen v-bind="dialogWechatProps"></WechatWalletOpen> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | |
| | | useTableV2, |
| | | } from '@bole-core/components'; |
| | | import { useAccess, useGlobalEventContext } from '@/hooks'; |
| | | import { EnterpriseConfigureType, IsConfiguredText } from '@/constants'; |
| | | import { EnterpriseConfigureType, IsConfiguredText, EnumEnterpriseTypeText } from '@/constants'; |
| | | 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', |
| | |
| | | columnsRenderProps: { |
| | | isReal: { type: 'enum', valueEnum: IsRealText }, |
| | | isConfigured: { type: 'enum', valueEnum: IsConfiguredText }, |
| | | type: { type: 'enum', valueEnum: EnumEnterpriseTypeText }, |
| | | }, |
| | | } |
| | | ); |
| | |
| | | }); |
| | | } |
| | | |
| | | 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) {} |