v2.36.6 优化统计数值
This commit is contained in:
parent
4176b7fb32
commit
f87d09ee68
|
|
@ -1,9 +1,9 @@
|
||||||
const install = (Vue, vm) => {
|
const install = (Vue, vm) => {
|
||||||
uni.setStorageSync('deptId', 100);
|
uni.setStorageSync('deptId', 100);
|
||||||
Vue.prototype.$u.http.setConfig({
|
Vue.prototype.$u.http.setConfig({
|
||||||
// baseUrl: 'http://192.168.1.14:4101', //键辉本地
|
baseUrl: 'http://192.168.1.6:4101', //键辉本地
|
||||||
// baseUrl: 'http://192.168.2.221:4101', //景森本地
|
// baseUrl: 'http://192.168.2.221:4101', //景森本地
|
||||||
baseUrl: 'https://ele.ccttiot.com/prod-api', //线上 小鹿appid: wx8a05cf95418a6859 小兔骑骑appid:wx38f96c87621a87ab 遇福兴https://fu.chuantewulian.cn wxcb1d6a5d9dca8bbe
|
// baseUrl: 'https://ele.ccttiot.com/prod-api', //线上 小鹿appid: wx8a05cf95418a6859 小兔骑骑appid:wx38f96c87621a87ab 遇福兴https://fu.chuantewulian.cn wxcb1d6a5d9dca8bbe
|
||||||
// baseUrl: 'https://cc.ccttiot.com/prod-api', //叉车线上
|
// baseUrl: 'https://cc.ccttiot.com/prod-api', //叉车线上
|
||||||
// baseUrl:'https://ysd.chuantewulian.cn/prod-api', //嵛山岛线上api 嵛山岛appid:wx4d178f8c80348214
|
// baseUrl:'https://ysd.chuantewulian.cn/prod-api', //嵛山岛线上api 嵛山岛appid:wx4d178f8c80348214
|
||||||
loadingText: '努力加载中~',
|
loadingText: '努力加载中~',
|
||||||
|
|
|
||||||
|
|
@ -41,88 +41,88 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="decice_cont">
|
<view class="decice_cont">
|
||||||
<view hover-class="app-tap-hover" class="cont" @click="changeidx('0')">
|
<view hover-class="app-tap-hover" class="cont" @click="changeidx('0')">
|
||||||
<view class="text" :class="statusidx=='0'?'act1':''">
|
<view class="text" :class="statusidx=='0'?'act1':''">
|
||||||
仓库中
|
仓库中
|
||||||
</view>
|
|
||||||
<view class="text" :class="statusidx=='-0'?'act1':''">
|
|
||||||
{{qbobj.device.statusCount[0] == null ? '0' : qbobj.device.statusCount[0]}}
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view hover-class="app-tap-hover" class="cont" @click="changeidx('1')">
|
<view class="text" :class="statusidx=='-0'?'act1':''">
|
||||||
<view class="text" :class="statusidx==1?'act1':''">
|
{{(qbobj.deviceStatusMap && qbobj.deviceStatusMap[0]) || '0'}}
|
||||||
待租
|
|
||||||
</view>
|
|
||||||
<view class="text" :class="statusidx==1?'act1':''">
|
|
||||||
{{qbobj.device.statusCount[1] == null ? '0' : qbobj.device.statusCount[1]}}
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view hover-class="app-tap-hover" class="cont" @click="changeidx('3')">
|
</view>
|
||||||
<view class="text" :class="statusidx==3?'act1':''">
|
<view hover-class="app-tap-hover" class="cont" @click="changeidx('1')">
|
||||||
骑行中
|
<view class="text" :class="statusidx==1?'act1':''">
|
||||||
</view>
|
待租
|
||||||
<view class="text" :class="statusidx==3?'act1':''">
|
|
||||||
{{qbobj.device.statusCount[3] == null ? '0' : qbobj.device.statusCount[3]}}
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view hover-class="app-tap-hover" class="cont" @click="changeidx('4')">
|
<view class="text" :class="statusidx==1?'act1':''">
|
||||||
<view class="text" :class="statusidx==4?'act1':''">
|
{{(qbobj.deviceStatusMap && qbobj.deviceStatusMap[1]) || '0'}}
|
||||||
临时锁车
|
|
||||||
</view>
|
|
||||||
<view class="text" :class="statusidx==4?'act1':''">
|
|
||||||
{{qbobj.device.statusCount[4] == null ? '0' : qbobj.device.statusCount[4]}}
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view hover-class="app-tap-hover" class="cont" @click="changeidx('8')">
|
</view>
|
||||||
<view class="text" :class="statusidx==8?'act1':''">
|
<view hover-class="app-tap-hover" class="cont" @click="changeidx('3')">
|
||||||
禁用中
|
<view class="text" :class="statusidx==3?'act1':''">
|
||||||
</view>
|
骑行中
|
||||||
<view class="text" :class="statusidx==8?'act1':''">
|
|
||||||
{{qbobj.device.statusCount[8] == null ? '0' : qbobj.device.statusCount[8]}}
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view hover-class="app-tap-hover" class="cont" @click="changeidx('6')">
|
<view class="text" :class="statusidx==3?'act1':''">
|
||||||
<view class="text" :class="statusidx==6?'act1':''">
|
{{(qbobj.deviceStatusMap && qbobj.deviceStatusMap[3]) || '0'}}
|
||||||
调度中
|
|
||||||
</view>
|
|
||||||
<view class="text" :class="statusidx==6?'act1':''">
|
|
||||||
{{qbobj.device.statusCount[6] == null ? '0' : qbobj.device.statusCount[6]}}
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
<view hover-class="app-tap-hover" class="cont" @click="changeidx('4')">
|
||||||
|
<view class="text" :class="statusidx==4?'act1':''">
|
||||||
|
临时锁车
|
||||||
|
</view>
|
||||||
|
<view class="text" :class="statusidx==4?'act1':''">
|
||||||
|
{{(qbobj.deviceStatusMap && qbobj.deviceStatusMap[4]) || '0'}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view hover-class="app-tap-hover" class="cont" @click="changeidx('8')">
|
||||||
|
<view class="text" :class="statusidx==8?'act1':''">
|
||||||
|
禁用中
|
||||||
|
</view>
|
||||||
|
<view class="text" :class="statusidx==8?'act1':''">
|
||||||
|
{{(qbobj.deviceStatusMap && qbobj.deviceStatusMap[8]) || '0'}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view hover-class="app-tap-hover" class="cont" @click="changeidx('6')">
|
||||||
|
<view class="text" :class="statusidx==6?'act1':''">
|
||||||
|
调度中
|
||||||
|
</view>
|
||||||
|
<view class="text" :class="statusidx==6?'act1':''">
|
||||||
|
{{(qbobj.deviceStatusMap && qbobj.deviceStatusMap[6]) || '0'}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<view hover-class="app-tap-hover" class="cont" @click="changeidx('20')">
|
<view hover-class="app-tap-hover" class="cont" @click="changeidx('20')">
|
||||||
<view class="text" :class="statusidx==20?'act1':''">
|
<view class="text" :class="statusidx==20?'act1':''">
|
||||||
离线
|
离线
|
||||||
</view>
|
|
||||||
<view class="text" :class="statusidx==20?'act1':''">
|
|
||||||
{{qbobj.device.onlineStatusCount[0] == null ? '0' : qbobj.device.onlineStatusCount[0]}}
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view hover-class="app-tap-hover" class="cont" @click="changeidx('10')">
|
<view class="text" :class="statusidx==20?'act1':''">
|
||||||
<view class="text" :class="statusidx==10?'act1':''">
|
{{(qbobj.deviceOnlineStatusMap && qbobj.deviceOnlineStatusMap[0]) || '0'}}
|
||||||
在线
|
|
||||||
</view>
|
|
||||||
<view class="text" :class="statusidx==10?'act1':''">
|
|
||||||
{{qbobj.device.onlineStatusCount[1] == null ? '0' : qbobj.device.onlineStatusCount[1]}}
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view hover-class="app-tap-hover" class="cont" @click="changeidx('9')">
|
</view>
|
||||||
<view class="text" :class="statusidx==9?'act1':''">
|
<view hover-class="app-tap-hover" class="cont" @click="changeidx('10')">
|
||||||
强制锁车
|
<view class="text" :class="statusidx==10?'act1':''">
|
||||||
</view>
|
在线
|
||||||
<view class="text" :class="statusidx==9?'act1':''">
|
|
||||||
{{qbobj.device.statusCount[9] == null ? '0' : qbobj.device.statusCount[9]}}
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view hover-class="app-tap-hover" class="cont" @click="changeidx('7')">
|
<view class="text" :class="statusidx==10?'act1':''">
|
||||||
<view class="text" :class="statusidx==7?'act1':''">
|
{{(qbobj.deviceOnlineStatusMap && qbobj.deviceOnlineStatusMap[1]) || '0'}}
|
||||||
全部设备
|
|
||||||
</view>
|
|
||||||
<view class="text" :class="statusidx==7?'act1':''">
|
|
||||||
{{qbobj.device.count == null ? '--' : qbobj.device.count}}
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view hover-class="app-tap-hover" class="cont" @click="changeidx('9')">
|
||||||
|
<view class="text" :class="statusidx==9?'act1':''">
|
||||||
|
强制锁车
|
||||||
|
</view>
|
||||||
|
<view class="text" :class="statusidx==9?'act1':''">
|
||||||
|
{{(qbobj.deviceStatusMap && qbobj.deviceStatusMap[9]) || '0'}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view hover-class="app-tap-hover" class="cont" @click="changeidx('7')">
|
||||||
|
<view class="text" :class="statusidx==7?'act1':''">
|
||||||
|
全部设备
|
||||||
|
</view>
|
||||||
|
<view class="text" :class="statusidx==7?'act1':''">
|
||||||
|
{{qbobj.deviceCount == null ? '--' : qbobj.deviceCount}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="fixdivce" v-if="nearbyMarkers.length>1&&showdevList">
|
<view class="fixdivce" v-if="nearbyMarkers.length>1&&showdevList">
|
||||||
<view class="scrollable-content">
|
<view class="scrollable-content">
|
||||||
|
|
@ -276,15 +276,15 @@ let rangeDebounceId = null; // 滑动筛选debounce
|
||||||
this.getqb()
|
this.getqb()
|
||||||
this.getmarks()
|
this.getmarks()
|
||||||
},
|
},
|
||||||
// 请求全部运营统计数据
|
// 请求全部运营统计数据
|
||||||
getqb() {
|
getqb() {
|
||||||
let StatKeys = 'device_status_count,device_online_status_count,device_count'
|
const keys = 'device_status_count,device_online_status_count,device_count'
|
||||||
this.$u.get(`/dashboard/stat?keys=${StatKeys}&areaId=${this.areaId}`).then(res => {
|
this.$u.get(`/dashboard/revenueStat?keys=${keys}&areaId=${this.areaId}`).then(res => {
|
||||||
if (res.code== 200) {
|
if (res.code== 200) {
|
||||||
this.qbobj = res.data
|
this.qbobj = res.data
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
status(item) {
|
status(item) {
|
||||||
if (item.status == 0) {
|
if (item.status == 0) {
|
||||||
return '仓库中'
|
return '仓库中'
|
||||||
|
|
|
||||||
|
|
@ -268,14 +268,18 @@
|
||||||
|
|
||||||
// 请求个人信息
|
// 请求个人信息
|
||||||
getUserInfo(){
|
getUserInfo(){
|
||||||
this.$u.get(`/getInfo`).then((res) => {
|
this.$u.get(`/getInfo`).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.userInfo = res.user
|
this.userInfo = res.user
|
||||||
this.gettxfs()
|
this.gettxfs()
|
||||||
this.successAmount = res.stat.withdraw.successAmount == null ? 0 : res.stat.withdraw.successAmount
|
}
|
||||||
this.waitDivideAmount = res.stat.bonus.waitDivideAmount == null ? 0 : res.stat.bonus.waitDivideAmount
|
})
|
||||||
}
|
this.$u.get('/app/dashboard/userStat').then((res) => {
|
||||||
})
|
if (res.code == 200) {
|
||||||
|
this.successAmount = res.data.withdrawSuccessAmount == null ? 0 : res.data.withdrawSuccessAmount
|
||||||
|
this.waitDivideAmount = res.data.bonusWaitDivideAmount == null ? 0 : res.data.bonusWaitDivideAmount
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 输入提现金额计算
|
// 输入提现金额计算
|
||||||
ckinpt() {
|
ckinpt() {
|
||||||
|
|
|
||||||
|
|
@ -265,9 +265,8 @@ export default {
|
||||||
return v == null ? 0 : v
|
return v == null ? 0 : v
|
||||||
},
|
},
|
||||||
statProcessing() {
|
statProcessing() {
|
||||||
const m = this.yunyingobj.orderStatusMap
|
const v = this.yunyingobj.orderProcessingCount
|
||||||
if (!m || m.PROCESSING == null) return 0
|
return v == null ? 0 : v
|
||||||
return m.PROCESSING
|
|
||||||
},
|
},
|
||||||
complaintBadge() {
|
complaintBadge() {
|
||||||
const n = Number(this.weinum)
|
const n = Number(this.weinum)
|
||||||
|
|
@ -380,7 +379,7 @@ export default {
|
||||||
if (!this.areaId || !this.userinfo.userId) {
|
if (!this.areaId || !this.userinfo.userId) {
|
||||||
return Promise.resolve()
|
return Promise.resolve()
|
||||||
}
|
}
|
||||||
let StatKeys = 'order_actual_amount,order_count,order_end_status_count,order_status_count,bonus_actual_amount,order_ridding_fee,order_deduction_fee,order_dispatch_fee,order_manage_fee,order_refund_amount'
|
let StatKeys = 'order_actual_amount,order_count,order_finished_count,order_processing_count,bonus_actual_amount,order_ridding_fee,order_deduction_fee,order_dispatch_fee,order_manage_fee,order_refund_amount'
|
||||||
const url = `/dashboard/revenueStat?keys=${StatKeys}&dateRange=${this.kstime + ',' + this.jstime}&userId=${this.userinfo.userId}&areaId=${this.areaId}`
|
const url = `/dashboard/revenueStat?keys=${StatKeys}&dateRange=${this.kstime + ',' + this.jstime}&userId=${this.userinfo.userId}&areaId=${this.areaId}`
|
||||||
this._beginStatsLoading()
|
this._beginStatsLoading()
|
||||||
return this.$u
|
return this.$u
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -25,18 +25,18 @@
|
||||||
<view class="zh">
|
<view class="zh">
|
||||||
账户余额(元)
|
账户余额(元)
|
||||||
</view>
|
</view>
|
||||||
<view class="price">
|
<view class="price">
|
||||||
¥{{user.balance == null ? '0.00' : (Number(user.balance) + Number(waitDivideAmount)).toFixed(2)}}
|
¥{{(currentBalance + waitDivideAmount).toFixed(2)}}
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="rt">
|
|
||||||
<image src="https://api.ccttiot.com/smartmeter/img/static/uWybWHvfNvmi7X0hp93I" mode=""></image>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bot">
|
<view class="rt">
|
||||||
<view class="botlt">
|
<image src="https://api.ccttiot.com/smartmeter/img/static/uWybWHvfNvmi7X0hp93I" mode=""></image>
|
||||||
可提现 ¥{{user.balance == null ? '0.00' : user.balance.toFixed(2)}}
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="bot">
|
||||||
|
<view class="botlt">
|
||||||
|
可提现 ¥{{currentBalance.toFixed(2)}}
|
||||||
|
</view>
|
||||||
<view class="botrt">
|
<view class="botrt">
|
||||||
累计提现 ¥{{successAmount == null ? '0.00' : Number(successAmount).toFixed(2)}}
|
累计提现 ¥{{successAmount == null ? '0.00' : Number(successAmount).toFixed(2)}}
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -116,8 +116,9 @@
|
||||||
fuwuewm:false,
|
fuwuewm:false,
|
||||||
appimg: this.$store.state.app.imgConfig,
|
appimg: this.$store.state.app.imgConfig,
|
||||||
user:{},
|
user:{},
|
||||||
waitDivideAmount:'',
|
currentBalance: 0,
|
||||||
successAmount:'',
|
waitDivideAmount: 0,
|
||||||
|
successAmount: 0,
|
||||||
licenseInfo: null, // 营业执照信息
|
licenseInfo: null, // 营业执照信息
|
||||||
authTypes: [] // 认证类型数组
|
authTypes: [] // 认证类型数组
|
||||||
}
|
}
|
||||||
|
|
@ -187,14 +188,19 @@
|
||||||
},
|
},
|
||||||
// 获取个人信息
|
// 获取个人信息
|
||||||
getinfo(){
|
getinfo(){
|
||||||
this.$u.get("/getInfo").then((res) => {
|
this.$u.get("/getInfo").then((res) => {
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
this.user = res.user
|
this.user = res.user
|
||||||
this.authTypes = res.user.authTypes || []
|
this.authTypes = res.user.authTypes || []
|
||||||
this.waitDivideAmount = res.stat.bonus.waitDivideAmount == null ? 0 : res.stat.bonus.waitDivideAmount
|
}
|
||||||
this.successAmount = res.stat.withdraw.successAmount == null ? 0 : Number(res.stat.withdraw.successAmount)
|
})
|
||||||
}
|
this.$u.get("/app/dashboard/userStat").then((res) => {
|
||||||
})
|
if(res.code == 200){
|
||||||
|
this.currentBalance = res.data.currentBalance == null ? 0 : Number(res.data.currentBalance)
|
||||||
|
this.waitDivideAmount = res.data.bonusWaitDivideAmount == null ? 0 : Number(res.data.bonusWaitDivideAmount)
|
||||||
|
this.successAmount = res.data.withdrawSuccessAmount == null ? 0 : Number(res.data.withdrawSuccessAmount)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 名称:将名称的第二位替换为 * 展示
|
// 名称:将名称的第二位替换为 * 展示
|
||||||
maskName(name) {
|
maskName(name) {
|
||||||
|
|
|
||||||
|
|
@ -665,7 +665,7 @@
|
||||||
"path": "guanli/yunying",
|
"path": "guanli/yunying",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": true,
|
||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user