Commit 96f8b634 authored by 沈翠玲's avatar 沈翠玲

业务审批

parent e7d1641f
...@@ -308,9 +308,15 @@ ...@@ -308,9 +308,15 @@
width: 60, width: 60,
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
if (row.cpe?.username) {
return (
<>{row.cpe?.username}</>
);
} else {
return ( return (
<>{Array.from(new Set(row.loans.map((v) => v?.cpe?.username))).join(',')}</> <>{Array.from(new Set(row.loans.map((v) => v?.cpe?.username))).join(',')}</>
); );
}
}, },
}, },
// search: { el: 'input', props: { clearable: true }, key: 'cpeName', labelWidth: 78 }, // search: { el: 'input', props: { clearable: true }, key: 'cpeName', labelWidth: 78 },
...@@ -319,9 +325,15 @@ ...@@ -319,9 +325,15 @@
showOverflow: 'tooltip', showOverflow: 'tooltip',
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
if (row.tenant?.name) {
return (
<>{row.tenant?.name}</>
);
} else {
return ( return (
<>{Array.from(new Set(row.loans.map((v) => v?.tenant?.name))).join(',')}</> <>{Array.from(new Set(row.loans.map((v) => v?.tenant?.name))).join(',')}</>
); );
}
}, },
}, },
enum: () => getTenantPage({ current: 1, size: 999999999, status: 'enable' }), enum: () => getTenantPage({ current: 1, size: 999999999, status: 'enable' }),
......
...@@ -255,9 +255,15 @@ ...@@ -255,9 +255,15 @@
width: 60, width: 60,
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
if (row.cpe?.username) {
return (
<>{row.cpe?.username}</>
);
} else {
return ( return (
<>{Array.from(new Set(row.reduceRecords.map((v) => v.loan?.cpe?.username))).join(',')}</> <>{Array.from(new Set(row.reduceRecords.map((v) => v.loan?.cpe?.username))).join(',')}</>
); );
}
}, },
}, },
// search: { el: 'input', props: { clearable: true }, key: 'cpeName', labelWidth: 78 }, // search: { el: 'input', props: { clearable: true }, key: 'cpeName', labelWidth: 78 },
...@@ -266,9 +272,16 @@ ...@@ -266,9 +272,16 @@
showOverflow: 'tooltip', showOverflow: 'tooltip',
slots: { slots: {
default: ({ row }) => { default: ({ row }) => {
if (row.tenant?.name) {
return (
<>{row.tenant?.name}</>
);
} else {
return ( return (
<>{Array.from(new Set(row.reduceRecords.map((v) => v.loan?.tenant?.name))).join(',')}</> <>{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' }),
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
import { reactive, ref } from 'vue'; import { reactive, ref } from 'vue';
import { getRepairRecord, RepairRecordStatusByIds } from '@/api/property'; import { getRepairRecord, RepairRecordStatusByIds } from '@/api/property';
import { ElMessageBox, ElMessage, ElButton } from 'element-plus'; import { ElMessageBox, ElMessage, ElButton } from 'element-plus';
import { getTenantPage } from '@/api/tenant';
const tabledata = ref([]); const tabledata = ref([]);
const showModal = ref(false); const showModal = ref(false);
...@@ -144,6 +145,34 @@ ...@@ -144,6 +145,34 @@
labelWidth: 95, labelWidth: 95,
}, },
}, },
{
title: 'CPE',
showOverflow: 'tooltip',
width: 60,
slots: {
default: ({ row }) => {
return (
<>{row.cpe?.username}</>
);
},
},
// search: { el: 'input', props: { clearable: true }, key: 'cpeName', labelWidth: 78 },
},
{
showOverflow: 'tooltip',
slots: {
default: ({ row }) => {
return (
<>{row.tenant?.name}</>
);
},
},
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: 'kinship', field: 'kinship',
title: '与债权人关系', title: '与债权人关系',
......
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
} else if (row.stages && row.stages.loans) { } else if (row.stages && row.stages.loans) {
return <>{Array.from(new Set(row.stages.loans.map((v) => v?.cpe?.username))).join(',')}</>; return <>{Array.from(new Set(row.stages.loans.map((v) => v?.cpe?.username))).join(',')}</>;
} else { } else {
return <>{row.loan?.cpe?.username}</>; return <>{row.cpe?.username}</>;
} }
}, },
}, },
...@@ -157,15 +157,15 @@ ...@@ -157,15 +157,15 @@
if (row.reduce && row.reduce.reduceRecords) { if (row.reduce && row.reduce.reduceRecords) {
return ( return (
<> <>
{Array.from(new Set(row.reduce.reduceRecords.map((v) => v.loan?.tenant?.username))).join( {Array.from(new Set(row.reduce.reduceRecords.map((v) => v.loan?.tenant?.name))).join(
',' ','
)} )}
</> </>
); );
} else if (row.stages && row.stages.loans) { } else if (row.stages && row.stages.loans) {
return <>{Array.from(new Set(row.stages.loans.map((v) => v?.tenant?.username))).join(',')}</>; return <>{Array.from(new Set(row.stages.loans.map((v) => v?.tenant?.name))).join(',')}</>;
} else { } else {
return <>{row.loan?.tenant?.username}</>; return <>{row.tenant?.name}</>;
} }
}, },
}, },
......
...@@ -46,6 +46,8 @@ ...@@ -46,6 +46,8 @@
import { getRepairRecord, importExcel } from '@/api/property'; import { getRepairRecord, importExcel } from '@/api/property';
import { Upload } from '@element-plus/icons-vue'; import { Upload } from '@element-plus/icons-vue';
import { ElMessage } from 'element-plus'; import { ElMessage } from 'element-plus';
import { getTenantPage } from '@/api/tenant';
const uploadRef = ref(); const uploadRef = ref();
const caseLRef = ref(); const caseLRef = ref();
...@@ -191,6 +193,34 @@ ...@@ -191,6 +193,34 @@
); );
}, },
}, },
{
title: 'CPE',
showOverflow: 'tooltip',
width: 60,
slots: {
default: ({ row }) => {
return (
<>{row.cpe?.username}</>
);
},
},
// search: { el: 'input', props: { clearable: true }, key: 'cpeName', labelWidth: 78 },
},
{
showOverflow: 'tooltip',
slots: {
default: ({ row }) => {
return (
<>{row.tenant?.name}</>
);
},
},
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: 'repairStatus', field: 'repairStatus',
title: '是否修复', title: '是否修复',
......
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