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