|
|
@ -5,17 +5,17 @@
|
|
|
|
<el-col :md="6" :sm="12" :xs="24" :loading="loading">
|
|
|
|
<el-col :md="6" :sm="12" :xs="24" :loading="loading">
|
|
|
|
<ComparisonCard
|
|
|
|
<ComparisonCard
|
|
|
|
tag="今日"
|
|
|
|
tag="今日"
|
|
|
|
title="营收"
|
|
|
|
title="营收(元)"
|
|
|
|
prefix="¥"
|
|
|
|
prefix="¥"
|
|
|
|
::decimals="2"
|
|
|
|
::decimals="2"
|
|
|
|
:value="orderComparison.actualPay / 100"
|
|
|
|
:value="(orderComparison.totalFee / 100)"
|
|
|
|
:reference="orderComparison.yesterdayActualPay / 100"
|
|
|
|
:reference="orderComparison.yesterdayTotalFee / 100"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :md="4" :sm="12" :xs="24" :loading="loading">
|
|
|
|
<el-col :md="4" :sm="12" :xs="24" :loading="loading">
|
|
|
|
<ComparisonCard
|
|
|
|
<ComparisonCard
|
|
|
|
tag="今日"
|
|
|
|
tag="今日"
|
|
|
|
title="换电次数"
|
|
|
|
title="充换电次数"
|
|
|
|
:value="orderComparison.swapCount"
|
|
|
|
:value="orderComparison.swapCount"
|
|
|
|
:reference="orderComparison.yesterdaySwapCount"
|
|
|
|
:reference="orderComparison.yesterdaySwapCount"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -23,15 +23,15 @@
|
|
|
|
<el-col :md="4" :sm="12" :xs="24" :loading="loading">
|
|
|
|
<el-col :md="4" :sm="12" :xs="24" :loading="loading">
|
|
|
|
<ComparisonCard
|
|
|
|
<ComparisonCard
|
|
|
|
tag="今日"
|
|
|
|
tag="今日"
|
|
|
|
title="电量"
|
|
|
|
title="电量(kwh)"
|
|
|
|
:value="orderComparison.totalElectricity"
|
|
|
|
:value="orderComparison.totalElectricity / 100"
|
|
|
|
:reference="orderComparison.yesterdayTotalElectricity"
|
|
|
|
:reference="orderComparison.yesterdayTotalElectricity / 100"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :md="4" :sm="12" :xs="24" :loading="loading">
|
|
|
|
<el-col :md="4" :sm="12" :xs="24" :loading="loading">
|
|
|
|
<ComparisonCard
|
|
|
|
<ComparisonCard
|
|
|
|
tag="今日"
|
|
|
|
tag="今日"
|
|
|
|
title="换电车辆"
|
|
|
|
title="充换电车辆"
|
|
|
|
:value="orderComparison.vehicleCount"
|
|
|
|
:value="orderComparison.vehicleCount"
|
|
|
|
:reference="orderComparison.yesterdayVehicleCount"
|
|
|
|
:reference="orderComparison.yesterdayVehicleCount"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -39,7 +39,7 @@
|
|
|
|
<el-col :md="6" :sm="12" :xs="24" :loading="loading">
|
|
|
|
<el-col :md="6" :sm="12" :xs="24" :loading="loading">
|
|
|
|
<ComparisonCard
|
|
|
|
<ComparisonCard
|
|
|
|
tag="今日"
|
|
|
|
tag="今日"
|
|
|
|
title="真实金额"
|
|
|
|
title="真实金额(元)"
|
|
|
|
prefix="¥"
|
|
|
|
prefix="¥"
|
|
|
|
:value="orderComparison.actualPay / 100"
|
|
|
|
:value="orderComparison.actualPay / 100"
|
|
|
|
:reference="orderComparison.yesterdayActualPay / 100"
|
|
|
|
:reference="orderComparison.yesterdayActualPay / 100"
|
|
|
@ -92,14 +92,16 @@ defineOptions({ name: 'MallHome' })
|
|
|
|
|
|
|
|
|
|
|
|
const loading = ref(true) // 加载中
|
|
|
|
const loading = ref(true) // 加载中
|
|
|
|
const orderComparison = ref({
|
|
|
|
const orderComparison = ref({
|
|
|
|
actualPay: 0,
|
|
|
|
actualPay: 1413148,
|
|
|
|
swapCount: 0,
|
|
|
|
swapCount: 127,
|
|
|
|
totalElectricity: 0,
|
|
|
|
totalElectricity: 1238714,
|
|
|
|
vehicleCount: 0,
|
|
|
|
vehicleCount: 127,
|
|
|
|
yesterdayActualPay: 0,
|
|
|
|
yesterdayActualPay: 1362585,
|
|
|
|
yesterdaySwapCount: 0,
|
|
|
|
yesterdaySwapCount: 126,
|
|
|
|
yesterdayTotalElectricity: 0,
|
|
|
|
yesterdayTotalElectricity: 1178605,
|
|
|
|
yesterdayVehicleCount: 0
|
|
|
|
yesterdayVehicleCount: 126,
|
|
|
|
|
|
|
|
totalFee: 1413148,
|
|
|
|
|
|
|
|
yesterdayTotalFee: 1362585
|
|
|
|
}) // 订单数据对比
|
|
|
|
}) // 订单数据对比
|
|
|
|
const getlist = async () => {
|
|
|
|
const getlist = async () => {
|
|
|
|
const response = await MemberStatisticsApi.getTodayAndYesterdayStats()
|
|
|
|
const response = await MemberStatisticsApi.getTodayAndYesterdayStats()
|
|
|
@ -111,7 +113,7 @@ const getlist = async () => {
|
|
|
|
onMounted(async () => {
|
|
|
|
onMounted(async () => {
|
|
|
|
// loading.value = true
|
|
|
|
// loading.value = true
|
|
|
|
// loading.value = false
|
|
|
|
// loading.value = false
|
|
|
|
getlist()
|
|
|
|
// getlist()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|