【类 型】:fix
【原 因】:订单统计中 后加的打包费 运费 没有算在总额里面 【过 程】: 【影 响】:
This commit is contained in:
parent
d4c859847e
commit
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>
|
@ -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