Compare commits
No commits in common. "5585ace3673084b3f1bdb6562991dacd85dcf9d1" and "d4c859847e3daea5a7d8e2e18f9b5597ca901398" have entirely different histories.
5585ace367
...
d4c859847e
@ -388,39 +388,6 @@ 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,
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
<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>
|
|
@ -1,31 +0,0 @@
|
|||||||
<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,7 +103,6 @@ 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('获取订单列表失败')
|
||||||
@ -120,7 +119,7 @@ export default {
|
|||||||
*/
|
*/
|
||||||
getSummaries () {
|
getSummaries () {
|
||||||
const sum = this.orderList.reduce((acc, order) => {
|
const sum = this.orderList.reduce((acc, order) => {
|
||||||
return acc + (Number(order.total_price) + Number(order.transport_price) + Number(order.pack_price) - Number(order.refund_price))
|
return acc + (order.total_price - 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.transport_price) + Number(item.pack_price) - Number(item.refund_price), 0))
|
return formatPrice(this.dayPaid.reduce((total, item) => total + Number(item.total_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.transport_price) + Number(item.pack_price) - Number(item.refund_price), 0))
|
return formatPrice(this.monthPaid.reduce((total, item) => total + Number(item.total_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.transport_price) + Number(item.pack_price) - Number(item.refund_price), 0))
|
return formatPrice(this.yearPaid.reduce((total, item) => total + Number(item.total_price) - Number(item.refund_price), 0))
|
||||||
},
|
},
|
||||||
// 过滤出 年 退款付点单
|
// 过滤出 年 退款付点单
|
||||||
yearRefund () {
|
yearRefund () {
|
||||||
|
Loading…
Reference in New Issue
Block a user