Commit ea98ead8 authored by 沈翠玲's avatar 沈翠玲

修复bug

parent 4fb345b4
...@@ -440,12 +440,6 @@ ...@@ -440,12 +440,6 @@
}, },
}, },
}, },
{
field: 'product',
width: 120,
showOverflow: 'tooltip',
title: '产品',
},
{ {
field: 'loanPlatform.name', field: 'loanPlatform.name',
showOverflow: 'tooltip', showOverflow: 'tooltip',
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<td>{{ currentDetail?.borrower?.idCard }}</td> <td>{{ currentDetail?.borrower?.idCard }}</td>
</tr> </tr>
<tr> <tr>
<td class="label">产品</td> <td class="label">借款平台</td>
<td> <td>
<VxeTooltip <VxeTooltip
:content="Array.from(new Set(currentDetail?.loans.map((v) => v.loanPlatform.name))).join(',')" :content="Array.from(new Set(currentDetail?.loans.map((v) => v.loanPlatform.name))).join(',')"
...@@ -529,12 +529,6 @@ ...@@ -529,12 +529,6 @@
}, },
}, },
}, },
{
field: 'product',
title: '产品',
width: 120,
showOverflow: 'tooltip',
},
{ {
field: 'loanPlatform.name', field: 'loanPlatform.name',
title: '借款平台', title: '借款平台',
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item class="w-full" label="产品:" prop="name" label-width="120px"> <el-form-item class="w-full" label="借款平台:" prop="name" label-width="120px">
{{Array.from(new Set(currentDetail?.reduceRecords.map((v) => v?.loan?.loanPlatform.name))).join(',')}} {{Array.from(new Set(currentDetail?.reduceRecords.map((v) => v?.loan?.loanPlatform.name))).join(',')}}
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -359,12 +359,6 @@ ...@@ -359,12 +359,6 @@
}, },
}, },
}, },
{
field: 'loan.product',
width: 100,
showOverflow: 'tooltip',
title: '产品',
},
{ {
field: 'loan.loanPlatform.name', field: 'loan.loanPlatform.name',
showOverflow: 'tooltip', showOverflow: 'tooltip',
......
...@@ -440,12 +440,6 @@ ...@@ -440,12 +440,6 @@
}, },
}, },
}, },
{
field: 'product',
width: 120,
showOverflow: 'tooltip',
title: '产品',
},
{ {
field: 'loanPlatform.name', field: 'loanPlatform.name',
width: 120, width: 120,
......
...@@ -399,9 +399,9 @@ ...@@ -399,9 +399,9 @@
const config = reactive({ const config = reactive({
minHeight: 200, minHeight: 200,
checkboxConfig: { checkboxConfig: {
// checkMethod: ({ row }) => { checkMethod: ({ row }) => {
// return props.mergerCase !== 'Y'; return row.repayStatus !== 'over';
// }, },
}, },
columns: [ columns: [
{ type: 'checkbox', width: 60, fixed: 'left' }, { type: 'checkbox', width: 60, fixed: 'left' },
...@@ -425,24 +425,18 @@ ...@@ -425,24 +425,18 @@
}, },
showOverflow: 'tooltip', showOverflow: 'tooltip',
}, },
{ // {
field: 'mergerCase', // field: 'mergerCase',
title: '是否共案处理', // title: '是否共案处理',
visible: authButtonListGet.includes('allcation_for_tenant'), // visible: authButtonListGet.includes('allcation_for_tenant'),
showOverflow: 'tooltip', // showOverflow: 'tooltip',
width: 120, // width: 120,
slots: { // slots: {
default: ({ row }) => { // default: ({ row }) => {
return <ElTag>{row.mergerCase == 'Y' ? '是' : '否'}</ElTag>; // return <ElTag>{row.mergerCase == 'Y' ? '是' : '否'}</ElTag>;
}, // },
}, // },
}, // },
{
field: 'product',
title: '产品',
width: 120,
showOverflow: 'tooltip',
},
{ {
field: 'loanPlatform.name', field: 'loanPlatform.name',
title: '借款平台', title: '借款平台',
...@@ -482,7 +476,6 @@ ...@@ -482,7 +476,6 @@
showModal.value = true; showModal.value = true;
currentInfo.value = info; currentInfo.value = info;
currentDetail.value = detail; currentDetail.value = detail;
console.log('currentInfo', currentInfo.value, currentDetail.value);
form.sum = 0; form.sum = 0;
form.phoneResultStatus = 'later'; form.phoneResultStatus = 'later';
form.remark = ''; form.remark = '';
...@@ -499,10 +492,11 @@ ...@@ -499,10 +492,11 @@
resuleObj.label = '本人可联'; resuleObj.label = '本人可联';
resuleObj.childrenlabel = null; resuleObj.childrenlabel = null;
tabledata.value = caselist; tabledata.value = caselist;
const a = caselist.filter((v) => v.repayStatus !== 'over');
setTimeout(() => { setTimeout(() => {
if (ProTableRef.value.element) { if (ProTableRef.value.element) {
ProTableRef.value.element.setAllCheckboxRow(true); ProTableRef.value.element.setCheckboxRow(a, true);
selectdList.value = caselist; selectdList.value = a;
} }
}, 500); }, 500);
}; };
......
...@@ -269,9 +269,9 @@ ...@@ -269,9 +269,9 @@
}; };
const config = reactive({ const config = reactive({
checkboxConfig: { checkboxConfig: {
// checkMethod: ({ row }) => { checkMethod: ({ row }) => {
// return props.mergerCase !== 'Y'; return row.loan.repayStatus !== 'over';
// }, },
}, },
minHeight: 200, minHeight: 200,
columns: [ columns: [
...@@ -308,12 +308,6 @@ ...@@ -308,12 +308,6 @@
}, },
}, },
}, },
{
field: 'loan.product',
width: 100,
showOverflow: 'tooltip',
title: '产品',
},
{ {
field: 'loan.loanPlatform.name', field: 'loan.loanPlatform.name',
showOverflow: 'tooltip', showOverflow: 'tooltip',
...@@ -386,7 +380,6 @@ ...@@ -386,7 +380,6 @@
const openModal = (detail, caselist) => { const openModal = (detail, caselist) => {
showModal.value = true; showModal.value = true;
currentDetail.value = detail; currentDetail.value = detail;
console.log('currentDetail', currentDetail.value, caselist);
form.totalReduceAmount = 0; form.totalReduceAmount = 0;
form.commissionAmount = 0; form.commissionAmount = 0;
form.remark = '' form.remark = ''
...@@ -395,21 +388,26 @@ ...@@ -395,21 +388,26 @@
const list = []; const list = [];
form.images = []; form.images = [];
mypictureRef.value?.clearFiles() mypictureRef.value?.clearFiles()
const a = [];
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 }); const listitem = { reduceAmount: Number(item.reduceAmount) || 0, payAmount: payAmount, loan: item }
form.totalReduceAmount = Decimal(form.totalReduceAmount).add( list.push(listitem);
Decimal(Number(item.reduceAmount) || 0) if (item.repayStatus !== 'over') {
); form.totalReduceAmount = Decimal(form.totalReduceAmount).add(
form['commissionAmount'] = Decimal(form['commissionAmount']).add(Decimal(item.commissionAmount)) Decimal(Number(item.reduceAmount) || 0)
form.remainingAmount = Decimal(form.remainingAmount).add(Decimal(payAmount)); );
a.push(listitem)
form['commissionAmount'] = Decimal(form['commissionAmount']).add(Decimal(item.commissionAmount))
form.remainingAmount = Decimal(form.remainingAmount).add(Decimal(payAmount));
}
}); });
tabledata.value = list; tabledata.value = list;
form.totalNumber = caselist.length; form.totalNumber = a.length;
setTimeout(() => { setTimeout(() => {
if (ProTableRef.value.element) { if (ProTableRef.value.element) {
ProTableRef.value.element.setAllCheckboxRow(true); ProTableRef.value.element.setCheckboxRow(a, true);
selectdList.value = list; selectdList.value = a;
} }
}, 500); }, 500);
}; };
......
...@@ -378,9 +378,9 @@ ...@@ -378,9 +378,9 @@
}; };
const config = reactive({ const config = reactive({
checkboxConfig: { checkboxConfig: {
// checkMethod: ({ row }) => { checkMethod: ({ row }) => {
// return props.mergerCase !== 'Y'; return row.repayStatus !== 'over';
// }, },
}, },
minHeight: 200, minHeight: 200,
columns: [ columns: [
...@@ -429,12 +429,6 @@ ...@@ -429,12 +429,6 @@
}, },
}, },
}, },
{
field: 'product',
title: '产品',
width: 120,
showOverflow: 'tooltip',
},
{ {
field: 'loanPlatform.name', field: 'loanPlatform.name',
title: '借款平台', title: '借款平台',
...@@ -527,23 +521,25 @@ ...@@ -527,23 +521,25 @@
showModal.value = true; showModal.value = true;
editFirst.value = false; editFirst.value = false;
currentDetail.value = detail; currentDetail.value = detail;
console.log('currentDetail', currentDetail.value, caselist);
form.totalRepayAmount = 0; form.totalRepayAmount = 0;
form.images = []; form.images = [];
mypictureRef.value?.clearFiles() mypictureRef.value?.clearFiles()
form.remainingAmount = 0; form.remainingAmount = 0;
const a = caselist.filter((v) => v.repayStatus !== 'over');
caselist.forEach((item) => { caselist.forEach((item) => {
const remainingAmount = Decimal(Number(item.remainingAmount) || 0).sub( if (item.repayStatus !== 'over') {
Decimal(Number(item.sumReductionAmount) || 0) const remainingAmount = Decimal(Number(item.remainingAmount) || 0).sub(
); Decimal(Number(item.sumReductionAmount) || 0)
form.totalRepayAmount = Decimal(form.totalRepayAmount).add(Decimal(remainingAmount)); );
form.remainingAmount = Decimal(form.remainingAmount).add(Decimal(remainingAmount)); form.totalRepayAmount = Decimal(form.totalRepayAmount).add(Decimal(remainingAmount));
form.remainingAmount = Decimal(form.remainingAmount).add(Decimal(remainingAmount));
}
}); });
tabledata.value = caselist; tabledata.value = caselist;
setTimeout(() => { setTimeout(() => {
if (ProTableRef.value.element) { if (ProTableRef.value.element) {
ProTableRef.value.element.setAllCheckboxRow(true); ProTableRef.value.element.setCheckboxRow(a, true);
selectdList.value = caselist; selectdList.value = a;
// 获取最大分期数 // 获取最大分期数
if (selectdList.value.length > 0) { if (selectdList.value.length > 0) {
getPlatforms(selectdList.value[0].loanPlatform.id); getPlatforms(selectdList.value[0].loanPlatform.id);
...@@ -565,12 +561,6 @@ ...@@ -565,12 +561,6 @@
message: '分期金额要大于借款平台的分期最低金额', message: '分期金额要大于借款平台的分期最低金额',
plain: true, plain: true,
}); });
const arr1 = selectdList.value.filter((v) => v.repayStatus === 'over');
if (arr1.length > 0)
return ElMessage.warning({
message: '不可以勾选结案的案件',
plain: true,
});
let images = form.images.map((v) => v.url) let images = form.images.map((v) => v.url)
images = images.map((v) => { images = images.map((v) => {
......
...@@ -953,11 +953,6 @@ ...@@ -953,11 +953,6 @@
title: '案件ID', title: '案件ID',
showOverflow: 'tooltip', showOverflow: 'tooltip',
}, },
{
field: 'product',
title: '产品',
showOverflow: 'tooltip',
},
{ {
field: 'loanPlatform.name', field: 'loanPlatform.name',
title: '借款平台', title: '借款平台',
......
...@@ -448,12 +448,6 @@ ...@@ -448,12 +448,6 @@
}, },
}, },
}, },
{
field: 'product',
width: 120,
showOverflow: 'tooltip',
title: '产品',
},
{ {
field: 'loanPlatform.name', field: 'loanPlatform.name',
showOverflow: 'tooltip', showOverflow: 'tooltip',
......
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