| | |
| | | </span> |
| | | </template> |
| | | </ProDialog> |
| | | <QrcodeDialog v-bind="dialogQrcodeProps"></QrcodeDialog> |
| | | <AlipayWalletOpen v-bind="dialogQrcodeProps"></AlipayWalletOpen> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | |
| | | EnumElectronSignAccess, |
| | | } from '@/constants'; |
| | | import * as enterpriseWalletServices from '@/services/api/enterpriseWallet'; |
| | | import QrcodeDialog from './QrcodeDialog.vue'; |
| | | import AlipayWalletOpen from './AlipayWalletOpen.vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'ConfigureDialog', |
| | |
| | | smsCost: number; |
| | | alipayAccount: string; |
| | | alipayMerchantId: string; |
| | | id: string; |
| | | }; |
| | | |
| | | const form = defineModel<Form>('form'); |
| | |
| | | |
| | | const { dialogProps: dialogQrcodeProps, handleAdd } = useFormDialog({ |
| | | defaultFormParams: { |
| | | qrcodeUrl: '', |
| | | alipayUrl: '', |
| | | }, |
| | | }); |
| | | |
| | |
| | | try { |
| | | let params: API.OpenEnterpriseWalletCommand = { |
| | | access: EnumEnterpriseWalletAccess.Alipay, |
| | | enterpriseId: form.value.id, |
| | | }; |
| | | let res = await enterpriseWalletServices.openEnterpriseWallet(params); |
| | | if (res) { |
| | | handleAdd({ |
| | | qrcodeUrl: res.signUrl, |
| | | alipayUrl: res.signUrl, |
| | | }); |
| | | } |
| | | } catch (error) {} |