...
|
...
|
@@ -87,6 +87,7 @@ |
|
|
</layout-filter>
|
|
|
<layout-list>
|
|
|
<Table border :columns="tableCols" :data="tableData"></Table>
|
|
|
<Table border :columns="summaryColumn" :data="summaryInfo" :show-header="false"></Table>
|
|
|
<Page
|
|
|
:total="pageData.total"
|
|
|
:current="pageData.current"
|
...
|
...
|
@@ -181,10 +182,16 @@ export default { |
|
|
this.list(params);
|
|
|
},
|
|
|
list(params) {
|
|
|
this.financeService.shopWithdrawFreightList(params).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.shopWithdrawFreightList(params),
|
|
|
this.financeService.queryFreightBillSummary(params),
|
|
|
]).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: '汇总' });
|
|
|
});
|
|
|
},
|
|
|
getDetailById(id) {
|
...
|
...
|
|