Commit 1222e845 authored by 沈翠玲's avatar 沈翠玲

优化

parent 9dc6b9f9
......@@ -5,7 +5,7 @@
ref="gridRef"
:collapsed="collapsed"
:collapsedRows="props.collapsedRows"
:gap="[20, 0]"
:gap="[5, 0]"
:cols="props.searchCol"
>
<GridItem
......
......@@ -437,29 +437,36 @@
{
field: 'caseId',
title: '案件ID',
showOverflow: 'tooltip',
},
{
field: 'product',
showOverflow: 'tooltip',
title: '产品',
},
{
field: 'loanPlatform.name',
showOverflow: 'tooltip',
title: '借款机构',
},
{
field: 'commissionAmount',
showOverflow: 'tooltip',
title: '委案金额',
},
{
field: 'sumReductionAmount',
showOverflow: 'tooltip',
title: '累计减免金额',
},
{
field: 'sumRepayAmount',
showOverflow: 'tooltip',
title: '累计还款金额',
},
{
field: 'remainingAmount',
showOverflow: 'tooltip',
title: '剩余待还金额',
},
],
......
......@@ -137,7 +137,7 @@
title: '案件ID',
showOverflow: 'tooltip',
width: 80,
search: { el: 'input', props: { clearable: true }, labelWidth: 80 },
search: { el: 'input', props: { clearable: true }, labelWidth: 78 },
slots: {
default: ({ row }) => {
return <>{row.loans.map((v) => v.caseId).join(',')}</>;
......@@ -152,7 +152,7 @@
search: {
el: 'date-picker',
props: { type: 'daterange', valueFormat: 'YYYY-MM-DD' },
labelWidth: 80,
labelWidth: 78,
},
},
{
......@@ -163,7 +163,7 @@
search: {
el: 'date-picker',
props: { type: 'daterange', valueFormat: 'YYYY-MM-DD' },
labelWidth: 80,
labelWidth: 78,
},
},
{
......@@ -171,7 +171,7 @@
title: '联系人姓名',
showOverflow: 'tooltip',
width: 110,
search: { el: 'input', props: { clearable: true }, key: 'guarantorName', labelWidth: 80 },
search: { el: 'input', props: { clearable: true }, key: 'guarantorName', labelWidth: 78 },
},
{
field: 'guarantor.phone',
......@@ -182,9 +182,9 @@
el: 'input',
props: { clearable: true },
key: 'guarantorPhone',
labelWidth: 80,
labelWidth: 78,
},
labelWidth: 80,
labelWidth: 78,
},
{
field: 'followStatus',
......@@ -195,7 +195,7 @@
search: {
el: 'select',
props: { filterable: true, multiple: true, 'collapse-tags': true },
labelWidth: 80,
labelWidth: 78,
defaultValue: [
'progress',
'pass_on',
......@@ -223,7 +223,7 @@
showOverflow: 'tooltip',
width: 120,
enum: phoneResultStatusOpt,
search: { el: 'select', props: { filterable: true }, labelWidth: 80 },
search: { el: 'select', props: { filterable: true }, labelWidth: 78 },
fieldNames: { label: 'label', value: 'value' },
slots: {
default: ({ row }) => {
......@@ -259,7 +259,7 @@
title: '备注',
showOverflow: 'tooltip',
width: 80,
search: { el: 'input', props: { clearable: true }, labelWidth: 80 },
search: { el: 'input', props: { clearable: true }, labelWidth: 78 },
},
{
field: 'voices',
......
......@@ -413,30 +413,37 @@
{
field: 'caseId',
title: '案件ID',
showOverflow: 'tooltip',
},
{
field: 'product',
title: '产品',
showOverflow: 'tooltip',
},
{
field: 'loanPlatform.name',
title: '借款机构',
showOverflow: 'tooltip',
},
{
field: 'commissionAmount',
title: '委案金额',
showOverflow: 'tooltip',
},
{
field: 'sumReductionAmount',
title: '累计减免金额',
showOverflow: 'tooltip',
},
{
field: 'sumRepayAmount',
title: '累计还款金额',
showOverflow: 'tooltip',
},
{
field: 'remainingAmount',
title: '剩余待还金额',
showOverflow: 'tooltip',
},
],
onCheckboxChange: onCheckboxChange,
......
......@@ -158,30 +158,37 @@
{ type: 'checkbox', title: '', width: '40px' },
{
field: 'loan.caseId',
showOverflow: 'tooltip',
title: '案件ID',
},
{
field: 'loan.product',
showOverflow: 'tooltip',
title: '产品',
},
{
field: 'loan.loanPlatform.name',
showOverflow: 'tooltip',
title: '借款机构',
},
{
field: 'loan.commissionAmount',
showOverflow: 'tooltip',
title: '委案金额',
},
{
field: 'loan.sumReductionAmount',
showOverflow: 'tooltip',
title: '累计减免金额',
},
{
field: 'loan.sumRepayAmount',
showOverflow: 'tooltip',
title: '累计还款金额',
},
{
field: 'reduceAmount',
showOverflow: 'tooltip',
title: '减免金额',
slots: {
default: ({ row, rowIndex }) => {
......@@ -195,10 +202,12 @@
},
{
field: 'loan.remainingAmount',
showOverflow: 'tooltip',
title: '剩余待还金额(减免前)',
},
{
field: 'payAmount',
showOverflow: 'tooltip',
title: '应还金额(减免后)',
},
],
......
......@@ -325,14 +325,17 @@
{
field: 'caseId',
title: '案件ID',
showOverflow: 'tooltip',
},
{
field: 'loanPlatform.name',
title: '借款机构',
showOverflow: 'tooltip',
},
{
field: 'remainingAmount',
title: '剩余待还金额',
showOverflow: 'tooltip',
},
],
};
......
......@@ -355,30 +355,37 @@
{
field: 'caseId',
title: '案件ID',
showOverflow: 'tooltip',
},
{
field: 'product',
title: '产品',
showOverflow: 'tooltip',
},
{
field: 'loanPlatform.name',
title: '借款机构',
showOverflow: 'tooltip',
},
{
field: 'commissionAmount',
title: '委案金额',
showOverflow: 'tooltip',
},
{
field: 'sumReductionAmount',
title: '累计减免金额',
showOverflow: 'tooltip',
},
{
field: 'sumRepayAmount',
title: '累计还款金额',
showOverflow: 'tooltip',
},
{
field: 'remainingAmount',
title: '剩余待还金额',
showOverflow: 'tooltip',
},
],
onCheckboxChange: onCheckboxChange,
......@@ -393,10 +400,12 @@
{ field: 'period', width: 50, title: '期次' },
{
field: 'playApplyDate',
showOverflow: 'tooltip',
title: '到期日',
},
{
field: 'repayStatus',
showOverflow: 'tooltip',
title: '状态',
width: 70,
slots: {
......@@ -413,6 +422,7 @@
},
{
field: 'applyAmount',
showOverflow: 'tooltip',
title: '金额',
slots: {
default: ({ row, rowIndex }) => {
......
......@@ -661,7 +661,7 @@
const sumNum = (costForm, type) => {
let total = 0;
for (let i = 0; i < costForm.length; i++) {
total = add(total, costForm[i][type]);
total = add(total, costForm[i][type] || 0);
}
return total;
};
......@@ -690,11 +690,20 @@
title: '案件ID',
showOverflow: 'tooltip',
width: 80,
slots: {
default: ({ row }) => {
return <>{row.loans.map((v) => v.caseId).join(',')}</>;
},
},
},
{
field: 'loans.loanPlatform.name',
showOverflow: 'tooltip',
title: '借款机构',
slots: {
default: ({ row }) => {
return <>{row.loans.map((v) => v.loanPlatform.name).join(',')}</>;
},
},
},
{
field: 'totalRepayAmount',
......@@ -828,11 +837,21 @@
field: 'caseId',
title: '案件ID',
showOverflow: 'tooltip',
slots: {
default: ({ row }) => {
return <>{row.reduceRecords.map((v) => v.loan.caseId).join(',')}</>;
},
},
},
{
field: 'reduceAmount',
title: '减免金额',
showOverflow: 'tooltip',
slots: {
default: ({ row }) => {
return <>{row.reduceRecords.map((v) => v.reduceAmount).join(',')}</>;
},
},
},
{
field: 'totalReduceAmount',
......
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