Commit 5a64f8ac authored by tanghao's avatar tanghao

部分金额调整

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