This commit is contained in:
cclu 2023-11-28 18:25:28 +08:00
parent 0c0f5bb38f
commit 0f50b3f824
18 changed files with 173 additions and 281 deletions

View File

@ -41,12 +41,9 @@
}) })
let _this = this let _this = this
console.log('this.user.WeChat_MiniProToken',this.user.WeChat_MiniProToken)
if (this.user.WeChat_MiniProToken) { if (this.user.WeChat_MiniProToken) {
console.log('1')
this.memberLogin() this.memberLogin()
} else { } else {
console.log('2')
this.getLoginCode() this.getLoginCode()
} }
@ -85,7 +82,6 @@
// var nowRoute = '/' + currentPage.route // url // var nowRoute = '/' + currentPage.route // url
// this.$util.addUserBehavior({intoRoute: nowRoute, outtoRoute: ''}) // // this.$util.addUserBehavior({intoRoute: nowRoute, outtoRoute: ''}) //
// } // }
console.log('App Show')
// uni.hideTabBar() // uni.hideTabBar()
}, },
onHide: function(options) { onHide: function(options) {
@ -97,7 +93,6 @@
let nowRoute = '/' + currentPage.route // url let nowRoute = '/' + currentPage.route // url
this.$util.addUserBehavior( {intoRoute: '', outtoRoute:nowRoute}) // this.$util.addUserBehavior( {intoRoute: '', outtoRoute:nowRoute}) //
} }
console.log('App Hide')
} }
} }
</script> </script>

Binary file not shown.

View File

@ -211,7 +211,6 @@ function addUserBehaviorNew(obj) {
} }
obj.visitChannels = store.state.visitChannels obj.visitChannels = store.state.visitChannels
let userDate = store.state.userData let userDate = store.state.userData
console.log('userDate123',userDate)
let req = { let req = {
userName:userDate.UserName, userName:userDate.UserName,
phoneNumber:userDate.Membership_Phone, phoneNumber:userDate.Membership_Phone,
@ -222,7 +221,6 @@ function addUserBehaviorNew(obj) {
visitChannels:obj.visitChannels, visitChannels:obj.visitChannels,
behaviorRecordDesc:'' behaviorRecordDesc:''
} }
console.log('req',req)
request.$webGet('CommercialApi/UserBehavior/AddUserBehavior',req).then(() => { request.$webGet('CommercialApi/UserBehavior/AddUserBehavior',req).then(() => {
}) })
@ -366,7 +364,6 @@ function handleReduceAMonth(nowTime,newTime){
const newDate = new Date(newTime) const newDate = new Date(newTime)
let newY = newDate.getFullYear() let newY = newDate.getFullYear()
let newM = newDate.getMonth() + 1 let newM = newDate.getMonth() + 1
console.log('newM',newM)
let thisMonth = newM<10?'0'+newM:newM let thisMonth = newM<10?'0'+newM:newM
let howDay = this.getThisMonthDay(`${y}-${m}`) let howDay = this.getThisMonthDay(`${y}-${m}`)
@ -384,8 +381,6 @@ function handleReduceAMonth(nowTime,newTime){
if (newHowDay<10){ if (newHowDay<10){
newHowDay = '0' + newHowDay newHowDay = '0' + newHowDay
} }
console.log('handleReduceAMonth',newHowDay)
console.log('handleReduceAMonth',`${newY}-${newM}-${newHowDay}`)
return `${newY}-${newM}-${newHowDay}` return `${newY}-${newM}-${newHowDay}`
}else{ }else{
if (newM===nowM){ if (newM===nowM){
@ -395,8 +390,6 @@ function handleReduceAMonth(nowTime,newTime){
if (nowD<10){ if (nowD<10){
nowD = '0' + nowD nowD = '0' + nowD
} }
console.log('handleReduceAMonth',nowD)
console.log('handleReduceAMonth',`${newY}-${newM}-${nowD}`)
return `${newY}-${newM}-${nowD}` return `${newY}-${newM}-${nowD}`
}else{ }else{
if (newM<10){ if (newM<10){
@ -405,8 +398,6 @@ function handleReduceAMonth(nowTime,newTime){
if (newHowDay<10){ if (newHowDay<10){
newHowDay = '0' + newHowDay newHowDay = '0' + newHowDay
} }
console.log('handleReduceAMonth',newHowDay)
console.log('handleReduceAMonth',`${newY}-${newM}-${newHowDay}`)
return `${newY}-${newM}-${newHowDay}` return `${newY}-${newM}-${newHowDay}`
} }
} }
@ -419,9 +410,6 @@ function handleReduceAMonth(nowTime,newTime){
if (newHowDay<10){ if (newHowDay<10){
newHowDay = '0' + newHowDay newHowDay = '0' + newHowDay
} }
console.log('handleReduceAMonth',newHowDay)
console.log('handleReduceAMonth',`${newY}-${newM}-${newHowDay}`)
return `${newY}-${newM}-${newHowDay}` return `${newY}-${newM}-${newHowDay}`
}else{ }else{
if (newM<10){ if (newM<10){
@ -430,8 +418,6 @@ function handleReduceAMonth(nowTime,newTime){
if (d<10){ if (d<10){
d = '0' + d d = '0' + d
} }
console.log('handleReduceAMonth',d)
console.log('handleReduceAMonth',`${newY}-${newM}-${d}`)
return `${newY}-${newM}-${d}` return `${newY}-${newM}-${d}`
} }
}else{ }else{
@ -443,8 +429,6 @@ function handleReduceAMonth(nowTime,newTime){
if (nowD<10){ if (nowD<10){
nowD = '0' + nowD nowD = '0' + nowD
} }
console.log('handleReduceAMonth',nowD)
console.log('handleReduceAMonth',`${newY}-${newM}-${nowD}`)
return `${newY}-${newM}-${nowD}` return `${newY}-${newM}-${nowD}`
}else{ }else{
if (d<newHowDay){ if (d<newHowDay){
@ -454,8 +438,6 @@ function handleReduceAMonth(nowTime,newTime){
if (d<10){ if (d<10){
d = '0' + d d = '0' + d
} }
console.log('handleReduceAMonth',d)
console.log('handleReduceAMonth',`${newY}-${newM}-${d}`)
return `${newY}-${newM}-${d}` return `${newY}-${newM}-${d}`
}else{ }else{
if (newM<10){ if (newM<10){
@ -464,8 +446,6 @@ function handleReduceAMonth(nowTime,newTime){
if (newHowDay<10){ if (newHowDay<10){
newHowDay = '0' +newHowDay newHowDay = '0' +newHowDay
} }
console.log('handleReduceAMonth',newHowDay)
console.log('handleReduceAMonth',`${newY}-${newM}-${newHowDay}`)
return `${newY}-${newM}-${newHowDay}` return `${newY}-${newM}-${newHowDay}`
} }
@ -477,8 +457,6 @@ function handleReduceAMonth(nowTime,newTime){
if (d<10){ if (d<10){
d = '0' +d d = '0' +d
} }
console.log('handleReduceAMonth',d)
console.log('handleReduceAMonth',`${newY}-${newM}-${d}`)
return `${newY}-${newM}-${d}` return `${newY}-${newM}-${d}`
} }
} }

View File

@ -87,7 +87,6 @@ export default {
watch:{ watch:{
carData:{ carData:{
handler(value){ handler(value){
console.log('value222',value)
if (value.length>0){ if (value.length>0){
this.isShowData = true this.isShowData = true
} }
@ -118,7 +117,6 @@ export default {
let carSum = 0 // let carSum = 0 //
let Vehicle_CountAll=0 // let Vehicle_CountAll=0 //
let SectionFlow_CountAll=0 // let SectionFlow_CountAll=0 //
console.log('this.id',this.id)
value.forEach(item=>{ value.forEach(item=>{
data.push({name:item.Serverpart_Region+'区 '+item.Vehicle_Count ,value:item.Entry_Rate }) data.push({name:item.Serverpart_Region+'区 '+item.Vehicle_Count ,value:item.Entry_Rate })
carSum+=item.Vehicle_Count carSum+=item.Vehicle_Count

View File

@ -19,7 +19,6 @@ export default {
if (query.type){ if (query.type){
this.type = query.type this.type = query.type
} }
console.log('this.type',this.type)
let userInfo = uni.getStorageSync('vuex') let userInfo = uni.getStorageSync('vuex')
userInfo = JSON.parse(userInfo) userInfo = JSON.parse(userInfo)
console.log('userInfo',userInfo) console.log('userInfo',userInfo)

View File

@ -94,7 +94,6 @@ export default {
} }
}, },
onLoad(query){ onLoad(query){
console.log('query',query)
// //
let systemInfo = uni.getSystemInfoSync() let systemInfo = uni.getSystemInfoSync()
this.statusBarHeight = Number(systemInfo.statusBarHeight) this.statusBarHeight = Number(systemInfo.statusBarHeight)

View File

@ -882,11 +882,8 @@ export default {
user:{ user:{
// onLoad user // onLoad user
handler:function (value){ handler:function (value){
console.log('watch',value)
let userInfo = uni.getStorageSync('vuex') let userInfo = uni.getStorageSync('vuex')
userInfo = JSON.parse(userInfo) userInfo = JSON.parse(userInfo)
console.log('userInfo',userInfo)
console.log('this.isReturn',this.isReturn)
if (this.isReturn===true){ if (this.isReturn===true){
// //
if (userInfo.userData.AuthorityInfo['89a1f248-2113-4d57-84b1-c2e6edb9e8ee']===1){ if (userInfo.userData.AuthorityInfo['89a1f248-2113-4d57-84b1-c2e6edb9e8ee']===1){
@ -902,14 +899,11 @@ export default {
} }
// //
this.seat = uni.getStorageSync('seatInfo') this.seat = uni.getStorageSync('seatInfo')
console.log('this.seat',this.seat)
if (!this.seat){ if (!this.seat){
//stroge //stroge
console.log('1111')
if (wx.getPrivacySetting){ if (wx.getPrivacySetting){
wx.getPrivacySetting({ wx.getPrivacySetting({
success: res=>{ success: res=>{
console.log('res123123',res)
if (res.needAuthorization){ if (res.needAuthorization){
this.$util.toNextRoute('redirectTo', '/pages/register/register') this.$util.toNextRoute('redirectTo', '/pages/register/register')
}else{ }else{
@ -917,7 +911,6 @@ export default {
type:'gcj02', type:'gcj02',
altitude:true, altitude:true,
success: (res) =>{ success: (res) =>{
console.log('res',res)
let seatInfo = { let seatInfo = {
latitude:res.latitude, latitude:res.latitude,
longitude:res.longitude longitude:res.longitude
@ -940,7 +933,6 @@ export default {
// //
this.nearestService() this.nearestService()
} }
console.log('this.isReturn',this.isReturn)
if (!this.isReturn){ if (!this.isReturn){
this.getData(this.option) this.getData(this.option)
this.handleNoticeMonth() this.handleNoticeMonth()
@ -977,6 +969,7 @@ export default {
...mapGetters({'user':'getUser'}) ...mapGetters({'user':'getUser'})
}, },
onLoad(option){ onLoad(option){
const _this = this
// //
this.single = timestampToTimeMonth((new Date(this.lastDay).getTime())) this.single = timestampToTimeMonth((new Date(this.lastDay).getTime()))
// //
@ -1032,6 +1025,7 @@ export default {
// //
// , // ,
this.seat = uni.getStorageSync('seatInfo') this.seat = uni.getStorageSync('seatInfo')
console.log('this.seat11',!this.seat)
if (!this.seat){ if (!this.seat){
//stroge //stroge
wx.getFuzzyLocation({ wx.getFuzzyLocation({
@ -1043,7 +1037,8 @@ export default {
longitude:res.longitude longitude:res.longitude
} }
uni.setStorageSync('seatInfo', seatInfo); uni.setStorageSync('seatInfo', seatInfo);
this.seat = seatInfo _this.seat = seatInfo
_this.nearestService()
} }
}) })
}else{ }else{
@ -1096,7 +1091,6 @@ export default {
const data = await request.$webGet('CommercialApi/BigData/GetBayonetGrowthAnalysis',req) const data = await request.$webGet('CommercialApi/BigData/GetBayonetGrowthAnalysis',req)
this.nationalDayList[1].value = data.Result_Data.sumEntryCount?this.$util.fmoney(Number((data.Result_Data.sumEntryCount / 10000).toFixed(2))):'' this.nationalDayList[1].value = data.Result_Data.sumEntryCount?this.$util.fmoney(Number((data.Result_Data.sumEntryCount / 10000).toFixed(2))):''
this.nationalDayList[2].value = data.Result_Data.GrowthList[0].Entry_GrowthRate>0?'+' + data.Result_Data.GrowthList[0].Entry_GrowthRate + '%':'-' + data.Result_Data.GrowthList[0].Entry_GrowthRate + '%' this.nationalDayList[2].value = data.Result_Data.GrowthList[0].Entry_GrowthRate>0?'+' + data.Result_Data.GrowthList[0].Entry_GrowthRate + '%':'-' + data.Result_Data.GrowthList[0].Entry_GrowthRate + '%'
console.log('拿到国庆数据data',data)
}, },
goToNational(){ goToNational(){
this.$util.toNextRoute('navigateTo', `/pages/nationalPage/index?time=${this.lastDay}`) this.$util.toNextRoute('navigateTo', `/pages/nationalPage/index?time=${this.lastDay}`)
@ -1140,7 +1134,6 @@ export default {
ProvinceCode:'340000' ProvinceCode:'340000'
} }
const data = await request.$webGet('CommercialApi/Suggestion/GetMemberUnreadData',req) const data = await request.$webGet('CommercialApi/Suggestion/GetMemberUnreadData',req)
console.log('getSuggestion',data)
if (data.Result_Data.data){ if (data.Result_Data.data){
if (data.Result_Data.data !== '0'){ if (data.Result_Data.data !== '0'){
this.isShow = true this.isShow = true
@ -1198,7 +1191,8 @@ export default {
Province_Code:'340000', Province_Code:'340000',
latitude:seat.latitude, latitude:seat.latitude,
} }
// const data = await request.$webGet('CommercialApi/BaseInfo/GetServerpartList',req) const data = await request.$webGet('CommercialApi/BaseInfo/GetServerpartList',req)
console.log('datanearestService',data)
// let res = { // let res = {
// SERVERPART_NAME:data.Result_Data.List[0].SERVERPART_NAME,// // SERVERPART_NAME:data.Result_Data.List[0].SERVERPART_NAME,//
// SPREGIONTYPE_NAME:data.Result_Data.List[0].SPREGIONTYPE_NAME,// // SPREGIONTYPE_NAME:data.Result_Data.List[0].SPREGIONTYPE_NAME,//
@ -1207,16 +1201,18 @@ export default {
// longitude:data.Result_Data.List[0].SERVERPART_X, // longitude:data.Result_Data.List[0].SERVERPART_X,
// latitude:data.Result_Data.List[0].SERVERPART_Y, // latitude:data.Result_Data.List[0].SERVERPART_Y,
// } // }
let res = {
SERVERPART_NAME: '安徽驿达',//
SPREGIONTYPE_NAME: '安徽驿达',// // let res = {
Serverpart_ID: null, // SERVERPART_NAME: '驿',//
SPRegionType_ID: null, // SPREGIONTYPE_NAME: '驿',//
longitude:'117.200927', // Serverpart_ID: null,
latitude:'31.832905', // SPRegionType_ID: null,
} // longitude:'117.200927',
uni.setStorageSync('nearService',res) // latitude:'31.832905',
this.nearServiceInfo = res // }
// uni.setStorageSync('nearService',res)
// this.nearServiceInfo = res
}, },
handleShowNotice(){ handleShowNotice(){
this.showNotice = true this.showNotice = true
@ -1727,19 +1723,16 @@ export default {
this.showTableData.add = this.showTableData.add>0?'+'+this.showTableData.add:this.showTableData.add this.showTableData.add = this.showTableData.add>0?'+'+this.showTableData.add:this.showTableData.add
} }
if (this.showTableData.YearRevenueAmount){ if (this.showTableData.YearRevenueAmount){
console.log('result.MonthRevenueModel',result.MonthRevenueModel)
// //
let index = (result.MonthRevenueModel.YearRevenueAmount / 100000000).toString().indexOf('.') let index = (result.MonthRevenueModel.YearRevenueAmount / 100000000).toString().indexOf('.')
this.showTableData.allRevenueYear = (result.MonthRevenueModel.YearRevenueAmount / 100000000).toString().substring(0,index+3) this.showTableData.allRevenueYear = (result.MonthRevenueModel.YearRevenueAmount / 100000000).toString().substring(0,index+3)
// //
let yearYoY = (((result.MonthRevenueModel.YearRevenueAmount - result.MonthRevenueModel.YearRevenueYOY) / result.MonthRevenueModel.YearRevenueYOY)*100).toFixed(2) let yearYoY = (((result.MonthRevenueModel.YearRevenueAmount - result.MonthRevenueModel.YearRevenueYOY) / result.MonthRevenueModel.YearRevenueYOY)*100).toFixed(2)
console.log('yearYoY',yearYoY)
this.showTableData.yearYoY = Number(yearYoY)>0 ? '+' + Number(yearYoY) : Number(yearYoY) this.showTableData.yearYoY = Number(yearYoY)>0 ? '+' + Number(yearYoY) : Number(yearYoY)
} }
if (this.showTableData.RevenueQOQ){ if (this.showTableData.RevenueQOQ){
// //
let customerQoQ = (((result.MonthRevenueModel.CashPay - result.MonthRevenueModel.RevenueQOQ) / result.MonthRevenueModel.RevenueQOQ)*100).toFixed(2) let customerQoQ = (((result.MonthRevenueModel.CashPay - result.MonthRevenueModel.RevenueQOQ) / result.MonthRevenueModel.RevenueQOQ)*100).toFixed(2)
console.log('customerQoQ',customerQoQ)
this.showTableData.customerQoQ = Number(customerQoQ)>0?'+'+customerQoQ+'%':Number(customerQoQ)<0?customerQoQ+'%':'' this.showTableData.customerQoQ = Number(customerQoQ)>0?'+'+customerQoQ+'%':Number(customerQoQ)<0?customerQoQ+'%':''
} }
@ -1754,7 +1747,6 @@ export default {
if (result.GrowthRate){ if (result.GrowthRate){
this.yesObjCompared = result.GrowthRate this.yesObjCompared = result.GrowthRate
} }
console.log('this.showTableData',this.showTableData)
} }
@ -1806,13 +1798,11 @@ export default {
} }
time = `${y}${m}` time = `${y}${m}`
} }
console.log('time',time)
const req = { const req = {
Province_Code:this.useInfo.userData.ProvinceCode || '340000', Province_Code:this.useInfo.userData.ProvinceCode || '340000',
Statistics_Date:time Statistics_Date:time
} }
request.$webGet('CommercialApi/Revenue/GetProvinceAvgBayonetAnalysis',req).then(res=>{ request.$webGet('CommercialApi/Revenue/GetProvinceAvgBayonetAnalysis',req).then(res=>{
console.log('res',res)
res.Result_Data.List.forEach(item=>{ res.Result_Data.List.forEach(item=>{
if (item.Serverpart_Name==='QOQ'){ if (item.Serverpart_Name==='QOQ'){
this.trafficQOQObj = item this.trafficQOQObj = item
@ -1821,7 +1811,6 @@ export default {
}else{ }else{
this.trafficCurrentObj = item this.trafficCurrentObj = item
} }
console.log('this.trafficCurrentObj',this.trafficCurrentObj)
}) })
}) })
}, },
@ -1831,10 +1820,12 @@ export default {
if (this.PushAuthority && this.PushAuthority.length > 1) { if (this.PushAuthority && this.PushAuthority.length > 1) {
option = this.PushAuthority.find(n => n.ProvinceCode === _this.ProvinceCode) option = this.PushAuthority.find(n => n.ProvinceCode === _this.ProvinceCode)
}else if(this.user.Membership_Id){ }else if(this.user.Membership_Id){
option = {GroupType: 1000, option = {
GroupType: 1000,
ProvinceCode: 340000, ProvinceCode: 340000,
ServerpartIds: "", ServerpartIds: "",
ShopAnalysisType: 1} ShopAnalysisType: 1
}
}else { }else {
} }

View File

@ -33,10 +33,8 @@ export default {
}, },
methods:{ methods:{
handleTap(e){ handleTap(e){
console.log('e',e)
uChartsInstance[e.target.id].showToolTip(e, { uChartsInstance[e.target.id].showToolTip(e, {
formatter: (item, category, index, opts) => { formatter: (item, category, index, opts) => {
console.log('item',item)
if (item.data){ if (item.data){
return item.name + ":" + this.$util.fmoney(item.data.value,2) + '万元'; return item.name + ":" + this.$util.fmoney(item.data.value,2) + '万元';
}else{ }else{
@ -75,7 +73,6 @@ export default {
// } // }
// ] // ]
// }; // };
console.log('value22222222222',value)
let config = { let config = {
max:this.getSplitNumber(value.max) max:this.getSplitNumber(value.max)
} }

View File

@ -35,7 +35,6 @@ export default {
}, },
methods:{ methods:{
handleTap(e){ handleTap(e){
console.log('e',e)
uChartsInstance[e.target.id].showToolTip(e, { uChartsInstance[e.target.id].showToolTip(e, {
formatter: (item, category, index, opts) => { formatter: (item, category, index, opts) => {
if (item.data){ if (item.data){
@ -50,7 +49,6 @@ export default {
// //
handleCarData(value) { handleCarData(value) {
let res = value let res = value
console.log('res',res)
// let res = { // let res = {
// categories: ["9.28","9.29","9.30","10.1","10.2","10.3","10.4","10.5","10.6","10.7"], // categories: ["9.28","9.29","9.30","10.1","10.2","10.3","10.4","10.5","10.6","10.7"],
// series: [ // series: [

View File

@ -262,7 +262,6 @@ export default {
let userInfo = uni.getStorageSync('vuex') let userInfo = uni.getStorageSync('vuex')
userInfo = JSON.parse(userInfo) userInfo = JSON.parse(userInfo)
this.useInfo = JSON.parse(JSON.stringify(userInfo)) this.useInfo = JSON.parse(JSON.stringify(userInfo))
uni.showLoading({ uni.showLoading({
title: '正在加载...' title: '正在加载...'
}) })
@ -288,6 +287,7 @@ export default {
// //
this.handleGetCar(query.time) this.handleGetCar(query.time)
}else{ }else{
//
this.handleGetCarCompare() this.handleGetCarCompare()
this.handleGetRevenueCompare() this.handleGetRevenueCompare()
} }
@ -306,11 +306,14 @@ export default {
}, },
// //
changeTab(num){ changeTab(num){
//
this.selectTab = num this.selectTab = num
if (num===2 && JSON.stringify(this.carCompareList)==='{}' || num===2 && JSON.stringify(this.compareRevenueList)==='{}'){ if (num===2 && JSON.stringify(this.carCompareList)==='{}' || num===2 && JSON.stringify(this.compareRevenueList)==='{}'){
uni.showLoading({ uni.showLoading({
title: '正在加载...' title: '正在加载...'
}) })
//
//
this.handleGetCarCompare() this.handleGetCarCompare()
this.handleGetRevenueCompare() this.handleGetRevenueCompare()
}else if (num===1) { }else if (num===1) {
@ -342,6 +345,7 @@ export default {
} }
const data = await request.$webGet('CommercialApi/Revenue/GetSPRevenueRank',req) const data = await request.$webGet('CommercialApi/Revenue/GetSPRevenueRank',req)
this.revenueSum = data.Result_Data.OtherData this.revenueSum = data.Result_Data.OtherData
//
this.revenueList = data.Result_Data.List.slice(0,5) this.revenueList = data.Result_Data.List.slice(0,5)
this.flagGetRevenue = true this.flagGetRevenue = true
if (this.flagGetRevenue && this.flagGetCar){ if (this.flagGetRevenue && this.flagGetCar){

View File

@ -114,7 +114,6 @@ import request from '@/util/index.js'
this.$util.toNextRoute('navigateTo','/pages/operatingStatements/operatingTrend?name='+this.pageMsg.Serverpart_Name+'&time='+this.pageOption.et+'&id='+this.pageOption.id+'&ProvinceCode='+this.pageOption.pcode) this.$util.toNextRoute('navigateTo','/pages/operatingStatements/operatingTrend?name='+this.pageMsg.Serverpart_Name+'&time='+this.pageOption.et+'&id='+this.pageOption.id+'&ProvinceCode='+this.pageOption.pcode)
}, },
getDetail(obj){ getDetail(obj){
console.log('obj',obj)
let _this = this let _this = this
uni.showLoading({ uni.showLoading({
title:'正在加载...', title:'正在加载...',
@ -131,7 +130,6 @@ import request from '@/util/index.js'
BusinessType:_this.pageOption.BusinessTypeValue>0?_this.pageOption.BusinessTypeValue:'', BusinessType:_this.pageOption.BusinessTypeValue>0?_this.pageOption.BusinessTypeValue:'',
SettlementMode:_this.pageOption.SettlementModeValue>0?_this.pageOption.SettlementModeValue:'', SettlementMode:_this.pageOption.SettlementModeValue>0?_this.pageOption.SettlementModeValue:'',
}).then(res=>{ }).then(res=>{
console.log('res',res)
if(res.Result_Code==100) { if(res.Result_Code==100) {
_this.pageMsg = res.Result_Data _this.pageMsg = res.Result_Data
@ -144,10 +142,9 @@ import request from '@/util/index.js'
_this.isLoading = false _this.isLoading = false
}) })
}, },
}, },
//
onLoad(op) { onLoad(op) {
console.log('op',op)
this.pageOption = op this.pageOption = op
if (this.pageOption.st){ if (this.pageOption.st){
this.pageData.searchTime[0] = this.pageOption.st this.pageData.searchTime[0] = this.pageOption.st

View File

@ -251,10 +251,8 @@
import {wrapTreeNode} from "../../util/dateTime"; import {wrapTreeNode} from "../../util/dateTime";
import moment from "moment"; import moment from "moment";
export default { export default {
data() { data() {
let now = new Date() let now = new Date()
let nowTime = this.$util.cutDate(now, 'YYYY-MM-DD',-1) let nowTime = this.$util.cutDate(now, 'YYYY-MM-DD',-1)
let sTime = this.$util.cutDate(now, 'YYYY-MM-DD', -1) let sTime = this.$util.cutDate(now, 'YYYY-MM-DD', -1)
return { return {
@ -295,16 +293,16 @@
...mapState({'ProvinceCode':(state)=>{return state.userData.ProvinceCode}}), ...mapState({'ProvinceCode':(state)=>{return state.userData.ProvinceCode}}),
}, },
methods: { methods: {
// //
handleShowNotice(){ handleShowNotice(){
this.showNotice = !this.showNotice this.showNotice = !this.showNotice
}, },
// //
handleChangeTimePopup(e,index){ handleChangeTimePopup(e,index){
this.searchTimePopup[index] = e.detail.value this.searchTimePopup[index] = e.detail.value
this.$forceUpdate() this.$forceUpdate()
}, },
// //
handleTimePopup(){ handleTimePopup(){
this.pageData.searchTime = this.searchTimePopup this.pageData.searchTime = this.searchTimePopup
this.$refs.timePopup.close() this.$refs.timePopup.close()
@ -324,6 +322,7 @@
} }
this.BusinessTypeValue = value this.BusinessTypeValue = value
}, },
//
// //
handleTimeOther(){ handleTimeOther(){
this.searchTimePopup = JSON.parse(JSON.stringify(this.pageData.searchTime)) this.searchTimePopup = JSON.parse(JSON.stringify(this.pageData.searchTime))
@ -332,6 +331,7 @@
this.selectTime = 0 this.selectTime = 0
}, },
// //
// moment
handleChangeTime(value){ handleChangeTime(value){
this.selectTimeOther = false this.selectTimeOther = false
this.selectTime = value this.selectTime = value
@ -357,6 +357,7 @@
} }
this.pageData.searchTime = searchTime this.pageData.searchTime = searchTime
}, },
//
async handleEnumeration(text){ async handleEnumeration(text){
const req ={ const req ={
FieldExplainField: text, FieldExplainField: text,
@ -364,15 +365,21 @@
FieldEnumStatus:true FieldEnumStatus:true
} }
const data = await request.$webGet('EShangApiMain/FrameWork/GetFieldEnumTree',req) const data = await request.$webGet('EShangApiMain/FrameWork/GetFieldEnumTree',req)
// labelvalue
let list = wrapTreeNode(data.Result_Data.List) let list = wrapTreeNode(data.Result_Data.List)
return list return list
}, },
handleConfirmCheckChange(){ handleConfirmCheckChange(){
//
this.checkBoxValue = this.checkChange this.checkBoxValue = this.checkChange
//
this.$refs.popup.close() this.$refs.popup.close()
// 西
this.isScreen= false this.isScreen= false
//
this.getList() this.getList()
}, },
//
handleClosePopup(){ handleClosePopup(){
this.checkChange = this.checkBoxValue this.checkChange = this.checkBoxValue
this.$refs.popup.close() this.$refs.popup.close()
@ -382,17 +389,20 @@
this.selectTime = 0 this.selectTime = 0
// this.getList() // this.getList()
}, },
//
handleDelete(){ handleDelete(){
this.searchText = '' this.searchText = ''
}, },
//
handleSelect(){ handleSelect(){
this.$refs.popup.open() this.$refs.popup.open()
this.isScreen= true this.isScreen= true
}, },
//
toTrend(){ toTrend(){
this.$util.toNextRoute('navigateTo','/pages/operatingStatements/operatingTrend?time='+this.pageData.searchTime[1]) this.$util.toNextRoute('navigateTo','/pages/operatingStatements/operatingTrend?time='+this.pageData.searchTime[1])
}, },
//
bindDateChange(e,index){ bindDateChange(e,index){
let nowDate = this.pageData.searchTime[index] let nowDate = this.pageData.searchTime[index]
if(e.detail.value != nowDate){ if(e.detail.value != nowDate){
@ -401,17 +411,16 @@
this.searchList() this.searchList()
} }
}, },
//
searchList(){ searchList(){
// uni.showLoading({
// title:'',
// mask:true
// })
this.getList() this.getList()
}, },
//
toggleRegion(item) { toggleRegion(item) {
item.show = !item.show ? true : false item.show = !item.show ? true : false
this.$forceUpdate() this.$forceUpdate()
}, },
//
toDetail(item){ toDetail(item){
this.$util.toNextRoute('navigateTo', '/pages/operatingStatements/detail?pcode='+item.Province_Code+'&id=' + this.$util.toNextRoute('navigateTo', '/pages/operatingStatements/detail?pcode='+item.Province_Code+'&id=' +
item.Serverpart_Id + '&st=' + this.pageData.searchTime[0]+ '&et=' + this.pageData.searchTime[1]+ item.Serverpart_Id + '&st=' + this.pageData.searchTime[0]+ '&et=' + this.pageData.searchTime[1]+
@ -420,7 +429,9 @@
item.visited = true item.visited = true
this.$forceUpdate() this.$forceUpdate()
}, },
//
getList(){ getList(){
// copySearchText searchText
this.copySearchText= '' this.copySearchText= ''
uni.showLoading({ uni.showLoading({
title:'正在加载', title:'正在加载',
@ -428,7 +439,7 @@
}) })
let _this = this let _this = this
let searchTime = this.pageData.searchTime let searchTime = this.pageData.searchTime
//
let searchName = '' let searchName = ''
this.checkBoxValue.forEach(item=>{ this.checkBoxValue.forEach(item=>{
if (searchName){ if (searchName){
@ -445,10 +456,10 @@
SearchKeyValue:this.searchText, SearchKeyValue:this.searchText,
BusinessType:this.searchText?'':this.BusinessTypeValue?this.BusinessTypeValue:'', BusinessType:this.searchText?'':this.BusinessTypeValue?this.BusinessTypeValue:'',
SettlementMode:this.searchText?'':this.SettlementModeValue?this.SettlementModeValue:'', SettlementMode:this.searchText?'':this.SettlementModeValue?this.SettlementModeValue:'',
// additionalCode: this.ProvinceCode=='330000' ? '451200,630000' :''
} }
// _this.$request.$webGet('WeChat/GetRevenueReport',{ // _this.$request.$webGet('WeChat/GetRevenueReport',{
request.$webGet('CommercialApi/Revenue/GetRevenueReport',req).then(res=>{ request.$webGet('CommercialApi/Revenue/GetRevenueReport',req).then(res=>{
//
if(res.Result_Code==100) { if(res.Result_Code==100) {
_this.pageData.msg = res.Result_Data _this.pageData.msg = res.Result_Data
_this.pageData.msg.countave = (Number(_this.pageData.msg.Province_InsideAmount) / Number(_this.pageData.msg.TotalCount)).toFixed(2) _this.pageData.msg.countave = (Number(_this.pageData.msg.Province_InsideAmount) / Number(_this.pageData.msg.TotalCount)).toFixed(2)
@ -463,6 +474,8 @@
} }
// _this.pageData.msg.SearchResult // _this.pageData.msg.SearchResult
//
//
if (this.searchText){ if (this.searchText){
this.showModal = false this.showModal = false
if (res.Result_Data.SearchResult){ if (res.Result_Data.SearchResult){
@ -497,10 +510,7 @@
} }
}, },
async onLoad(query) { async onLoad(query) {
// uni.showLoading({ //
// title:'...',
// mask:true
// })
this.lastDay = uni.getStorageSync('lastDay') this.lastDay = uni.getStorageSync('lastDay')
if (query.time){ if (query.time){
this.queryTime = query.time this.queryTime = query.time
@ -528,9 +538,11 @@
this.pageData.searchTime = time this.pageData.searchTime = time
} }
} }
//
this.BusinessTypeList = await this.handleEnumeration('BUSINESS_TYPE') this.BusinessTypeList = await this.handleEnumeration('BUSINESS_TYPE')
this.SettlementModeList = await this.handleEnumeration('SETTLEMENT_MODES') this.SettlementModeList = await this.handleEnumeration('SETTLEMENT_MODES')
this.getList() //
this.getList()
} }
} }
</script> </script>

View File

@ -132,8 +132,6 @@ export default {
} }
}, },
onLoad(query){ onLoad(query){
console.log('query',query)
console.log('inComeData',inComeData)
this.selectTab = Number(query.type) this.selectTab = Number(query.type)
if (query.month){ if (query.month){
this.month = Number(query.month) this.month = Number(query.month)
@ -157,7 +155,6 @@ export default {
this.windowHeight = systemInfo.windowHeight this.windowHeight = systemInfo.windowHeight
this.statusBarHeight = Number(systemInfo.statusBarHeight) this.statusBarHeight = Number(systemInfo.statusBarHeight)
this.menu = uni.getMenuButtonBoundingClientRect() this.menu = uni.getMenuButtonBoundingClientRect()
console.log('this.menu',this.menu)
let _this = this let _this = this
setTimeout(()=>{ setTimeout(()=>{
_this.number = 40 _this.number = 40
@ -171,18 +168,15 @@ export default {
}); });
}, },
handleChangePageTab(value){ handleChangePageTab(value){
console.log('value',value)
this.selectTab = value this.selectTab = value
this.pageList = this.selectTab===1?this.pageData.supportList:this.pageData.otherList this.pageList = this.selectTab===1?this.pageData.supportList:this.pageData.otherList
}, },
// //
handleChangeType(e){ handleChangeType(e){
console.log('e',e)
this.typeValue = Number(e.detail.value) this.typeValue = Number(e.detail.value)
}, },
// //
bindDateChange(e){ bindDateChange(e){
console.log('e',e)
this.single = e.detail.value this.single = e.detail.value
const date = new Date(this.single) const date = new Date(this.single)
const y = date.getMonth() + 1 const y = date.getMonth() + 1
@ -193,8 +187,6 @@ export default {
this.pageList = this.selectTab===1?item.supportList:item.otherList this.pageList = this.selectTab===1?item.supportList:item.otherList
} }
}) })
console.log('pageData',this.pageData)
console.log('pageList',this.pageList)
}, },
// //
handleShowNotice(index){ handleShowNotice(index){

View File

@ -30,7 +30,7 @@
<view class="headerDetail" :style="{top: (menu.bottom+68) +'px'}"> <view class="headerDetail" :style="{top: (menu.bottom+68) +'px'}">
<swiper style="height: 220px" @change="handleChangeSwiper" :current="selectMonth" :indicator-dots="true"> <swiper style="height: 220px" @change="handleChangeSwiper" :current="selectMonth" :indicator-dots="true">
<block v-for="(item,index) in monthList" :key="index"> <block v-for="(item,index) in monthList" :key="index">
<swiper-item :item-id="index" :data-item-id="selectMonth" :style="{zIndex:index+1}"> <swiper-item :item-id="item" :data-item-id="selectMonth" :style="{zIndex:index+1}">
<view class="detailBox" > <view class="detailBox" >
<image class="monthSumBg" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/monthSum.png"/> <image class="monthSumBg" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/monthSum.png"/>
@ -347,8 +347,8 @@
</view> </view>
<view class="inComeRateBox"> <view class="inComeRateBox">
<view class="inComeRate"> <view class="inComeRate">
<view class="owner" :style="{background:'#FC7909',left: 0,width:`${(currentResult.selfThisYearRealNumber / (currentResult.selfThisYearRealNumber + currentResult.otherThisYearRealNumber))*100}%`}"></view> <view class="owner" :style="{background:'#FC7909',left: 0,width:`${(currentResult.inComeList[0].thisYearRealNumber / (currentResult.inComeList[0].thisYearRealNumber + currentResult.inComeList[1].thisYearRealNumber))*100}%`}"></view>
<view class="otherRate" :style="{background:'#F9DCC2',right: 0,width:`${(currentResult.otherThisYearRealNumber / (currentResult.selfThisYearRealNumber + currentResult.otherThisYearRealNumber))*100}%`}"></view> <view class="otherRate" :style="{background:'#F9DCC2',right: 0,width:`${(currentResult.inComeList[1].thisYearRealNumber / (currentResult.inComeList[0].thisYearRealNumber + currentResult.inComeList[1].thisYearRealNumber))*100}%`}"></view>
</view> </view>
<view class="rateType"> <view class="rateType">
<view class="rateItem"> <view class="rateItem">
@ -367,7 +367,7 @@
<!-- </view>--> <!-- </view>-->
</view> </view>
<view class="itemDetailSubtotal"> <view class="itemDetailSubtotal">
<view class="itemSmallBox"> <view class="itemSmallBox" v-for="(item,index) in currentResult.inComeList" :key="index">
<!-- <view class="xian"></view>--> <!-- <view class="xian"></view>-->
<view class="itemSmallTop"> <view class="itemSmallTop">
<view class="leftBox"> <view class="leftBox">
@ -375,15 +375,15 @@
<image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/selfOperat.svg" /> <image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/selfOperat.svg" />
</view> </view>
<view style="display: flex;align-items: center"> <view style="display: flex;align-items: center">
<view class="smallTitle">{{ '自营收入小计' }}</view> <view class="smallTitle">{{ item.name }}</view>
<view class="notice" @click="incomeChildrenShow('自营收入小计')">? <view class="notice" @click="incomeChildrenShow('自营收入小计')">?
<view class="noticeBox" :style="{left: '10%',top:'20px'}" v-if="userRevenueSmallSum"> <view class="noticeBox" :style="{left: '10%',top:'20px'}" v-if="userRevenueSmallSum">
<view v-if="userRevenueSmallSum" @click.stop="handleShowNotice('userRevenueSmallSum')"> <view v-if="userRevenueSmallSum" @click.stop="handleShowNotice('userRevenueSmallSum')">
<view>便利店餐饮及客房的累计数</view> <view>便利店餐饮及客房的累计数</view>
<!-- <view>完成率 = 本年累计自营收入 / 自营收入的年度预算<br/>{{ `(${$util.fmoney(item.ThisYearTotal,2)} / ${$util.fmoney(item.ThisYearBudget,2)})` }}</view>--> <!-- <view>完成率 = 本年累计自营收入 / 自营收入的年度预算<br/>{{ `(${$util.fmoney(item.ThisYearTotal,2)} / ${$util.fmoney(item.ThisYearBudget,2)})` }}</view>-->
<!-- <view>{{ `本月占比 = ${thisMonth}月自营收入 / 本年累计自营收入(${$util.fmoney(item.ThisMonthIncome,2)} / ${$util.fmoney(item.ThisYearTotal,2)}) `}}</view> --> <!-- <view>{{ `本月占比 = ${thisMonth}月自营收入 / 本年累计自营收入(${$util.fmoney(item.ThisMonthIncome,2)} / ${$util.fmoney(item.ThisYearTotal,2)}) `}}</view> -->
<view>完成率 = 本年累计自营收入 / 自营收入的年度预算<br/>{{ `(${currentResult.selfThisYearReal||'-'} / ${currentResult.selfThisYearBudgetReal||'-'})` }}</view> <view>完成率 = 本年累计自营收入 / 自营收入的年度预算<br/>{{ `(${item.thisYearReal||'-'} / ${item.thisYearBudgetReal||'-'})` }}</view>
<view>{{ `本月占比 = ${thisMonth}月自营收入 / 本年累计自营收入(${currentResult.selfThisMonthReal||'-'} / ${currentResult.selfThisYearReal||'-'}) `}}</view> <view>{{ `本月占比 = ${thisMonth}月自营收入 / 本年累计自营收入(${item.thisMonthReal||'-'} / ${item.thisYearReal||'-'}) `}}</view>
<!-- <view>服务区自营小计完成率=服务区自营收入 / 自营收入的年度预算<br/>{{ `${$util.fmoney(item.ServerpartIncome,2)} / ${$util.fmoney(item.ThisYearBudget,2)}` }}</view>--> <!-- <view>服务区自营小计完成率=服务区自营收入 / 自营收入的年度预算<br/>{{ `${$util.fmoney(item.ServerpartIncome,2)} / ${$util.fmoney(item.ThisYearBudget,2)}` }}</view>-->
<view>服务区自营小计城市店批发团购及通道费的累计数</view> <view>服务区自营小计城市店批发团购及通道费的累计数</view>
<!-- <view>分公司收入小计完成率=分公司收入 / 自营收入的年度预算<br/>{{ `${$util.fmoney(item.FilialeIncome,2)} / ${$util.fmoney(item.ThisYearBudget,2)}` }}</view>--> <!-- <view>分公司收入小计完成率=分公司收入 / 自营收入的年度预算<br/>{{ `${$util.fmoney(item.FilialeIncome,2)} / ${$util.fmoney(item.ThisYearBudget,2)}` }}</view>-->
@ -400,20 +400,20 @@
<view class="itemSmallDetail"> <view class="itemSmallDetail">
<view class="itemSmallLeftBox" > <view class="itemSmallLeftBox" >
<OtherCharts :success="currentResult.selfRate" :colorList="['#FC7909', '#F9DCC2']" :name="'selfRate'" /> <OtherCharts :success="item.rate" :colorList="['#FC7909', '#F9DCC2']" :name="'selfRate'" />
<text class="leftValue">{{ `${currentResult.selfRate||'-'}%` }}</text> <text class="leftValue">{{ `${item.rate||'-'}%` }}</text>
</view> </view>
<view class="itemSmallRightBox"> <view class="itemSmallRightBox">
<view class="rightTopItem"> <view class="rightTopItem">
<view class="itemDetail"> <view class="itemDetail">
<!-- <view class="detailValue" style="font-size: 26rpx">{{$util.fmoney(item.ThisYearTotal/10000,2)}}</view>--> <!-- <view class="detailValue" style="font-size: 26rpx">{{$util.fmoney(item.ThisYearTotal/10000,2)}}</view>-->
<view class="detailValue" >{{currentResult.selfThisYear || '-'}}</view> <view class="detailValue" >{{item.thisYear || '-'}}</view>
<view class="detailTitle">本年累计<text class="detailTitleUnit">/万元</text></view> <view class="detailTitle">本年累计<text class="detailTitleUnit">/万元</text></view>
</view> </view>
<view class="itemDetail"> <view class="itemDetail">
<view class="detailValue" style="text-align: right"> <view class="detailValue" style="text-align: right">
<!-- {{$util.fmoney(item.ThisMonthIncome/10000,2)}}--> <!-- {{$util.fmoney(item.ThisMonthIncome/10000,2)}}-->
{{currentResult.selfThisMonth || '-'}} {{item.thisMonth || '-'}}
</view> </view>
<view class="detailTitle"> <view class="detailTitle">
{{ `${thisMonth}月累计` }} {{ `${thisMonth}月累计` }}
@ -424,12 +424,12 @@
<view class="rightTopItem" style="margin-top: 32rpx"> <view class="rightTopItem" style="margin-top: 32rpx">
<view class="itemDetail"> <view class="itemDetail">
<!-- <view class="detailValue">{{$util.fmoney(item.ThisYearBudget/10000,2)}}</view>--> <!-- <view class="detailValue">{{$util.fmoney(item.ThisYearBudget/10000,2)}}</view>-->
<view class="detailValue">{{currentResult.selfThisYearBudget || '-'}}</view> <view class="detailValue">{{item.thisYearBudget || '-'}}</view>
<view class="detailTitle">年度预算<text class="detailTitleUnit">/万元</text></view> <view class="detailTitle">年度预算<text class="detailTitleUnit">/万元</text></view>
</view> </view>
<view class="itemRight" style="text-align: right"> <view class="itemRight" style="text-align: right">
<!-- <view class="rightValue">{{ `${item.ThisMonthIncomeRate||''}%` }}</view>--> <!-- <view class="rightValue">{{ `${item.ThisMonthIncomeRate||''}%` }}</view>-->
<view class="rightValue">{{ `${currentResult.selfThisMonthRate || '-'}%` }}</view> <view class="rightValue">{{ `${item.thisMonthRate || '-'}%` }}</view>
<view class="rightLabel">本月占比</view> <view class="rightLabel">本月占比</view>
</view> </view>
</view> </view>
@ -465,102 +465,7 @@
<!-- </view>--> <!-- </view>-->
</view> </view>
<view class="itemSmallBox">
<!-- <view class="xian"></view>-->
<view class="itemSmallTop">
<view class="leftBox">
<view class="smallIcon">
<image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/selfOperat.svg" />
</view>
<view style="display: flex;align-items: center">
<view class="smallTitle">{{ `其他收入` }}</view>
<view class="notice" @click="incomeChildrenShow('其他收入')">?
<view class="noticeBox" :style="{left: '10%',top:'20px'}" v-if="otherSmallSum">
<view v-if="otherSmallSum" @click.stop="handleShowNotice('otherSmallSum')">
<view>场地租赁物业及受托代管公共服务补贴营业外收入的累计数</view>
<!-- <view>完成率=7月其他收入 / 其他收入的年度预算{{ `(${$util.fmoney(item.ThisYearTotal,2)}/ ${$util.fmoney(item.ThisYearBudget ,2)})` }}</view>-->
<!-- <view>本月占比=7月其他收入 / 本年累计其他收入{{ `(${$util.fmoney(item.ThisMonthIncome ,2)}/ ${$util.fmoney(item.ThisYearTotal ,2)})` }}</view> -->
<view>{{ `完成率= ${thisMonth}月其他收入 / 其他收入的年度预算( ${currentResult.otherThisMonthReal||'-'}/${currentResult.otherThisYearBudgetReal||'-'} )` }}</view>
<view>{{ `本月占比 = ${thisMonth}月其他收入 / 本年累计其他收入( ${currentResult.otherThisMonthReal||'-'}/${currentResult.otherThisYearReal||'-'} )` }}</view>
<view>服务区租赁小计商铺充电桩汽修加油站的租赁累计收入</view>
<!-- <view>服务区租赁小计完成率=服务区租赁累计收入 / 本年累计其他收入<br/>{{ `(${$util.fmoney(item.ServerpartIncome ,2)}/ ${$util.fmoney(item.ThisYearBudget,2)})` }}</view>-->
</view>
</view>
</view>
</view>
</view>
<view class="leftRight" @click="handleGoInComeDetail(2)">
<text class="more">查看更多</text>
<image class="moreIcon" src="https://eshangtech.com/ShopICO/ahyd-BID/revenueBox/moreIcon.svg" />
</view>
</view>
<view class="itemSmallDetail">
<view class="itemSmallLeftBox" >
<OtherCharts :success="currentResult.otherRate" :colorList="['#FC7909', '#F9DCC2']" :name="'otherRate'" />
<!-- <text class="leftValue">{{ `${item.CompleteRate || ''}%` }}</text>-->
<text class="leftValue">{{ `${currentResult.otherRate || '-'}%` }}</text>
</view>
<view class="itemSmallRightBox">
<view class="rightTopItem">
<view class="itemDetail">
<!-- <view class="detailValue" style="font-size: 26rpx">{{$util.fmoney(item.ThisYearTotal/10000,2)}}</view>-->
<view class="detailValue" >{{currentResult.otherThisYear || '-'}}</view>
<view class="detailTitle">本年累计<text class="detailTitleUnit">/万元</text></view>
</view>
<view class="itemDetail" >
<view class="detailValue" style="text-align: right">
<!-- {{$util.fmoney(item.ThisMonthIncome/10000,2)}}-->
{{currentResult.otherThisMonth || '-'}}
</view>
<view class="detailTitle" style="text-align: right">
{{ `${thisMonth}月累计` }}
<text class="detailTitleUnit">/万元</text>
</view>
</view>
</view>
<view class="rightTopItem" style="margin-top: 32rpx">
<view class="itemDetail">
<!-- <view class="detailValue">{{$util.fmoney(item.ThisYearBudget/10000,2)}}</view>-->
<view class="detailValue">{{currentResult.otherThisYearBudget || '-'}}</view>
<view class="detailTitle">年度预算<text class="detailTitleUnit">/万元</text></view>
</view>
<view class="itemRight" style="text-align: right">
<!-- <view class="rightValue">{{ `${item.ThisMonthIncomeRate||''}%` }}</view>-->
<view class="rightValue" >{{ `${currentResult.otherThisMonthRate||'-'}%` }}</view>
<view class="rightLabel" >本月占比</view>
</view>
</view>
</view>
</view>
<!-- <view class="smallSum">-->
<!-- <view class="smallSumItem">-->
<!-- <view class="smallSumLeft">-->
<!-- <view class="smallSumItemBox"></view>-->
<!-- <text class="smallTitle">{{ '场地租赁' }}</text>-->
<!-- </view>-->
<!-- <view class="smallSumRight" style="display: flex;align-items: center">-->
<!-- <text class="successText" style="margin-left: 4rpx">完成率</text>-->
<!-- <text class="successValue">{{ `${currentResult.leaseRate|| '-'}%`}}</text>-->
<!-- </view>-->
<!-- </view>-->
<!-- <view class="smallSumItem">-->
<!-- <view class="smallSumLeft" style="display: flex;align-items: center">-->
<!-- <view class="smallSumItemBox"></view>-->
<!-- <text class="smallTitle">物业及受托代管</text>-->
<!-- </view>-->
<!-- <view class="smallSumRight" style="display: flex;align-items: center">-->
<!-- <text class="successText" style="margin-left: 4rpx">完成率</text>-->
<!-- <text class="successValue">{{ `${currentResult.propertyRate|| '-'}%`}}</text>-->
<!-- </view>-->
<!-- </view>-->
<!-- </view>-->
</view>
</view> </view>
</view> </view>
@ -942,29 +847,37 @@ export default {
thisYearInComeBudgetReal:'726,870,000.00',// thisYearInComeBudgetReal:'726,870,000.00',//
costReal:'180,563,832.50',// costReal:'180,563,832.50',//
thisYearInComeYOY:'+48.54',// thisYearInComeYOY:'+48.54',//
selfRate:71.70,//
selfThisYear:'33,978.75',//
selfThisYearReal:'339,787,552.17',//
selfThisYearRealNumber:339787552.17,//
selfThisMonth:'5,070.82',//
selfThisMonthReal:'50,708,267.25',//
selfThisYearBudget:'47,392',//
selfThisYearBudgetReal:'473,920,000.00',//
selfThisMonthRate:'14.92',//
selfStoreRate:'',// 便 selfStoreRate:'',// 便
selfRoomRate:'',// selfRoomRate:'',//
otherRate:'52.97',//
otherThisYear:'13,397.84',//
otherThisYearReal:'133,978,469.54',//
otherThisYearRealNumber:133978469.54,//
otherThisMonth:'2,028.58',//
otherThisMonthReal:'20,285,867.69',//
otherThisYearBudget:'25,295.00',//
otherThisYearBudgetReal:'252,950,000.00',//
otherThisMonthRate:'15.14',//
leaseRate:'35.99',// leaseRate:'35.99',//
propertyRate:'',// propertyRate:'',//
showExpenditure:false,// showExpenditure:false,//
inComeList:[
{
name:'自营收入小计',
rate:71.70,//
thisYear:'33,978.75',//
thisYearReal:'339,787,552.17',//
thisYearRealNumber:339787552.17,//
thisMonth:'5,070.82',//
thisMonthReal:'50,708,267.25',//
thisYearBudget:'47,392',//
thisYearBudgetReal:'473,920,000.00',//
thisMonthRate:'14.92',//
},
{
name:'其他收入',
rate:52.97,//
thisYear:'13,397.84',//
thisYearReal:'133,978,469.54',//
thisYearRealNumber:133978469.54,//
thisMonth:'2,028.58',//
thisMonthReal:'20,285,867.69',//
thisYearBudget:'25,295.00',//
thisYearBudgetReal:'252,950,000.00',//
thisMonthRate:'15.14',//
}
],//
}, },
{ {
month:8,// month:8,//
@ -997,26 +910,8 @@ export default {
thisYearInComeBudgetReal:'800,500,000.00',// thisYearInComeBudgetReal:'800,500,000.00',//
costReal:'243,936,015.66',// costReal:'243,936,015.66',//
thisYearInComeYOY:'70.92',// thisYearInComeYOY:'70.92',//
selfRate:83.61,//
selfThisYear:'44,992.73',//
selfThisYearReal:'449,927,347.31',//
selfThisYearRealNumber:449927347.31,//
selfThisMonth:'5,084.31',//
selfThisMonthReal:'50,843,071.60',//
selfThisYearBudget:'53,814.00',//
selfThisYearBudgetReal:'538,140,000.00',//
selfThisMonthRate:'11.3',//
selfStoreRate:'83.5',// 便 selfStoreRate:'83.5',// 便
selfRoomRate:'84.17',// selfRoomRate:'84.17',//
otherRate:'64.46',//
otherThisYear:'16,910.60',//
otherThisYearReal:'16,758,130.53',//
otherThisYearRealNumber:16758130.53,//
otherThisMonth:'1,675.81',//
otherThisMonthReal:'169,106,018.63',//
otherThisYearBudget:'26,236.00',//
otherThisYearBudgetReal:'262,360,000.00',//
otherThisMonthRate:'9.91',//
leaseRate:'63.83',// leaseRate:'63.83',//
propertyRate:'67.83',// propertyRate:'67.83',//
showExpenditure:true,// showExpenditure:true,//
@ -1024,6 +919,32 @@ export default {
expenditureOutRatio:77.09,// expenditureOutRatio:77.09,//
expenditureThisYear:'61,611.98',// expenditureThisYear:'61,611.98',//
expenditureThisYearBudget:'79,924.00',// expenditureThisYearBudget:'79,924.00',//
inComeList: [
{
name:'自营收入小计',
rate:83.61,//
thisYear:'44,992.73',//
thisYearReal:'449,927,347.31',//
thisYearRealNumber:449927347.31,//
thisMonth:'5,084.31',//
thisMonthReal:'50,843,071.60',//
thisYearBudget:'53,814.00',//
thisYearBudgetReal:'538,140,000.00',//
thisMonthRate:'11.3',//
},
{
name:'其他收入',
rate:64.46,//
thisYear:'16,910.60',//
thisYearReal:'16,758,130.53',//
thisYearRealNumber:16758130.53,//
thisMonth:'1,675.81',//
thisMonthReal:'169,106,018.63',//
thisYearBudget:'26,236.00',//
thisYearBudgetReal:'262,360,000.00',//
thisMonthRate:'9.91',//
}
],//
outList:[ outList:[
{ {
name:'营业成本小计',// name:'营业成本小计',//
@ -1061,7 +982,7 @@ export default {
expenditureCostThisYearBudget:'735.00',// expenditureCostThisYearBudget:'735.00',//
expenditureCostThisRate:'-8.24%',// expenditureCostThisRate:'-8.24%',//
} }
] ],//
}, },
{ {
month:10,// month:10,//
@ -1090,26 +1011,6 @@ export default {
thisYearInComeBudgetReal:'800,500,000.00',// thisYearInComeBudgetReal:'800,500,000.00',//
costReal:'289,940,000.00',// costReal:'289,940,000.00',//
thisYearInComeYOY:'44.08',// thisYearInComeYOY:'44.08',//
selfRate:93.96,//
selfThisYear:'50,563.57',//
selfThisYearReal:'505,635,722.50',//
selfThisYearRealNumber:505635722.50,//
selfThisMonth:'5,570.84',//
selfThisMonthReal:'55,708,375.34',//
selfThisYearBudget:'53,814',//
selfThisYearBudgetReal:'538,140,000.00',//
selfThisMonthRate:'11.02',//
selfStoreRate:'93.24',// 便
selfRoomRate:'97.81',//
otherRate:'71.94',//
otherThisYear:'18,874.81',//
otherThisYearReal:'188,748,102.96',//
otherThisYearRealNumber:188748102.96,//
otherThisMonth:'196.21',//
otherThisMonthReal:'19,642,084.33',//
otherThisYearBudget:'26,236.00',//
otherThisYearBudgetReal:'262,360,000.00',//
otherThisMonthRate:'10.41',//
leaseRate:'70.85',// leaseRate:'70.85',//
propertyRate:'75.36',// propertyRate:'75.36',//
showExpenditure:true,// showExpenditure:true,//
@ -1117,6 +1018,34 @@ export default {
expenditureOutRatio:86.72,// expenditureOutRatio:86.72,//
expenditureThisYear:'69,089.29',// expenditureThisYear:'69,089.29',//
expenditureThisYearBudget:'79,670.00',// expenditureThisYearBudget:'79,670.00',//
selfStoreRate:'93.24',// 便
selfRoomRate:'97.81',//
inComeList:[
{
name:'自营收入小计',
rate:93.96,//
thisYear:'50,563.57',//
thisYearReal:'505,635,722.50',//
thisYearRealNumber:505635722.50,//
thisMonth:'5,570.84',//
thisMonthReal:'55,708,375.34',//
thisYearBudget:'53,814',//
thisYearBudgetReal:'538,140,000.00',//
thisMonthRate:'11.02',//
},
{
name: '其他收入',
rate:'71.94',//
thisYear:'18,874.81',//
thisYearReal:'188,748,102.96',//
thisYearRealNumber:188748102.96,//
thisMonth:'196.21',//
thisMonthReal:'19,642,084.33',//
thisYearBudget:'26,236.00',//
thisYearBudgetReal:'262,360,000.00',//
thisMonthRate:'10.41',//
}
],//
outList:[ outList:[
{ {
name:'营业成本小计',// name:'营业成本小计',//
@ -1154,7 +1083,7 @@ export default {
expenditureCostThisYearBudget:'735.00',// expenditureCostThisYearBudget:'735.00',//
expenditureCostThisRate:'3.95%',// expenditureCostThisRate:'3.95%',//
} }
] ],//
} }
],// 78910 ],// 78910
currentResult:{},// currentResult:{},//
@ -1195,7 +1124,12 @@ export default {
// //
// this.handleGetData() // this.handleGetData()
// this.selectMonth = 0 // this.selectMonth = 0
this.handleChangeSwiper({target:{current:3}})
//
this.handleGetPageData()
setTimeout(()=>{
this.handleChangeSwiper({target:{current:3}})
},500)
// this.currentResult = this.monthResult[this.selectMonth] // this.currentResult = this.monthResult[this.selectMonth]
}, },
methods:{ methods:{
@ -1414,6 +1348,14 @@ export default {
this.outSecond = (this.currentResult.outList[1].expenditureCostThisYearNumber/sum)*100 this.outSecond = (this.currentResult.outList[1].expenditureCostThisYearNumber/sum)*100
this.outThird = (this.currentResult.outList[2].expenditureCostThisYearNumber/sum)*100 this.outThird = (this.currentResult.outList[2].expenditureCostThisYearNumber/sum)*100
this.outFourth = (this.currentResult.outList[3].expenditureCostThisYearNumber/sum)*100 this.outFourth = (this.currentResult.outList[3].expenditureCostThisYearNumber/sum)*100
},
//
async handleGetPageData(){
// const req = {
//
// }
// const data = await request.$webGet('',req)
} }
} }
} }

View File

@ -195,7 +195,6 @@
let arr = [] let arr = []
_this.isLoadingDelPerson = false _this.isLoadingDelPerson = false
uni.hideLoading() uni.hideLoading()
console.log('res.Data.List',res.Data.List)
_this.dealerList = res.Data.List _this.dealerList = res.Data.List
}) })

View File

@ -73,13 +73,11 @@ export default {
console.log(this.colorList,'colorList') console.log(this.colorList,'colorList')
}, },
methods:{ methods:{
// //
handleGo(item){ handleGo(item){
console.log('item',item)
if (item.value===2){ if (item.value===2){
if (item.value===2){ if (item.value===2){
let currentService = uni.getStorageSync('currentService') let currentService = uni.getStorageSync('currentService')
console.log('currentService',currentService)
this.$util.toNextRoute('navigateTo', `${item.homeUrl}?time=${this.lastDay}&serviceInfo=${JSON.stringify(currentService)}&type=userCenter`) this.$util.toNextRoute('navigateTo', `${item.homeUrl}?time=${this.lastDay}&serviceInfo=${JSON.stringify(currentService)}&type=userCenter`)
} else{ } else{
this.$util.toNextRoute('navigateTo', item.homeUrl) this.$util.toNextRoute('navigateTo', item.homeUrl)

View File

@ -2,7 +2,7 @@
<view> <view>
<web-view :src="src" v-if="src"></web-view> <web-view :src="src" v-if="src"></web-view>
<view v-else> <view v-else>
<noFound :nodata="true" text="抱歉.您暂无权限查看该页内容" > </noFound> <noFound :nodata="true" text="抱歉.您暂无权限查看该页内容" > </noFound>
</view> </view>
</view> </view>
@ -19,7 +19,7 @@
computed:{ computed:{
...mapGetters({ ...mapGetters({
'user':'getUser' , 'user':'getUser' ,
}) })
}, },
onUnload() { onUnload() {
@ -32,9 +32,8 @@
let mode = {} // this.userModules.find(u=>{return u.MODULE_GUID==='5733dfdd-29f6-4233-9ff0-6f077d80d778'}) let mode = {} // this.userModules.find(u=>{return u.MODULE_GUID==='5733dfdd-29f6-4233-9ff0-6f077d80d778'})
mode.SERVERPART_IDS = '' mode.SERVERPART_IDS = ''
this.src = 'https://eshangtech.com/questionnarie/testType?mid=' + this.user.Membership_Id + '&sid='+(mode?mode.SERVERPART_IDS:'')+'&pcode='+this.user.ProvinceCode+'&phone=' + this.user.Membership_Phone+'&name='+encodeURIComponent(this.user.Membership_Name) this.src = 'https://eshangtech.com/questionnarie/testType?mid=' + this.user.Membership_Id + '&sid='+(mode?mode.SERVERPART_IDS:'')+'&pcode='+this.user.ProvinceCode+'&phone=' + this.user.Membership_Phone+'&name='+encodeURIComponent(this.user.Membership_Name)
console.log(this.src)
break break
case 'video': case 'video':
let {sc,hd,bt,et,token} = option let {sc,hd,bt,et,token} = option
this.src = `https://eshangtech.com/questionnarie/video?sc=${sc}&&hd=${hd}&bt=${bt}&et=${et}&token=${token}` this.src = `https://eshangtech.com/questionnarie/video?sc=${sc}&&hd=${hd}&bt=${bt}&et=${et}&token=${token}`
// this.src = `http://192.168.11.166:8080/video?sc=${sc}&&hd=${hd}&bt=${bt}&et=ss${et}&token=${token}` // this.src = `http://192.168.11.166:8080/video?sc=${sc}&&hd=${hd}&bt=${bt}&et=ss${et}&token=${token}`
@ -44,7 +43,7 @@
this.src = `https://eshangtech.com/questionnarie/customerAnaysis?sid=${sid}&pc=${pc}&tmp=${tmp}&sn=${sn}` this.src = `https://eshangtech.com/questionnarie/customerAnaysis?sid=${sid}&pc=${pc}&tmp=${tmp}&sn=${sn}`
break break
} }
}else if(option.src.indexOf('https')>-1){ }else if(option.src.indexOf('https')>-1){
this.src = option.src this.src = option.src
} }
@ -53,11 +52,11 @@
}else{ }else{
this.src = option.src this.src = option.src
} }
} }
} }
</script> </script>
<style> <style>
</style> </style>

View File

@ -18,7 +18,6 @@ const state = {
const getters = { const getters = {
getUser(state) { getUser(state) {
console.log('store',state.userData)
return state.userData return state.userData
}, },
getMenu(state) { getMenu(state) {
@ -63,14 +62,12 @@ const actions = {
getLoginCode({ dispatch, state} ){ getLoginCode({ dispatch, state} ){
uni.login({ // 登录 uni.login({ // 登录
success (res) { success (res) {
console.log('re111s',res)
dispatch('memberLogin',res.code) // 获取用户数据 dispatch('memberLogin',res.code) // 获取用户数据
} }
}) })
}, },
getTodoList({ dispatch, state,commit}){ // 获取用户待办事项 getTodoList({ dispatch, state,commit}){ // 获取用户待办事项
let _user = state.userData let _user = state.userData
console.log('getTodoList')
request.$get("ToDoList", { request.$get("ToDoList", {
userId: _user.UserId, userId: _user.UserId,
userName: _user.UserName || '' userName: _user.UserName || ''
@ -80,13 +77,11 @@ const actions = {
}, },
memberLogin({ dispatch, state,commit},_code) { memberLogin({ dispatch, state,commit},_code) {
let _user = state.userData let _user = state.userData
console.log('_code',_code)
request.$get('WeChat_Login',{ request.$get('WeChat_Login',{
// request.$webGet('WebAPI_Push/WeChat/Login',{ // request.$webGet('WebAPI_Push/WeChat/Login',{
WeChat_Code: _code || '', WeChat_Code: _code || '',
}).then(data=>{ }).then(data=>{
console.log('data222',data)
if (data.Result_Code === 100) { if (data.Result_Code === 100) {
let user = data.Result_Data let user = data.Result_Data
if (user.Membership_Id) { if (user.Membership_Id) {
@ -122,7 +117,6 @@ const actions = {
if(!_id) return if(!_id) return
// console.log(_user) // console.log(_user)
await request.$get('WeChat_GetBusinessMemberInfo',{Membership_Id:_id}).then(res=>{ await request.$get('WeChat_GetBusinessMemberInfo',{Membership_Id:_id}).then(res=>{
console.log('res222',res)
// request.$webGet('WebAPI_Push/Member/GetMemberInfo',{Membership_Id:_id,memberShipId:_id}).then(res=>{ // request.$webGet('WebAPI_Push/Member/GetMemberInfo',{Membership_Id:_id,memberShipId:_id}).then(res=>{
if(res.Result_Code==100) { if(res.Result_Code==100) {
let data = res.Result_Data let data = res.Result_Data