|
|
@@ -45,9 +45,9 @@
|
|
|
|
|
|
|
|
|
<div class="trend-summary">
|
|
|
- 总实付服务费:
|
|
|
+ 总收益金额:
|
|
|
<el-tag type="success">{{ u.fmt.fmtMoney(state.homeOneExtra.payServiceAmount) }}元</el-tag>
|
|
|
- 总电量:
|
|
|
+ 总订单数量:
|
|
|
<el-tag type="danger">{{ state.homeOneExtra.totalPower }}Kwh</el-tag>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -108,7 +108,7 @@ const state = reactive({
|
|
|
{
|
|
|
num1: '0',
|
|
|
num2: '-12.32',
|
|
|
- num3: '今日洗车用电量(kwh)',
|
|
|
+ num3: '今日注册会员数(人)',
|
|
|
num4: 'fa fa-meetup',
|
|
|
color1: '#FF6462',
|
|
|
color2: '--next-color-primary-lighter',
|
|
|
@@ -117,7 +117,7 @@ const state = reactive({
|
|
|
{
|
|
|
num1: '0',
|
|
|
num2: '-12.32',
|
|
|
- num3: '今日洗车用水量(m³)',
|
|
|
+ num3: '今日收益金额(元)',
|
|
|
num4: 'fa fa-meetup',
|
|
|
color1: '#FF6462',
|
|
|
color2: '--next-color-primary-lighter',
|
|
|
@@ -126,7 +126,7 @@ const state = reactive({
|
|
|
{
|
|
|
num1: '0',
|
|
|
num2: '+42.32',
|
|
|
- num3: '今日订单总金额(元)',
|
|
|
+ num3: '今日洗车消费总金额(元)',
|
|
|
num4: 'iconfont icon-ditu',
|
|
|
color1: '#6690F9',
|
|
|
color2: '--next-color-success-lighter',
|
|
|
@@ -135,7 +135,7 @@ const state = reactive({
|
|
|
{
|
|
|
num1: '0',
|
|
|
num2: '-10.01',
|
|
|
- num3: '今日实付总服务费(元)',
|
|
|
+ num3: '订单平均消费金额(元)',
|
|
|
num4: 'fa fa-github-alt',
|
|
|
color1: '#FF6462',
|
|
|
color2: '--next-color-danger-lighter',
|
|
|
@@ -144,7 +144,7 @@ const state = reactive({
|
|
|
{
|
|
|
num1: '0',
|
|
|
num2: '-10.01',
|
|
|
- num3: '今日洗车人数',
|
|
|
+ num3: '今日订单数量(笔)',
|
|
|
num4: 'fa fa-github-alt',
|
|
|
color1: '#FF6462',
|
|
|
color2: '--next-color-danger-lighter',
|
|
|
@@ -153,7 +153,7 @@ const state = reactive({
|
|
|
{
|
|
|
num1: '0',
|
|
|
num2: '-10.01',
|
|
|
- num3: '今日洗车订单数(笔)',
|
|
|
+ num3: '洗车平均时长(分钟)',
|
|
|
num4: 'fa fa-github-alt',
|
|
|
color1: '#FF6462',
|
|
|
color2: '--next-color-danger-lighter',
|
|
|
@@ -336,7 +336,7 @@ const initPieChart = (dataMap: any) => {
|
|
|
const option = {
|
|
|
backgroundColor: state.charts.bgColor,
|
|
|
title: {
|
|
|
- text: '洗车站电桩状态',
|
|
|
+ text: '洗车设备状态',
|
|
|
x: 'left',
|
|
|
textStyle: {fontSize: '15', color: state.charts.color},
|
|
|
},
|
|
|
@@ -424,7 +424,7 @@ const initEchartsResize = () => {
|
|
|
};
|
|
|
|
|
|
const loadCurrentEquipmentStatus = () => {
|
|
|
- $get(`connector/statConnectorStatus`, {stationId: state.currentStationId}).then((res: any) => {
|
|
|
+ $get(`stat/washDeviceStatus`, {stationId: state.currentStationId}).then((res: any) => {
|
|
|
//console.log(res)
|
|
|
initPieChart(res || {});
|
|
|
})
|
|
|
@@ -435,7 +435,7 @@ const loadStationStat = () => {
|
|
|
let start = state.dateRange[0]
|
|
|
let end = state.dateRange[1]
|
|
|
let size = u.date.diff(new Date(start), new Date(end)) + 1;
|
|
|
- $post(`stat/dashboard`, {
|
|
|
+ $post(`stat/trend`, {
|
|
|
startTime: start,
|
|
|
endTime: end,
|
|
|
type: 'day',
|
|
|
@@ -449,16 +449,16 @@ const loadStationStat = () => {
|
|
|
}
|
|
|
|
|
|
const loadStationStatToday = () => {
|
|
|
- $get(`stat/stationTodayStat`, {stationId: state.currentStationId}).then((res: any) => {
|
|
|
+ $get(`stat/dashboard`, {stationId: state.currentStationId}).then((res: any) => {
|
|
|
//console.log(res)
|
|
|
if (!u.isEmptyOrNull(res)) {
|
|
|
- let {chargeUsers, totalOrders, totalPower, totalMoney, elecMoney, payServiceAmount} = res
|
|
|
- state.homeOne[0].num1 = totalPower;
|
|
|
- state.homeOne[1].num1 = u.fmt.fmtMoney(totalMoney);
|
|
|
- state.homeOne[2].num1 = u.fmt.fmtMoney(elecMoney);
|
|
|
- state.homeOne[3].num1 = u.fmt.fmtMoney(payServiceAmount);
|
|
|
- state.homeOne[4].num1 = chargeUsers;
|
|
|
- state.homeOne[5].num1 = totalOrders;
|
|
|
+ let {todayIncome, todayConsumptionAmount, todayRegisteredMembers, todayWashOrders, avgOrderPrice, avgOrderDuration} = res
|
|
|
+ state.homeOne[0].num1 = todayRegisteredMembers;
|
|
|
+ state.homeOne[1].num1 = u.fmt.fmtMoney(todayIncome);
|
|
|
+ state.homeOne[2].num1 = u.fmt.fmtMoney(todayConsumptionAmount);
|
|
|
+ state.homeOne[3].num1 = u.fmt.fmtMoney(avgOrderPrice);
|
|
|
+ state.homeOne[4].num1 = todayWashOrders;
|
|
|
+ state.homeOne[5].num1 = avgOrderDuration;
|
|
|
}
|
|
|
|
|
|
})
|