|
|
@@ -113,8 +113,8 @@
|
|
|
:span-method="objectSpanMethod">
|
|
|
<el-table-column
|
|
|
v-for="(item) in finalGroup"
|
|
|
- :key="item.key"
|
|
|
- :prom="item.prom"
|
|
|
+ :key="item.prop"
|
|
|
+ :prop="item.prop"
|
|
|
:label="item.label">
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -138,18 +138,18 @@ export default {
|
|
|
ticketTypeIdList: [], // 票种
|
|
|
otaSourceNameList: []
|
|
|
},
|
|
|
- groupKeys: [{ value: 'orderDateDay', label: '统计日期' },],
|
|
|
+ groupKeys: [{ value: 'orderDateDay', label: '统计日期' }],
|
|
|
finalGroup: [
|
|
|
- { prop: 'otaSourceName', label: '销售渠道', values: 'otaSourceName' },
|
|
|
- { prop: 'ticketTypeName', label: '票种', values: 'ticketTypeName' },
|
|
|
- { prop: 'unitPrice', label: '单价', values: 'unitPrice' },
|
|
|
- { prop: 'cancelCount', label: '退票数量', values: 'cancelCount' },
|
|
|
- { prop: 'cancelNum', label: '退票人数', values: 'cancelNum' },
|
|
|
- { prop: 'cancelPrice', label: '退票金额', values: 'cancelPrice' },
|
|
|
- { prop: 'cancelSettlementPrice', label: '退票结算金额', values: 'cancelSettlementPrice' },
|
|
|
- { prop: 'orderDateDay', label: '统计日期',values:'orderDateDay' }
|
|
|
-],
|
|
|
- selectKeys: ['orderDateDay'], // 默认选中
|
|
|
+ { prop: 'otaSourceName', label: '销售渠道', values: 'otaSourceName' },
|
|
|
+ { prop: 'ticketTypeName', label: '票种', values: 'ticketTypeName' },
|
|
|
+ { prop: 'unitPrice', label: '单价', values: 'unitPrice' },
|
|
|
+ { prop: 'cancelCount', label: '退票数量', values: 'cancelCount' },
|
|
|
+ { prop: 'cancelNum', label: '退票人数', values: 'cancelNum' },
|
|
|
+ { prop: 'cancelPrice', label: '退票金额', values: 'cancelPrice' },
|
|
|
+ { prop: 'cancelSettlementPrice', label: '退票结算金额', values: 'cancelSettlementPrice' },
|
|
|
+ { prop: 'orderDateDay', label: '统计日期', values: 'orderDateDay' }
|
|
|
+ ],
|
|
|
+ selectKeys: ['orderDateDay'], // 默认选中
|
|
|
tableData: [],
|
|
|
otaSourceList: [],
|
|
|
loading: false
|
|
|
@@ -254,21 +254,20 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getList () {
|
|
|
-
|
|
|
- if (this.selectKeys.length == 0) {
|
|
|
+ if (this.selectKeys.length === 0) {
|
|
|
this.finalGroup = [
|
|
|
- { prop: 'otaSourceName', label: '订单渠道',values:'otaSourceName' },
|
|
|
- { prop: 'ticketTypeName', label: '票种名称',values:'ticketTypeName' },
|
|
|
- { prop: 'unitPrice', label: '单价' ,values:'unitPrice'},
|
|
|
- { prop: 'checkCount', label: '检票数量' ,values:'checkCount'},
|
|
|
- { prop: 'checkNum', label: '检票人数',values:'checkNum' },
|
|
|
- { prop: 'checkPrice', label: '检票金额' ,values:'checkPrice'},
|
|
|
- { prop: 'orderDateDay', label: '统计日期',values:'orderDateDay' }
|
|
|
- ]
|
|
|
+ { prop: 'otaSourceName', label: '订单渠道', values: 'otaSourceName' },
|
|
|
+ { prop: 'ticketTypeName', label: '票种名称', values: 'ticketTypeName' },
|
|
|
+ { prop: 'unitPrice', label: '单价', values: 'unitPrice' },
|
|
|
+ { prop: 'checkCount', label: '检票数量', values: 'checkCount' },
|
|
|
+ { prop: 'checkNum', label: '检票人数', values: 'checkNum' },
|
|
|
+ { prop: 'checkPrice', label: '检票金额', values: 'checkPrice' },
|
|
|
+ { prop: 'orderDateDay', label: '统计日期', values: 'orderDateDay' }
|
|
|
+ ]
|
|
|
} else {
|
|
|
- this.finalGroup = [...this.finalGroup].sort((a, b) =>
|
|
|
- (this.selectKeys.includes(b.prop) ? 1 : 0) - (this.selectKeys.includes(a.prop) ? 1 : 0)
|
|
|
-);
|
|
|
+ this.finalGroup = [...this.finalGroup].sort((a, b) =>
|
|
|
+ (this.selectKeys.includes(b.prop) ? 1 : 0) - (this.selectKeys.includes(a.prop) ? 1 : 0)
|
|
|
+ )
|
|
|
}
|
|
|
|
|
|
this.loading = true
|