提交
This commit is contained in:
1 parent
cdaa0ac273
commit
b7cd657f32
32 files changed
+2885
-1936
No files matched your search
@@ -1,5 +1,7 @@
|
||||
/** 分期缴费:期数对齐、应缴日/金额计算(与 ProtocolFormDialog 逻辑一致) */
|
||||
|
||||
import { isInstallmentPayMode } from '@/utils/protocol-payment-presets'
|
||||
|
||||
const DAYS_PER_MONTH = 30
|
||||
|
||||
export const DEFAULT_INSTALLMENT_ADVANCE_DAYS = 30
|
||||
@@ -311,7 +313,7 @@ export function alignFqPaymentDetailsForDisplay(
|
||||
payment: PaymentLike,
|
||||
details: DetailLike[]
|
||||
): DetailLike[] {
|
||||
if (!payment || payment.payMode !== 'fq') return details
|
||||
if (!payment || !isInstallmentPayMode(String(payment.payMode || ''))) return details
|
||||
const count = Number(payment.installmentCount)
|
||||
if (!count || count < 1) return details
|
||||
|
||||
@@ -396,7 +398,7 @@ export function syncFqPaymentDetailRowCount(
|
||||
},
|
||||
paymentDetails: DetailLike[]
|
||||
): void {
|
||||
if (payment.payMode !== 'fq') return
|
||||
if (!isInstallmentPayMode(payment.payMode)) return
|
||||
const count = Number(payment.installmentCount)
|
||||
if (!count || count < 1) return
|
||||
|
||||
|
||||
Reference in new issue
Block a user