feat: align customer finance account

This commit is contained in:
2026-09-10 22:43:11 +08:00
parent 84c3b90d4a
commit b2c92d5666
3 changed files with 8 additions and 3 deletions
+3
View File
@@ -34,6 +34,8 @@ export interface FinanceAccount {
creditUsed: string
creditFrozen: string
availableCredit: string
creditExpiresOn: string | null
creditActive: boolean
version: number
updatedAt: string
}
@@ -51,6 +53,7 @@ export interface AccountLedgerEntry {
creditLimitAfter: string
creditUsedAfter: string
availableCreditAfter: string
creditExpiresOnAfter: string | null
sourceType: 'CLIENT_RECHARGE' | 'MANUAL_RECHARGE' | 'MANUAL_DEDUCTION' | 'CREDIT_LIMIT_ADJUSTMENT' | string
sourceNo: string
operatorName: string | null
@@ -225,7 +225,7 @@ onMounted(() => { void loadAccountData() })
<article><span>实际余额</span><strong>¥ {{ formatAccountAmount(account?.actualBalance) }}</strong><small>当前账户实际资金</small></article>
<article><span>冻结金额</span><strong>¥ {{ formatAccountAmount(account?.frozenBalance) }}</strong><small>暂不可使用的资金</small></article>
<article class="balance-available"><span>总可用余额</span><strong>¥ {{ formatAccountAmount(account?.availableBalance) }}</strong><small>实际可用资金与可用授信合计</small></article>
<article><span>授信额度</span><strong>¥ {{ formatAccountAmount(account?.creditLimit) }}</strong><small>平台配置的授信上限</small></article>
<article><span>授信额度</span><strong>¥ {{ formatAccountAmount(account?.creditLimit) }}</strong><small>{{ account?.creditExpiresOn ? `${account.creditExpiresOn} ${account.creditActive ? '到期' : '已到期'}` : '未设置有效期' }}</small></article>
<article><span>已用授信</span><strong>¥ {{ formatAccountAmount(account?.creditUsed) }}</strong><small>已结算使用的授信</small></article>
<article><span>可用授信</span><strong>¥ {{ formatAccountAmount(account?.availableCredit) }}</strong><small>扣除已用和冻结后的授信</small></article>
</section>