|
|
|
|
@ -1207,13 +1207,16 @@ export default {
|
|
|
|
|
// 特殊字段处理:从 paymentRegistrationForm 中获取值
|
|
|
|
|
if (field.field === 'auditAmount') {
|
|
|
|
|
// 审计金额:从 paymentRegistrationForm.audit_money 获取,如果没有则为 0
|
|
|
|
|
field.value = this.paymentRegistrationForm.audit_money || '0'
|
|
|
|
|
const value = parseFloat(this.paymentRegistrationForm.audit_money) || 0
|
|
|
|
|
field.value = value.toFixed(2)
|
|
|
|
|
} else if (field.field === 'currentDuePayment') {
|
|
|
|
|
// 当前应付金额:从 paymentRegistrationForm.applyMoney 获取,如果没有则为 0
|
|
|
|
|
field.value = this.paymentRegistrationForm.applyMoney || '0'
|
|
|
|
|
const value = parseFloat(this.paymentRegistrationForm.applyMoney) || 0
|
|
|
|
|
field.value = value.toFixed(2)
|
|
|
|
|
} else if (field.field === 'currentPayment') {
|
|
|
|
|
// 当前扣款金额:从 paymentRegistrationForm.deductionMoney 获取,如果没有则为 0
|
|
|
|
|
field.value = this.paymentRegistrationForm.deductionMoney || '0'
|
|
|
|
|
const value = parseFloat(this.paymentRegistrationForm.deductionMoney) || 0
|
|
|
|
|
field.value = value.toFixed(2)
|
|
|
|
|
} else if (field.field === 'currentPaymentRemark') {
|
|
|
|
|
// 当前付款备注:从 paymentRegistrationForm.type 获取,如果没有则为空字符串
|
|
|
|
|
field.value = this.paymentRegistrationForm.type || ''
|
|
|
|
|
@ -1229,7 +1232,7 @@ export default {
|
|
|
|
|
baseValue = previousPaymentValue
|
|
|
|
|
}
|
|
|
|
|
const totalPaidValue = baseValue + currentApplyMoneyValue
|
|
|
|
|
field.value = totalPaidValue.toString()
|
|
|
|
|
field.value = totalPaidValue.toFixed(2)
|
|
|
|
|
} else if (field.field === 'totalPlanned') {
|
|
|
|
|
// 累计计划付款:对照值(从 other_data_fill 获取)+ currentPayment
|
|
|
|
|
let baseValue = 0
|
|
|
|
|
@ -1237,7 +1240,7 @@ export default {
|
|
|
|
|
baseValue = parseFloat(contextData.other_data_fill[field.link_field]) || 0
|
|
|
|
|
}
|
|
|
|
|
const totalPlannedValue = baseValue + currentPaymentValue
|
|
|
|
|
field.value = totalPlannedValue.toString()
|
|
|
|
|
field.value = totalPlannedValue.toFixed(2)
|
|
|
|
|
} else if (field.link_field && contextData && contextData.other_data_fill && contextData.other_data_fill[field.link_field]) {
|
|
|
|
|
// 普通字段:从 other_data_fill 中获取
|
|
|
|
|
let value = contextData.other_data_fill[field.link_field]
|
|
|
|
|
|