update 统计报表-会议打包统计变更

This commit is contained in:
danshihao
2024-03-13 12:03:13 +08:00
parent ed774ce3c3
commit 0d47f166d7
@@ -54,6 +54,7 @@
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" :pagination="ipagination"
:loading="loading" :loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, columnWidth: 60}"
@change="handleTableChange" @change="handleTableChange"
:class="dataSource.length === 0 ? 'show-scroll' : ''" :class="dataSource.length === 0 ? 'show-scroll' : ''"
class="j-table-force-nowrap main-table"> class="j-table-force-nowrap main-table">
@@ -164,19 +165,35 @@ const defaultTableColumns = [
dataIndex: 'confirmAmount', dataIndex: 'confirmAmount',
scopedSlots: { customRender: 'allMoney' } scopedSlots: { customRender: 'allMoney' }
}, },
// {
// title: '开票金额',
// align: 'center',
// width: 150,
// sorter: true,
// dataIndex: 'billMoney',
// scopedSlots: { customRender: 'allMoney' }
// },
// {
// title: '到账金额',
// align: 'center',
// width: 140,
// dataIndex: 'comeAllMoney',
// sorter: true,
// scopedSlots: {customRender: 'allMoney'}
// },
{ {
title: '开票金额', title: '会议金额A',
align: 'center', align: 'center',
width: 150, width: 150,
sorter: true, sorter: true,
dataIndex: 'billMoney', dataIndex: 'meetingCostsA',
scopedSlots: { customRender: 'allMoney' } scopedSlots: { customRender: 'allMoney' }
}, },
{ {
title: '到账金额', title: '会议金额B',
align: 'center', align: 'center',
width: 140, width: 150,
dataIndex: 'comeAllMoney', dataIndex: 'meetingCostsB',
sorter: true, sorter: true,
scopedSlots: {customRender: 'allMoney'} scopedSlots: {customRender: 'allMoney'}
} }
@@ -199,6 +216,12 @@ const firstColumnFooter = {
width: 60 width: 60
} }
// 防止错位和复选框同宽占位
const selectionColumnFooter = {
width: 60,
dataIndex: 'selection'
}
export default { export default {
name: 'MeetingPackStatistics', name: 'MeetingPackStatistics',
components: { PageHeaderTitle, JYearDate }, components: { PageHeaderTitle, JYearDate },
@@ -216,7 +239,7 @@ export default {
sm: { span: 10 } sm: { span: 10 }
}, },
columns: [firstColumnTop, ...defaultTableColumns], columns: [firstColumnTop, ...defaultTableColumns],
columnsFooter: [firstColumnFooter, ...defaultTableColumns], columnsFooter: [firstColumnFooter, selectionColumnFooter, ...defaultTableColumns],
footerDataSource: [], footerDataSource: [],
// 给定当年作为来款年份默认查询条件 // 给定当年作为来款年份默认查询条件
queryParam: { queryParam: {
@@ -280,7 +303,9 @@ export default {
allMoney: res.result.sumOfMoney || '0.00' + '', allMoney: res.result.sumOfMoney || '0.00' + '',
comeAllMoney: res.result.sumOfReallyMoney || '0.00' + '', comeAllMoney: res.result.sumOfReallyMoney || '0.00' + '',
billMoney: res.result.sumOfBillMoney || '0.00' + '', billMoney: res.result.sumOfBillMoney || '0.00' + '',
confirmAmount: res.result.sumOfConfirmAmount || '0.00' + '' confirmAmount: res.result.sumOfConfirmAmount || '0.00' + '',
meetingCostsA: res.result.sumOfMeetingCostsA || '0.00' + '',
meetingCostsB: res.result.sumOfMeetingCostsB || '0.00' + ''
} }
this.footerDataSource = [obj] this.footerDataSource = [obj]
if (res.result.pageList.total) { if (res.result.pageList.total) {