fix: resolve admin acceptance defects
This commit is contained in:
@@ -175,23 +175,32 @@
|
||||
<n-spin :show="relatedLoading">
|
||||
<n-form label-placement="left" label-width="110">
|
||||
<template v-if="relatedType === 'payment'">
|
||||
<n-alert v-if="paymentForm.id" type="info" :show-icon="false">
|
||||
当前默认显示脱敏资料;留空保存不会覆盖原敏感字段或收款码。
|
||||
<n-button
|
||||
v-if="hasPermission(['/appMember/sensitive'])"
|
||||
text
|
||||
type="primary"
|
||||
@click="openSensitive('payment', paymentForm.id)"
|
||||
>授权查看明文</n-button>
|
||||
</n-alert>
|
||||
<n-form-item label="开户人"
|
||||
><n-input v-model:value="paymentForm.holder" placeholder="请输入开户人"
|
||||
><n-input v-model:value="paymentForm.holder" :placeholder="paymentForm.holderMask || '留空不修改'"
|
||||
/></n-form-item>
|
||||
<n-form-item label="身份证号"
|
||||
><n-input v-model:value="paymentForm.identityNo" :placeholder="paymentForm.identityNoMask || '留空不修改'"
|
||||
/></n-form-item>
|
||||
<n-form-item label="开户银行"
|
||||
><n-input v-model:value="paymentForm.bankName" placeholder="请输入开户银行"
|
||||
/></n-form-item>
|
||||
<n-form-item label="开户电话"
|
||||
><n-input v-model:value="paymentForm.mobile" placeholder="请输入开户电话"
|
||||
><n-input v-model:value="paymentForm.mobile" :placeholder="paymentForm.mobileMask || '留空不修改'"
|
||||
/></n-form-item>
|
||||
<n-form-item label="银行卡号"
|
||||
><n-input v-model:value="paymentForm.bankAccount" placeholder="请输入银行卡号"
|
||||
><n-input v-model:value="paymentForm.bankAccount" :placeholder="paymentForm.accountNoMask || '留空不修改'"
|
||||
/></n-form-item>
|
||||
<n-form-item label="数字钱包"
|
||||
><n-input v-model:value="paymentForm.digitalWallet" placeholder="请输入数字钱包"
|
||||
/></n-form-item>
|
||||
<n-form-item label="云闪付账号"
|
||||
><n-input v-model:value="paymentForm.unionPayAccount" placeholder="请输入云闪付账号"
|
||||
><n-input v-model:value="paymentForm.digitalWallet" :placeholder="paymentForm.digitalRmbCodeMask || '留空不修改'"
|
||||
/></n-form-item>
|
||||
<n-form-item label="收款码">
|
||||
<n-grid :cols="2" :x-gap="16">
|
||||
@@ -743,14 +752,20 @@
|
||||
memberId,
|
||||
id: bank?.id || 0,
|
||||
holder: '',
|
||||
holderMask: bank?.holderMask || '',
|
||||
identityNo: '',
|
||||
identityNoMask: bank?.identityNoMask || '',
|
||||
bankName: bank?.bankName || '',
|
||||
mobile: '',
|
||||
mobileMask: bank?.mobileMask || '',
|
||||
bankAccount: '',
|
||||
accountNoMask: bank?.accountNoMask || '',
|
||||
digitalWallet: '',
|
||||
unionPayAccount: '',
|
||||
alipayQrCode: '',
|
||||
wechatQrCode: '',
|
||||
records: { 1: bank, 2: byType(2), 3: byType(3), 4: byType(4), 5: byType(5) },
|
||||
digitalRmbCodeMask: bank?.digitalRmbCodeMask || '',
|
||||
alipayQrCode: bank?.alipayQrUrl || '',
|
||||
wechatQrCode: bank?.wechatQrUrl || '',
|
||||
alipayQrAttachmentId: bank?.alipayQrAttachmentId || 0,
|
||||
wechatQrAttachmentId: bank?.wechatQrAttachmentId || 0,
|
||||
});
|
||||
} else {
|
||||
const row = relatedRows.value.find((item) => item.isDefault === 1) || relatedRows.value[0];
|
||||
@@ -811,32 +826,23 @@
|
||||
relatedSaving.value = true;
|
||||
try {
|
||||
if (relatedType.value === 'payment') {
|
||||
const common = {
|
||||
await PaymentEdit({
|
||||
id: paymentForm.id,
|
||||
memberId: paymentForm.memberId,
|
||||
accountType: 1,
|
||||
bankName: paymentForm.bankName,
|
||||
holder: paymentForm.holder,
|
||||
identityNo: paymentForm.identityNo,
|
||||
mobile: paymentForm.mobile,
|
||||
accountNo: paymentForm.bankAccount,
|
||||
digitalRmbCode: paymentForm.digitalWallet,
|
||||
alipayQrUrl: paymentForm.alipayQrCode,
|
||||
wechatQrUrl: paymentForm.wechatQrCode,
|
||||
alipayQrAttachmentId: paymentForm.alipayQrAttachmentId,
|
||||
wechatQrAttachmentId: paymentForm.wechatQrAttachmentId,
|
||||
verifyStatus: 1,
|
||||
isDefault: 1,
|
||||
};
|
||||
const accounts = [
|
||||
{ type: 1, value: paymentForm.bankAccount, bankName: paymentForm.bankName },
|
||||
{ type: 2, value: paymentForm.digitalWallet, bankName: '' },
|
||||
{ type: 3, value: paymentForm.unionPayAccount, bankName: '' },
|
||||
{ type: 4, value: paymentForm.alipayQrCode, bankName: '' },
|
||||
{ type: 5, value: paymentForm.wechatQrCode, bankName: '' },
|
||||
];
|
||||
for (const account of accounts) {
|
||||
const old = paymentForm.records?.[account.type];
|
||||
if (account.value || old?.id)
|
||||
await PaymentEdit({
|
||||
...common,
|
||||
id: old?.id || 0,
|
||||
accountType: account.type,
|
||||
accountNo: account.value,
|
||||
bankName: account.bankName,
|
||||
isDefault: account.type === 1 ? 1 : 2,
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
const regionChanged = addressForm.region !== addressForm.originalRegion;
|
||||
await AddressEdit({
|
||||
|
||||
Reference in New Issue
Block a user