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

业务审批增加字段

parent ac42f53d
...@@ -138,6 +138,7 @@ ...@@ -138,6 +138,7 @@
import { getByStagesPage, byStagesflowStatusByIds } from '@/api/property'; import { getByStagesPage, byStagesflowStatusByIds } from '@/api/property';
import { onMounted } from 'vue'; import { onMounted } from 'vue';
import { ElMessageBox, ElMessage, ElButton } from 'element-plus'; import { ElMessageBox, ElMessage, ElButton } from 'element-plus';
import { getTenantPage } from '@/api/tenant';
const ProTableRef = ref(); const ProTableRef = ref();
const showModal = ref(false); const showModal = ref(false);
...@@ -301,6 +302,34 @@ ...@@ -301,6 +302,34 @@
search: { el: 'input', key: 'borrower', labelWidth: 80 }, search: { el: 'input', key: 'borrower', labelWidth: 80 },
width: 90, width: 90,
}, },
{
title: 'CPE',
showOverflow: 'tooltip',
width: 60,
slots: {
default: ({ row }) => {
return (
<>{Array.from(new Set(row.loans.map((v) => v?.cpe?.username))).join(',')}</>
);
},
},
// search: { el: 'input', props: { clearable: true }, key: 'cpeName', labelWidth: 78 },
},
{
showOverflow: 'tooltip',
slots: {
default: ({ row }) => {
return (
<>{Array.from(new Set(row.loans.map((v) => v?.tenant?.name))).join(',')}</>
);
},
},
enum: () => getTenantPage({ current: 1, size: 999999999, status: 'enable' }),
// search: { el: 'select', props: { filterable: true }, key: 'tenantId', labelWidth: 78 },
fieldNames: { label: 'name', value: 'id' },
title: '调解中心',
width: 100,
},
{ {
field: 'totalRepayAmount', field: 'totalRepayAmount',
showOverflow: 'tooltip', showOverflow: 'tooltip',
......
...@@ -116,6 +116,7 @@ ...@@ -116,6 +116,7 @@
import { getReducePage, flowStatusByIds } from '@/api/property'; import { getReducePage, flowStatusByIds } from '@/api/property';
import { onMounted } from 'vue'; import { onMounted } from 'vue';
import { ElMessageBox, ElMessage, ElButton } from 'element-plus'; import { ElMessageBox, ElMessage, ElButton } from 'element-plus';
import { getTenantPage } from '@/api/tenant';
const ProTableRef = ref(); const ProTableRef = ref();
const showModal = ref(false); const showModal = ref(false);
...@@ -249,17 +250,29 @@ ...@@ -249,17 +250,29 @@
width: 120, width: 120,
}, },
{ {
field: 'cpe.username',
title: 'CPE', title: 'CPE',
showOverflow: 'tooltip', showOverflow: 'tooltip',
width: 60, width: 60,
search: { el: 'input', props: { clearable: true }, key: 'cpeName', labelWidth: 78 }, slots: {
default: ({ row }) => {
return (
<>{Array.from(new Set(row.reduceRecords.map((v) => v.loan?.cpe?.username))).join(',')}</>
);
},
},
// search: { el: 'input', props: { clearable: true }, key: 'cpeName', labelWidth: 78 },
}, },
{ {
field: 'tenant.name',
showOverflow: 'tooltip', showOverflow: 'tooltip',
slots: {
default: ({ row }) => {
return (
<>{Array.from(new Set(row.reduceRecords.map((v) => v.loan?.tenant?.name))).join(',')}</>
);
},
},
enum: () => getTenantPage({ current: 1, size: 999999999, status: 'enable' }), enum: () => getTenantPage({ current: 1, size: 999999999, status: 'enable' }),
search: { el: 'select', props: { filterable: true }, key: 'tenantId', labelWidth: 78 }, // search: { el: 'select', props: { filterable: true }, key: 'tenantId', labelWidth: 78 },
fieldNames: { label: 'name', value: 'id' }, fieldNames: { label: 'name', value: 'id' },
title: '调解中心', title: '调解中心',
width: 100, width: 100,
......
...@@ -127,6 +127,54 @@ ...@@ -127,6 +127,54 @@
search: { el: 'input', key: 'borrower', labelWidth: 80 }, search: { el: 'input', key: 'borrower', labelWidth: 80 },
width: 90, width: 90,
}, },
{
title: 'CPE',
showOverflow: 'tooltip',
width: 60,
slots: {
default: ({ row }) => {
if (row.reduce && row.reduce.reduceRecords) {
return (
<>
{Array.from(new Set(row.reduce.reduceRecords.map((v) => v.loan?.cpe?.username))).join(
','
)}
</>
);
} else if (row.stages && row.stages.loans) {
return <>{Array.from(new Set(row.stages.loans.map((v) => v?.cpe?.username))).join(',')}</>;
} else {
return <>{row.loan?.cpe?.username}</>;
}
},
},
// search: { el: 'input', props: { clearable: true }, key: 'cpeName', labelWidth: 78 },
},
{
showOverflow: 'tooltip',
slots: {
default: ({ row }) => {
if (row.reduce && row.reduce.reduceRecords) {
return (
<>
{Array.from(new Set(row.reduce.reduceRecords.map((v) => v.loan?.tenant?.username))).join(
','
)}
</>
);
} else if (row.stages && row.stages.loans) {
return <>{Array.from(new Set(row.stages.loans.map((v) => v?.tenant?.username))).join(',')}</>;
} else {
return <>{row.loan?.tenant?.username}</>;
}
},
},
enum: () => getTenantPage({ current: 1, size: 999999999, status: 'enable' }),
// search: { el: 'select', props: { filterable: true }, key: 'tenantId', labelWidth: 78 },
fieldNames: { label: 'name', value: 'id' },
title: '调解中心',
width: 100,
},
{ {
field: 'id', field: 'id',
title: '还款记录ID', title: '还款记录ID',
......
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