...
|
...
|
@@ -42,7 +42,8 @@ |
|
|
</filter-item>
|
|
|
</layout-filter>
|
|
|
<layout-list>
|
|
|
<Table border :columns="tableCols" :data="tableData"></Table>
|
|
|
<Table border :columns="tableCols" :data="tableData" show-summary></Table>
|
|
|
<Table border :columns="summaryColumn" :data="summaryInfo" :show-header="false"></Table>
|
|
|
<Page
|
|
|
:total="pageData.total"
|
|
|
:current="pageData.current"
|
...
|
...
|
@@ -229,6 +230,48 @@ export default { |
|
|
},
|
|
|
],
|
|
|
tableData: [],
|
|
|
summaryColumn: [
|
|
|
{
|
|
|
title: '账务ID',
|
|
|
key: 'summaryName',
|
|
|
width: 60,
|
|
|
align: 'center',
|
|
|
},
|
|
|
{},
|
|
|
{},
|
|
|
{},
|
|
|
{},
|
|
|
{},
|
|
|
{},
|
|
|
{},
|
|
|
{},
|
|
|
{},
|
|
|
{
|
|
|
title: '商家应收汇总',
|
|
|
key: 'shopDeserveAmount',
|
|
|
align: 'center',
|
|
|
},
|
|
|
{
|
|
|
title: '提现服务费汇总',
|
|
|
key: 'withdrawServiceAmount',
|
|
|
align: 'center',
|
|
|
},
|
|
|
{
|
|
|
title: '交易服务费汇总',
|
|
|
key: 'serviceAmount',
|
|
|
align: 'center',
|
|
|
},
|
|
|
|
|
|
{
|
|
|
title: '商家实收汇总',
|
|
|
key: 'shopNetAmount',
|
|
|
align: 'center',
|
|
|
},
|
|
|
{},
|
|
|
{},
|
|
|
{},
|
|
|
],
|
|
|
summaryInfo: [],
|
|
|
pageData: {
|
|
|
total: 0,
|
|
|
current: 1,
|
...
|
...
|
@@ -300,10 +343,16 @@ export default { |
|
|
},
|
|
|
//获取列表数据
|
|
|
list() {
|
|
|
this.financeService.shopBillList(this.currentSearchParams).then(ret => {
|
|
|
this.tableData = _.get(ret, 'data.records', []);
|
|
|
this.pageData.total = _.get(ret, 'data.totalCount', 0);
|
|
|
this.pageData.current = _.get(ret, 'data.pageNo', 1);
|
|
|
Promise.all([
|
|
|
this.financeService.shopBillList(this.currentSearchParams),
|
|
|
this.financeService.querySummaryInfo(this.currentSearchParams),
|
|
|
]).then(result => {
|
|
|
this.tableData = _.get(result[0], 'data.records', []);
|
|
|
this.pageData.total = _.get(result[0], 'data.totalCount', 0);
|
|
|
this.pageData.current = _.get(result[0], 'data.pageNo', 1);
|
|
|
const summaryInfo = _.get(result[1], 'data', {});
|
|
|
this.summaryInfo = [];
|
|
|
this.summaryInfo.push({ ...summaryInfo, summaryName: '汇总' });
|
|
|
});
|
|
|
},
|
|
|
//导出列表
|
...
|
...
|
|