refactor: 收款流水未匹配金额字段名统一为unmatchAmountRec

This commit is contained in:
刘泉佳
2026-10-29 16:13:23 +08:00
parent d89fd9db97
commit d23a9b00de
4 changed files with 8 additions and 8 deletions
@@ -44,7 +44,7 @@
<template #default="{ row }">{{ formatMoney(row.claimedAmount) }}</template>
</el-table-column>
<el-table-column label="金蝶未认领金额" min-width="140" align="right">
<template #default="{ row }">{{ formatMoney(row.unclaimedAmount) }}</template>
<template #default="{ row }">{{ formatMoney(row.unmatchAmountRec) }}</template>
</el-table-column>
<el-table-column label="剩余可认领金额" min-width="140" align="right">
<template #default="{ row }">{{ formatMoney(flowRemaining(row)) }}</template>
@@ -302,7 +302,7 @@ export default {
);
},
flowRemaining(flow) {
const unclaimed = Number(flow.unclaimedAmount || 0);
const unclaimed = Number(flow.unmatchAmountRec || 0);
const receipt = Number(flow.receiptAmount || 0);
const ceiling = unclaimed > 0 && receipt > 0 ? Math.min(unclaimed, receipt) : unclaimed || receipt;
return Math.max(ceiling - Number(flow.claimedAmount || 0), 0);
@@ -356,7 +356,7 @@ export default {
for (const flow of this.flows) {
const total = this.flowAllocatedTotal(flow.id);
const remaining = Math.max(
Number(flow.unclaimedAmount || 0) - Number(flow.claimedAmount || 0),
Number(flow.unmatchAmountRec || 0) - Number(flow.claimedAmount || 0),
0
);
if (total > remaining + 0.001) {