| | |
| | | <div style="display: flex; width: 100%"> |
| | | <ProFormText v-model.trim="form.alipayAccount" placeholder="请输入支付宝账号"> |
| | | </ProFormText> |
| | | <el-button style="margin-left: 10px" type="primary" link @click="openEnterpriseWallet" |
| | | <el-button |
| | | style="margin-left: 10px" |
| | | type="primary" |
| | | link |
| | | @click="handleOpenEnterpriseWallet" |
| | | >获取签约链接</el-button |
| | | > |
| | | </div> |
| | |
| | | > |
| | | <ProFormText v-model.trim="form.alipayMerchantId" placeholder="请输入商户ID" /> |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 label="签约状态:" prop="alipayAccount" required> |
| | | <span>已签约</span> |
| | | <ProFormItemV2 label="签约状态:" prop="signStatus" required> |
| | | <span>{{ EnumEnterpriseWalletSignStatusText[form.signStatus] }}</span> |
| | | <el-button style="margin-left: 10px" type="primary" link @click="handleCheckBankAccount" |
| | | >校验</el-button |
| | | > |
| | | </ProFormItemV2> |
| | | <ProFormItemV2 label="进件状态:" prop="alipayAccount" required> |
| | | <span>已进件</span> |
| | | <ProFormItemV2 label="进件状态:" prop="expandindirectOrderStatus" required> |
| | | <span>{{ |
| | | EnumEnterpriseWalletExpandindirectOrderStatusText[form.expandindirectOrderStatus] |
| | | }}</span> |
| | | <el-button style="margin-left: 10px" type="primary" link @click="handleCheckBankAccount" |
| | | >校验</el-button |
| | | > |
| | |
| | | EnumElectronSignAccessText, |
| | | EnumSmsAccessText, |
| | | EnumElectronSignAccess, |
| | | EnumEnterpriseWalletSignStatusText, |
| | | EnumEnterpriseWalletExpandindirectOrderStatusText, |
| | | } from '@/constants'; |
| | | import * as enterpriseWalletServices from '@/services/api/enterpriseWallet'; |
| | | import AlipayWalletOpen from './AlipayWalletOpen.vue'; |
| | |
| | | alipayAccount: string; |
| | | alipayMerchantId: string; |
| | | id: string; |
| | | |
| | | signStatus: EnumEnterpriseWalletSignStatus; |
| | | expandindirectOrderStatus: EnumEnterpriseWalletExpandindirectOrderStatus; |
| | | }; |
| | | |
| | | const form = defineModel<Form>('form'); |
| | |
| | | |
| | | const { enabledElectronSignSettings } = useEnabledElectronSignSettings(); |
| | | |
| | | function handleCheckBankAccount() {} |
| | | async function handleCheckBankAccount() { |
| | | try { |
| | | let alipayWallet = await enterpriseWalletServices.getEnterpriseWallet({ |
| | | enterpriseId: form.value.id, |
| | | access: EnumEnterpriseWalletAccess.Alipay, |
| | | }); |
| | | if (alipayWallet) { |
| | | form.value.signStatus = alipayWallet.signStatus; |
| | | form.value.expandindirectOrderStatus = alipayWallet.expandindirectOrderStatus; |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | function onDialogClose() { |
| | | if (!dialogForm.value) return; |
| | |
| | | }, |
| | | }); |
| | | |
| | | async function handleOpenEnterpriseWallet() { |
| | | try { |
| | | if (!dialogForm.value) return; |
| | | const valid = await dialogForm.value.validateField(['alipayAccount', 'alipayMerchantId']); |
| | | if (valid) { |
| | | openEnterpriseWallet(); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | |
| | | async function openEnterpriseWallet() { |
| | | try { |
| | | let params: API.OpenEnterpriseWalletCommand = { |