|
|
|
|
@ -1,19 +1,18 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div style="padding: 0 20px">
|
|
|
|
|
<div ref="lxHeader">
|
|
|
|
|
<lx-header icon="md-apps" text="会员订单统计" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
|
|
|
|
|
<lx-header icon="md-apps" text="产品订单统计" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
|
|
|
|
|
<div slot="content"></div>
|
|
|
|
|
|
|
|
|
|
</lx-header>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<xy-table :total="total" :isPage='false' :list="list"
|
|
|
|
|
:table-item="table">
|
|
|
|
|
<template slot="btns">
|
|
|
|
|
<div></div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</xy-table>
|
|
|
|
|
<xy-table :total="total" :isPage='false' :list="list" :table-item="table">
|
|
|
|
|
<template slot="btns">
|
|
|
|
|
<div></div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</xy-table>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -26,8 +25,7 @@
|
|
|
|
|
Message
|
|
|
|
|
} from 'element-ui'
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
},
|
|
|
|
|
components: {},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
select: {
|
|
|
|
|
@ -39,31 +37,47 @@
|
|
|
|
|
prop: 'name',
|
|
|
|
|
label: '产品类型',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'total_order_person',
|
|
|
|
|
label: '下单人总数',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'total_order_all',
|
|
|
|
|
label: '下单总数',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'total_order',
|
|
|
|
|
label: '累计下单数'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'max_order',
|
|
|
|
|
label: '多次下单数'
|
|
|
|
|
label: '下单完成数'
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
async getTotal() {
|
|
|
|
|
const res = await reporttotal({
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
this.total = res.total
|
|
|
|
|
this.list = res
|
|
|
|
|
{
|
|
|
|
|
prop: 'max_order',
|
|
|
|
|
label: '多次下单人数',
|
|
|
|
|
formatter:(cell,data,value)=>{
|
|
|
|
|
return value?value:0
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: 'max_product.name',
|
|
|
|
|
label: '最多下单产品',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getTotal()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
async getTotal() {
|
|
|
|
|
const res = await reporttotal({
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
this.total = res.total
|
|
|
|
|
this.list = res
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getTotal()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|