|
|
@@ -61,7 +61,7 @@
|
|
|
</el-form-item>
|
|
|
<!-- 新增分组筛选项 -->
|
|
|
|
|
|
- <el-form-item
|
|
|
+ <el-form-item
|
|
|
label="分组筛选"
|
|
|
style="width:100%">
|
|
|
<el-checkbox-group
|
|
|
@@ -129,7 +129,7 @@ import { totalRowClassName } from '@/utils'
|
|
|
import moment from 'moment'
|
|
|
import { getSaleChannelList } from '@/api/order'
|
|
|
// import ReaderInput from '@/components/ReaderInput'
|
|
|
-// import draggable from 'vuedraggable'
|
|
|
+import draggable from 'vuedraggable'
|
|
|
// import moment from 'moment'
|
|
|
|
|
|
export default {
|
|
|
@@ -152,10 +152,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
+ draggable
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
- groupKeys: [{ value: 'orderDateDay', label: '统计日期' },],
|
|
|
+ groupKeys: [{ value: 'orderDateDay', label: '统计日期' }],
|
|
|
form: {
|
|
|
checkTimeBegin: new Date(moment().startOf('day').subtract(7, 'day').format('YYYY-MM-DD HH:mm:ss')),
|
|
|
checkTimeEnd: new Date(moment().endOf('day').format('YYYY-MM-DD HH:mm:ss')),
|
|
|
@@ -165,14 +166,14 @@ export default {
|
|
|
pageSize: 10
|
|
|
},
|
|
|
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' }
|
|
|
+ ],
|
|
|
selectKeys: ['orderDateDay'], // 默认选中
|
|
|
tableIndex: 1,
|
|
|
OrderIndexArr: [],
|
|
|
@@ -234,20 +235,20 @@ export default {
|
|
|
// return this.selectKeys.includes(i.value)
|
|
|
// })
|
|
|
|
|
|
- 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)
|
|
|
+ )
|
|
|
}
|
|
|
|
|
|
if (this.form.checkTimeBegin) {
|