+
分析
{{analyseText}}
@@ -50,23 +50,23 @@
@@ -130,7 +130,7 @@
{{ single }}
-
+
@@ -292,7 +292,7 @@
-
+
@@ -395,6 +395,7 @@ export default {
headMsg:null,
searchEndTime:'',
searchText:'',// 展示全省情況时显示的日期内容
+ haveFun:{}
}
},
components: {
@@ -685,6 +686,14 @@ export default {
tabList.push({name:item.SERVERPART_REGIONNAME,value:index+1})
})
this.tabList = tabList
+ this.haveFun = {
+ car:total.Result_Data.HASPILOTLOUNGE,
+ charge:total.Result_Data.HASCHARGE ,
+ bady:total.Result_Data.HASMOTHER ,
+ gusetHome:total.Result_Data.HASGUESTROOM
+ }
+ console.log('total',total)
+ console.log('this.haveFun',this.haveFun)
}
},
async changeAllProvinceSearch(e){
diff --git a/pages/commercialBI/commercialType.vue b/pages/commercialBI/commercialType.vue
index 07dcff8..7aa4d0a 100644
--- a/pages/commercialBI/commercialType.vue
+++ b/pages/commercialBI/commercialType.vue
@@ -19,8 +19,8 @@ export default {
{img:'https://eshangtech.com/ShopICO/ahyd-BID/index/business_icon.svg',url:'/pages/commercialBI/managePortrait',text:'经营'},
{img:'https://eshangtech.com/ShopICO/ahyd-BID/index/trade.svg',url:'/pages/commercialBI/businessPortrait',text:'交易'},
{img:'https://eshangtech.com/ShopICO/ahyd-BID/index/brand.svg',url:'/pages/commercialBI/formatPortrait',text:'品牌'},
- {img:'/static/images/newCommercialBI/newExamineIcon.svg',url:`/pages/newamine/index?come=index&type=${1}&time=${this.time}`,text:'考核'},
- {img:'/static/images/newCommercialBI/inspectionIcon.svg',url:`/pages/newamine/index?come=index&type=${2}&time=${this.time}`,text:'巡检'},
+ {img:'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/newExamineIcon.svg',url:`/pages/newamine/index?come=index&type=${1}&time=${this.time}`,text:'考核'},
+ {img:'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/inspectionIcon.svg',url:`/pages/newamine/index?come=index&type=${2}&time=${this.time}`,text:'巡检'},
],
showTypeList:[],
selectIndex: 5,
diff --git a/pages/commercialBI/components/headerTop.vue b/pages/commercialBI/components/headerTop.vue
index 24acc0b..6d17bfd 100644
--- a/pages/commercialBI/components/headerTop.vue
+++ b/pages/commercialBI/components/headerTop.vue
@@ -35,22 +35,22 @@
-
-
+
+
司机之家
-
-
+
+
充电桩
-
-
+
+
母婴室
-
-
+
+
客房
-
+
司机之家
-
+
充电桩
-
+
母婴室
-
+
客房
@@ -147,6 +147,15 @@ export default {
type:String,
default:''
},
+ haveFun:{
+ type:Object,
+ default:{
+ car:false,
+ charge:false,
+ bady:false,
+ gusetHome:false
+ }
+ }
},
data() {
return {
diff --git a/pages/commercialBI/guestPortrait.vue b/pages/commercialBI/guestPortrait.vue
index 09a0f9b..4c9a04c 100644
--- a/pages/commercialBI/guestPortrait.vue
+++ b/pages/commercialBI/guestPortrait.vue
@@ -5,7 +5,8 @@
@@ -26,7 +27,7 @@
{{ single }}
-
+
@@ -85,7 +86,7 @@ export default {
topBg:'linear-gradient(180deg, #A1D0C1 0%, #B1D9CD 100%);',//顶部组件的悬浮背景色
title:'客群画像',//页面标题
bgColor:'180deg, #30C8ED 0%, #0B9353 100%',//标签背景颜色
- bgUrl:'/static/images/newCommercialBI/guestPortraitBg.svg',//背景图片路径
+ bgUrl:'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/guestPortraitBg.svg',//背景图片路径
page:'/pages/commercialBI/guestPortrait',
@@ -93,14 +94,14 @@ export default {
topLeftBg:'linear-gradient(180deg, rgba(48, 200, 237, 0.2) 0%, rgba(11, 147, 83, 0.2) 100%)',// 类别背景
topLeftColor:'#0E9760',// 类别文字颜色
iconObj:{
- car:'/static/images/newCommercialBI/carGuest.svg',
- charge:'/static/images/newCommercialBI/chargeGuest.svg',
- bady:'/static/images/newCommercialBI/badyGuest.svg',
- guestRoom:'/static/images/newCommercialBI/guestRoomGuest.svg'
+ car:'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/carGuest.svg',
+ charge:'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/chargeGuest.svg',
+ bady:'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/badyGuest.svg',
+ guestRoom:'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/guestRoomGuest.svg'
},
haveIconObj:{
- have:'/static/images/newCommercialBI/haveGuest.svg',
- noHave:'/static/images/newCommercialBI/noHaveGuest.svg'
+ have:'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/haveGuest.svg',
+ noHave:'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/noHaveGuest.svg'
},
time:'',//跳转携带的时间
menu:{},//手机配置信息
@@ -117,6 +118,7 @@ export default {
single:'',//显示时间
thisMonth:'',//几月
endData:'', // 结束时间
+ haveFun:{}
}
},
onLoad(option){
@@ -167,6 +169,8 @@ export default {
this.getConsumptionLevelList()
//业态偏好
this.getBusinessTypeList()
+ // 服务区基本信息
+ this.getServiceInfo()
},
onUnload() {
this.$util.addUserBehavior()
@@ -194,7 +198,22 @@ export default {
this.getConsumptionLevelList()
//业态偏好
this.getBusinessTypeList()
+ // 服务区基本信息
+ this.getServiceInfo()
},
+ //获取服务区基本信息
+ async getServiceInfo(){
+ let req = {
+ ServerpartId:this.serviceInfo.Serverpart_ID
+ }
+ const total = await request.$webGet('CommercialApi/BaseInfo/GetServerpartInfo',req)
+ this.haveFun = {
+ car:total.Result_Data.HASPILOTLOUNGE,
+ charge:total.Result_Data.HASCHARGE ,
+ bady:total.Result_Data.HASMOTHER ,
+ gusetHome:total.Result_Data.HASGUESTROOM
+ }
+ },
//当前最近的服务区数据
async nearestService(){
let seat = uni.getStorageSync('seatInfo');
diff --git a/pages/commercialBI/managePortrait.vue b/pages/commercialBI/managePortrait.vue
index 03d7e37..affe495 100644
--- a/pages/commercialBI/managePortrait.vue
+++ b/pages/commercialBI/managePortrait.vue
@@ -5,7 +5,8 @@
@@ -87,7 +88,7 @@
比计划:
@@ -136,7 +137,7 @@
比计划:
@@ -206,20 +207,20 @@ export default {
selectTab:0,//当前选中
title:'经营画像',//页面标题
bgColor: '180deg, #996CFF 0%, #5D43F8 100%',
- bgUrl: '/static/images/newCommercialBI/managePortraitBg.svg',//背景图片路径
+ bgUrl: 'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/managePortraitBg.svg',//背景图片路径
page:'/pages/commercialBI/managePortrait',
detailBoxBg:'linear-gradient(136deg, #F3EFFE 0%, #FFFFFF 100%);',
topLeftBg:'linear-gradient(180deg, rgba(153, 108, 255, 0.2) 0%, rgba(93, 67, 248, 0.2) 100%)',// 类别背景
topLeftColor:'#6347F9',// 类别文字颜色
iconObj:{
- car:'/static/images/newCommercialBI/carPortrait.svg',
- charge:'/static/images/newCommercialBI/chargePortraitBg.svg',
- bady:'/static/images/newCommercialBI/babyPortrait.svg',
- guestRoom:'/static/images/newCommercialBI/guestRoomPortrait.svg'
+ car:'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/carPortrait.svg',
+ charge:'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/chargePortraitBg.svg',
+ bady:'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/babyPortrait.svg',
+ guestRoom:'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/guestRoomPortrait.svg'
},
haveIconObj:{
- have:'/static/images/newCommercialBI/havePortrait.svg',
- noHave:'/static/images/newCommercialBI/noHavePortrait.svg'
+ have:'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/havePortrait.svg',
+ noHave:'https://eshangtech.com/ShopICO/ahyd-BID/newCommercialBI/noHavePortrait.svg'
},
time: '',//跳转携带的时间
menu: {},//手机配置信息
@@ -244,7 +245,8 @@ export default {
monthNoticeText:'',
yearNoticeText:'',
lastDay:'',
- month:''
+ month:'',
+ haveFun:{}
}
},
onLoad(option) {
@@ -295,11 +297,26 @@ export default {
//问号显示的内容
this.handleNoticeMonth()
this.handleNoticeYear()
+ // 服务区基本信息
+ this.getServiceInfo()
},
onUnload() {
this.$util.addUserBehavior()
},
methods:{
+ //获取服务区基本信息
+ async getServiceInfo(){
+ let req = {
+ ServerpartId:this.serviceInfo.Serverpart_ID
+ }
+ const total = await request.$webGet('CommercialApi/BaseInfo/GetServerpartInfo',req)
+ this.haveFun = {
+ car:total.Result_Data.HASPILOTLOUNGE,
+ charge:total.Result_Data.HASCHARGE ,
+ bady:total.Result_Data.HASMOTHER ,
+ gusetHome:total.Result_Data.HASGUESTROOM
+ }
+ },
// 拿到服务区详情页需要的数据 然后带着跳转过去
handleGoServiceInfo(type){
let serviceInfo = this.serviceInfo
diff --git a/pages/index/components/rateCharts.vue b/pages/index/components/rateCharts.vue
index ecc82ff..ac83ce4 100644
--- a/pages/index/components/rateCharts.vue
+++ b/pages/index/components/rateCharts.vue
@@ -30,14 +30,25 @@ export default {
handler(value){
this.preferPath = ''
let sum = value[0] + value[1]
- let firstRate = Number(((value[0] / sum)*100).toFixed(2))
- let secondRate = 100 - Number(firstRate)
- let res = {
- series:[{
- data:[{name:'驿站营收',value:firstRate},{name:'未完成',value:secondRate}]
- }]
+ if (sum===0){
+ let res = {
+ series:[{
+ data:[{name:'驿站营收',value:0},{name:'未完成',value:0}]
+ }]
+ }
+ console.log('res',res)
+ this.drawCharts('rate',res)
+ }else{
+ let firstRate = Number(((value[0] / sum)*100).toFixed(2))
+ let secondRate = 100 - Number(firstRate)
+ let res = {
+ series:[{
+ data:[{name:'驿站营收',value:firstRate},{name:'未完成',value:secondRate}]
+ }]
+ }
+ console.log('res',res)
+ this.drawCharts('rate',res)
}
- this.drawCharts('rate',res)
},
}
},
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 349d06b..b2437aa 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -51,8 +51,8 @@
-
-
+
+
{{showTableData.add?showTableData.add:'-'}}%
@@ -108,13 +108,13 @@
- 驿站营收/万元
- 3,512.54
+ 驿达入账/万元
+ -
- 商家营收/万元
- 2,615.68
+ 商家入账/万元
+ -
@@ -133,8 +133,8 @@
-
-
+
+
@@ -195,7 +195,7 @@
-
+
{{showTableData.yearYoY?showTableData.yearYoY+'%':''}}
同比
@@ -346,7 +346,7 @@
{{yesObj.CashPay?yesObj.CashPay:''}}
-
+
{{yesObjCompared?yesObjCompared>0?'+'+yesObjCompared+'%':yesObjCompared+'%':'-'}}
@@ -355,7 +355,7 @@
-
+
{{lastDay}}
@@ -364,8 +364,8 @@
服务区信息
-
-
+
+
@@ -373,39 +373,39 @@
-
+
经营报表
-
+
-
+
经营品牌库
-
+
财务报表
-
+
-
+
数智统计
-
-
+
+
-
+
现场管理
-
-
+
+
-
+
节日特刊
-
-
+
+
@@ -454,7 +454,7 @@
/辆
@@ -490,7 +490,7 @@
/人
本月自营计划
-
+
{{monthNoticeText}}
@@ -101,7 +102,7 @@
{{plan.percentageMonth?plan.percentageMonth + '%':'-'}}
-年度自营计划
-
+
{{yearNoticeText}}
@@ -150,7 +151,7 @@
{{plan.percentageYear?plan.percentageYear + '%':'-'}}
-
-
+
{{item.VEHICLE_RATE}}%
-
+
{{item.VEHICLE_RATE}}%