|
@ -50,7 +50,12 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div style="display: flex; margin-top: 20px; height: calc(85% - 20px)"> |
|
|
<div style="display: flex; margin-top: 20px; height: calc(85% - 20px)"> |
|
|
<div class="detailTable"> |
|
|
<div class="detailTable"> |
|
|
<ns-view-list-table v-bind="tableConfig" :model="data" ref="mainRef" :scroll="{ x: 1280 }"> |
|
|
<ns-view-list-table |
|
|
|
|
|
class="content-table" |
|
|
|
|
|
v-bind="tableConfig" |
|
|
|
|
|
:model="data" |
|
|
|
|
|
ref="mainRef" |
|
|
|
|
|
:scroll="{ x: 1280 }"> |
|
|
<template #bodyCell="{ column, text, record }"> |
|
|
<template #bodyCell="{ column, text, record }"> |
|
|
<template v-if="column.dataIndex === 'accountType'"> |
|
|
<template v-if="column.dataIndex === 'accountType'"> |
|
|
<span v-if="record.accountType">{{ record.accountType.label }}</span> |
|
|
<span v-if="record.accountType">{{ record.accountType.label }}</span> |
|
@ -76,9 +81,6 @@ |
|
|
<a-table :columns="totalColumns" :data-source="totalData" bordered :pagination="false"> |
|
|
<a-table :columns="totalColumns" :data-source="totalData" bordered :pagination="false"> |
|
|
<template #bodyCell="{ column, text }"> |
|
|
<template #bodyCell="{ column, text }"> |
|
|
<span>{{ text || '-' }}</span> |
|
|
<span>{{ text || '-' }}</span> |
|
|
<!-- <template v-if="column.dataIndex === 'name'"> |
|
|
|
|
|
<a>{{ text }}</a> |
|
|
|
|
|
</template> --> |
|
|
|
|
|
</template> |
|
|
</template> |
|
|
</a-table> |
|
|
</a-table> |
|
|
</div> |
|
|
</div> |
|
@ -209,6 +211,7 @@ |
|
|
transactionTypeValue.value = selectedOptions.flatMap((group) => |
|
|
transactionTypeValue.value = selectedOptions.flatMap((group) => |
|
|
group.flatMap((node) => [node.value, ...(node.children?.map((child) => child.value) || [])]), |
|
|
group.flatMap((node) => [node.value, ...(node.children?.map((child) => child.value) || [])]), |
|
|
); |
|
|
); |
|
|
|
|
|
// transactionTypeValue.value = value.flat() |
|
|
}; |
|
|
}; |
|
|
const searchTableList = () => { |
|
|
const searchTableList = () => { |
|
|
year.value = queryParams.value.year; |
|
|
year.value = queryParams.value.year; |
|
@ -481,50 +484,77 @@ |
|
|
title: '资产类别', |
|
|
title: '资产类别', |
|
|
dataIndex: 'accountType', |
|
|
dataIndex: 'accountType', |
|
|
width: 100, |
|
|
width: 100, |
|
|
|
|
|
customRender: (text: any) => { |
|
|
|
|
|
return text.text !== undefined ? text : '-'; |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '交易方式', |
|
|
title: '交易方式', |
|
|
dataIndex: 'transactionTypeName', |
|
|
dataIndex: 'transactionTypeName', |
|
|
width: 100, |
|
|
width: 100, |
|
|
|
|
|
customRender: (text: any) => { |
|
|
|
|
|
return text.text !== undefined ? text : '-'; |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '交易日期', |
|
|
title: '交易日期', |
|
|
dataIndex: 'transactionDate', |
|
|
dataIndex: 'transactionDate', |
|
|
width: 100, |
|
|
width: 100, |
|
|
sorter: (a, b) => a.transactionDate - b.transactionDate, |
|
|
sorter: (a, b) => a.transactionDate - b.transactionDate, |
|
|
|
|
|
customRender: (text: any) => { |
|
|
|
|
|
return text.text !== undefined ? text : '-'; |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '本期收入(tCO2)', |
|
|
title: '本期收入(tCO2)', |
|
|
dataIndex: 'income', |
|
|
dataIndex: 'income', |
|
|
width: 150, |
|
|
width: 150, |
|
|
sorter: (a, b) => a.income - b.income, |
|
|
sorter: (a, b) => a.income - b.income, |
|
|
|
|
|
customRender: (text: any) => { |
|
|
|
|
|
return text.text !== undefined ? text : '-'; |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '本期支出(tCO2)', |
|
|
title: '本期支出(tCO2)', |
|
|
dataIndex: 'expenditure', |
|
|
dataIndex: 'expenditure', |
|
|
width: 150, |
|
|
width: 150, |
|
|
sorter: (a, b) => a.expenditure - b.expenditure, |
|
|
sorter: (a, b) => a.expenditure - b.expenditure, |
|
|
|
|
|
customRender: (text: any) => { |
|
|
|
|
|
return text.text !== undefined ? text : '-'; |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '发生金额(¥)', |
|
|
title: '发生金额(¥)', |
|
|
width: 150, |
|
|
width: 150, |
|
|
dataIndex: 'amountIncurredValue', |
|
|
dataIndex: 'amountIncurredValue', |
|
|
|
|
|
customRender: (text: any) => { |
|
|
|
|
|
return text.text !== undefined ? text : '-'; |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '交易对象', |
|
|
title: '交易对象', |
|
|
width: 100, |
|
|
width: 100, |
|
|
dataIndex: 'tradingPartner', |
|
|
dataIndex: 'tradingPartner', |
|
|
|
|
|
customRender: (text: any) => { |
|
|
|
|
|
return text.text !== '' ? text : '-'; |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '更新人', |
|
|
title: '更新人', |
|
|
width: 100, |
|
|
width: 100, |
|
|
dataIndex: 'updateUser', |
|
|
dataIndex: 'updateUser', |
|
|
|
|
|
customRender: (text: any) => { |
|
|
|
|
|
return text.text !== undefined ? text : '-'; |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '更新时间', |
|
|
title: '更新时间', |
|
|
width: 150, |
|
|
width: 150, |
|
|
ellipsis: true, |
|
|
ellipsis: true, |
|
|
dataIndex: 'updateTime', |
|
|
dataIndex: 'updateTime', |
|
|
|
|
|
customRender: (text: any) => { |
|
|
|
|
|
return text.text !== undefined ? text : '-'; |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
columnActions: { |
|
|
columnActions: { |
|
|