| | |
| | | useTable, |
| | | useFormDialog, |
| | | FieldRadio, |
| | | UploadUserFile, |
| | | } from '@bole-core/components'; |
| | | import { useAccess, useGlobalEventContext } from '@/hooks'; |
| | | import { EnterpriseConfigureType, IsConfiguredText } from '@/constants'; |
| | |
| | | if (row) { |
| | | let electronSignSetting = await getEnterpriseElectronSignSetting(row.id); |
| | | let smsSetting = await getEnterpriseSmsSetting(row.id); |
| | | // let alipayWallet = await enterpriseWalletServices.getEnterpriseWallet({ |
| | | // enterpriseId: row.id, |
| | | // access: EnumEnterpriseWalletAccess.Alipay, |
| | | // }); |
| | | let alipayWallet = await enterpriseWalletServices.getEnterpriseWallet({ |
| | | enterpriseId: row.id, |
| | | access: EnumEnterpriseWalletAccess.Alipay, |
| | | }); |
| | | handleEdit({ |
| | | id: row.id, |
| | | enterpriseConfigureType: EnterpriseConfigureType.AliPay, |
| | |
| | | ), |
| | | smsAccess: smsSetting.smsAccess, |
| | | smsCost: smsSetting.smsCost, |
| | | alipayAccount: '', |
| | | alipayMerchantId: '', |
| | | alipayAccount: alipayWallet.account, |
| | | alipayMerchantId: alipayWallet.merchantId, |
| | | signStatus: alipayWallet.signStatus, |
| | | expandindirectOrderStatus: alipayWallet.expandindirectOrderStatus, |
| | | |
| | | url: [] as UploadUserFile[], |
| | | }); |
| | | } else { |
| | | handleAdd({ |
| | |
| | | smsCost: 0, |
| | | alipayAccount: '', |
| | | alipayMerchantId: '', |
| | | signStatus: '' as any as EnumEnterpriseWalletSignStatus, |
| | | expandindirectOrderStatus: '' as any as EnumEnterpriseWalletExpandindirectOrderStatus, |
| | | |
| | | url: [] as UploadUserFile[], |
| | | }, |
| | | }); |
| | | |