Compare commits
2 Commits
d4c859847e
...
5585ace367
Author | SHA1 | Date | |
---|---|---|---|
![]() |
5585ace367 | ||
![]() |
344e1d79d7 |
@ -388,6 +388,39 @@ const routes = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/broadcast',
|
||||||
|
component: Layout,
|
||||||
|
redirect: '/broadcast/banner',
|
||||||
|
meta: {
|
||||||
|
title: '广告管理',
|
||||||
|
icon: 'iconfont icon-guanliyuan',
|
||||||
|
roles: ['admin', 'editor'],
|
||||||
|
tapName: 'admin'
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: '/broadcast/banner',
|
||||||
|
component: () => import('@/views/layout/components/main/broadcast/banner'),
|
||||||
|
meta: {
|
||||||
|
title: 'banner设置',
|
||||||
|
icon: 'iconfont icon-yonghuguanli',
|
||||||
|
roles: ['admin', 'editor'],
|
||||||
|
tapName: 'admin'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/broadcast/notice',
|
||||||
|
component: () => import('@/views/layout/components/main/broadcast/notice'),
|
||||||
|
meta: {
|
||||||
|
title: '滚动通知设置',
|
||||||
|
icon: 'iconfont icon-yonghuguanli',
|
||||||
|
roles: ['admin', 'editor'],
|
||||||
|
tapName: 'admin'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/order',
|
path: '/order',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
|
31
src/views/layout/components/main/broadcast/banner.vue
Normal file
31
src/views/layout/components/main/broadcast/banner.vue
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
banner
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Banner',
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@import "@/styles/theme.scss";
|
||||||
|
|
||||||
|
</style>
|
31
src/views/layout/components/main/broadcast/notice.vue
Normal file
31
src/views/layout/components/main/broadcast/notice.vue
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
notice
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Notice',
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@import "@/styles/theme.scss";
|
||||||
|
|
||||||
|
</style>
|
@ -103,6 +103,7 @@ export default {
|
|||||||
const res = await getOrderList(orderSerch)
|
const res = await getOrderList(orderSerch)
|
||||||
if (res.data.status === 1) {
|
if (res.data.status === 1) {
|
||||||
this.orderList = res.data.orderList
|
this.orderList = res.data.orderList
|
||||||
|
console.log(this.orderList)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('获取订单列表失败')
|
this.$message.error('获取订单列表失败')
|
||||||
@ -119,7 +120,7 @@ export default {
|
|||||||
*/
|
*/
|
||||||
getSummaries () {
|
getSummaries () {
|
||||||
const sum = this.orderList.reduce((acc, order) => {
|
const sum = this.orderList.reduce((acc, order) => {
|
||||||
return acc + (order.total_price - order.refund_price)
|
return acc + (Number(order.total_price) + Number(order.transport_price) + Number(order.pack_price) - Number(order.refund_price))
|
||||||
}, 0)
|
}, 0)
|
||||||
const total = this.orderList.length
|
const total = this.orderList.length
|
||||||
return ['合计', '', '', '', '', `共 ${total}单 ${formatPrice(sum)}元`]
|
return ['合计', '', '', '', '', `共 ${total}单 ${formatPrice(sum)}元`]
|
||||||
|
@ -286,7 +286,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 日收款订单 营业额总和
|
// 日收款订单 营业额总和
|
||||||
dayPaidTotal () {
|
dayPaidTotal () {
|
||||||
return formatPrice(this.dayPaid.reduce((total, item) => total + Number(item.total_price) - Number(item.refund_price), 0))
|
return formatPrice(this.dayPaid.reduce((total, item) => total + Number(item.total_price) + Number(item.transport_price) + Number(item.pack_price) - Number(item.refund_price), 0))
|
||||||
},
|
},
|
||||||
// 过滤出 日 退款付点单
|
// 过滤出 日 退款付点单
|
||||||
dayRefund () {
|
dayRefund () {
|
||||||
@ -331,7 +331,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 月收款订单 营业额总和
|
// 月收款订单 营业额总和
|
||||||
monthPaidTotal () {
|
monthPaidTotal () {
|
||||||
return formatPrice(this.monthPaid.reduce((total, item) => total + Number(item.total_price) - Number(item.refund_price), 0))
|
return formatPrice(this.monthPaid.reduce((total, item) => total + Number(item.total_price) + Number(item.transport_price) + Number(item.pack_price) - Number(item.refund_price), 0))
|
||||||
},
|
},
|
||||||
// 过滤出 月 退款付点单
|
// 过滤出 月 退款付点单
|
||||||
monthRefund () {
|
monthRefund () {
|
||||||
@ -377,7 +377,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 年收款订单 营业额总和
|
// 年收款订单 营业额总和
|
||||||
yearPaidTotal () {
|
yearPaidTotal () {
|
||||||
return formatPrice(this.yearPaid.reduce((total, item) => total + Number(item.total_price) - Number(item.refund_price), 0))
|
return formatPrice(this.yearPaid.reduce((total, item) => total + Number(item.total_price) + Number(item.transport_price) + Number(item.pack_price) - Number(item.refund_price), 0))
|
||||||
},
|
},
|
||||||
// 过滤出 年 退款付点单
|
// 过滤出 年 退款付点单
|
||||||
yearRefund () {
|
yearRefund () {
|
||||||
|
Loading…
Reference in New Issue
Block a user