Commit 5a64f8ac authored by tanghao's avatar tanghao

部分金额调整

parent 6e4129a8
......@@ -87,7 +87,7 @@
return <>{row.reduceRecords.map((v) => v.loan.caseId).join(',')}</>;
},
},
width: 80,
width: 120,
},
{
field: 'borrower.name',
......@@ -95,15 +95,9 @@
search: { el: 'input', key: 'borrower' },
width: 90,
},
{
field: 'reduceAmount',
title: '减免金额',
search: { el: 'input' },
width: 80,
},
{
field: 'totalReduceAmount',
title: '减免金额(总计)',
title: '减免金额',
search: { el: 'input' },
width: 120,
},
......@@ -163,12 +157,6 @@
},
},
},
{
field: 'id',
title: '减免申请ID',
search: { el: 'input' },
width: 100,
},
{
field: 'applyDate',
title: '减免申请时间',
......
......@@ -52,7 +52,7 @@
<el-col :span="12">
<el-form-item class="w-full" label="应还金额:" prop="relation">
<div>
<p>{{ form.totalPayAmount }}</p>
<p>{{ form.remainingAmount }}</p>
<p class="text-red-600 leading-3">*应还金额</p>
</div>
</el-form-item>
......@@ -89,7 +89,7 @@
totalReduceAmount: 0,
totalNumber: '',
reduceType: 'settle',
totalPayAmount: 0,
remainingAmount: 0,
applyDate: dayjs().format('YYYY-MM-DD HH:mm:ss'),
});
const selectdList = ref([]);
......@@ -167,10 +167,10 @@
const changeNum = (row) => {
row.payAmount = row.loan.remainingAmount - row.reduceAmount;
form.totalReduceAmount = 0;
form.totalPayAmount = 0;
form.remainingAmount = 0;
tabledata.value.forEach((item) => {
form.totalReduceAmount += Number(item.reduceAmount) || 0;
form.totalPayAmount += Number(item.payAmount) || 0;
form.remainingAmount += Number(item.payAmount) || 0;
});
};
const openModal = (detail, caselist) => {
......@@ -178,13 +178,13 @@
currentDetail.value = detail;
console.log('currentDetail', currentDetail.value, caselist);
form.totalReduceAmount = 0;
form.totalPayAmount = 0;
form.remainingAmount = 0;
const list = [];
caselist.forEach((item) => {
const payAmount = Number(item.remainingAmount) || 0;
list.push({ reduceAmount: Number(item.reduceAmount) || 0, payAmount: payAmount, loan: item });
form.totalReduceAmount += Number(item.reduceAmount) || 0;
form.totalPayAmount += payAmount;
form.remainingAmount += payAmount;
});
tabledata.value = list;
form.totalNumber = caselist.length;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment