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

优化

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