diff --git a/pages/index/index.vue b/pages/index/index.vue index 59520db..fc630b2 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -4,8 +4,9 @@ - + +
@@ -15,12 +16,13 @@ - {{ single }} + {{ single }} - - - + + +
+
@@ -377,6 +379,162 @@ {{item.name}}
+ + + + + 营收占比 + + + + + {{ item.name }} + + + + +
+
+
+
+
+
+ + {{o+1}} +
+

{{item.name}}

+
+

{{$util.fmoney(item.value,2)}}

+
+
+
+
+
+

{{item.percentage+'%'}}

+
+
+
+
+
+
+
+
+
+
+ + {{o+1}} +
+

{{item.name}}

+
+

{{$util.fmoney(item.value,2)}}

+
+
+
+
+
+

{{item.percentage+'%'}}

+
+
+
+
+
+
+
+ + + + 自营计划 + + + + + + + 本月计划 + + + 查看更多 + + + + + + + + + + + + + {{monthAdd}}% + (比计划) + + + + + {{plan.RevenueMonth_Amount?plan.RevenueMonth_Amount:'-'}} + 已完成/万元 + + + {{plan.BudgetMonth_Amount?plan.BudgetMonth_Amount:'-'}} + 计划/万元 + + + {{plan.MonthYOY_Rate?plan.MonthYOY_Rate>0?`+${plan.MonthYOY_Rate}%`:`${plan.MonthYOY_Rate}%`:'-'}} + 同比 + + + + + + + + + + 本年计划 + + + 查看更多 + + + + + + + + + + + + + {{yearAdd}}% + (比计划) + + + + + {{plan.RevenueYear_Amount?plan.RevenueYear_Amount:'-'}} + 已完成/{{ plan.revenueType==='yi'?'亿元':'万元' }} + + + {{plan.BudgetYear_Amount?plan.BudgetYear_Amount:'-'}} + 计划/{{ plan.budgetType==='yi'?'亿元':'万元' }} + + + {{plan.YearYOY_Rate?plan.YearYOY_Rate>0?`+${plan.YearYOY_Rate}%`:`${plan.YearYOY_Rate}%`:'-'}} + 同比 + + + + + + + +
@@ -526,159 +684,9 @@ - - - 自营计划 - - - - - - 本月计划 - - - 查看更多 - - - - - - - - - - - {{monthAdd}}% - (比计划) - - - - - {{plan.RevenueMonth_Amount?plan.RevenueMonth_Amount:'-'}} - 已完成/万元 - - - {{plan.BudgetMonth_Amount?plan.BudgetMonth_Amount:'-'}} - 计划/万元 - - - {{plan.MonthYOY_Rate?plan.MonthYOY_Rate>0?`+${plan.MonthYOY_Rate}%`:`${plan.MonthYOY_Rate}%`:'-'}} - 同比 - - - - - - - - - - 本年计划 - - - 查看更多 - - - - - - - - - - - - - {{yearAdd}}% - (比计划) - - - - - {{plan.RevenueYear_Amount?plan.RevenueYear_Amount:'-'}} - 已完成/{{ plan.revenueType==='yi'?'亿元':'万元' }} - - - {{plan.BudgetYear_Amount?plan.BudgetYear_Amount:'-'}} - 计划/{{ plan.budgetType==='yi'?'亿元':'万元' }} - - - {{plan.YearYOY_Rate?plan.YearYOY_Rate>0?`+${plan.YearYOY_Rate}%`:`${plan.YearYOY_Rate}%`:'-'}} - 同比 - - - - - - - - - - - 营收占比 - - - - - {{ item.name }} - - - - -
-
-
-
-
-
- - {{o+1}} -
-

{{item.name}}

-
-

{{$util.fmoney(item.value,2)}}

-
-
-
-
-
-

{{item.percentage+'%'}}

-
-
-
-
-
-
-
-
-
-
- - {{o+1}} -
-

{{item.name}}

-
-

{{$util.fmoney(item.value,2)}}

-
-
-
-
-
-

{{item.percentage+'%'}}

-
-
-
-
-
-
-
@@ -1756,7 +1764,7 @@ export default { this.dailyExamineObj = null this.monthAdd = null - // 阻止调用swiper的滚动 + // 阻止调用swiper的滚动 防止切换时间调了一次方法 swiper移动又会自动调用接口的问题 this.stopSwiper = true let isOnRefresh = false const date = new Date(e.detail.value) @@ -1940,20 +1948,13 @@ $iphoneHeight: env(safe-area-inset-bottom); } .header { width: 100%; - background: linear-gradient(315deg, #FF8670 0%, #FFDCA8 100%); + //background: linear-gradient(315deg, #FF8670 0%, #FFDCA8 100%); box-sizing: border-box; - padding: 0 16px; - position: relative; - //.headerBg { - // width: 100%; - // height: 100%; - // position: absolute; - // left: 0; - // top: 0; - //} + //padding: 0 16px; + //position: relative; .headerTop{ width: 100%; - background: linear-gradient(315deg, #FFAF95 0%, #FFD6A6 100%); + //background: linear-gradient(315deg, #FFAF95 0%, #FFD6A6 100%); position: fixed; top: 0;left:0; box-sizing: border-box; @@ -1999,7 +2000,9 @@ $iphoneHeight: env(safe-area-inset-bottom); .storeDetail{ width: 100%; - position: absolute; + margin-top: 16rpx; + box-sizing: border-box; + padding-bottom: 64rpx; .storeName{ font-size: 14px; font-family: PingFangSC-Regular, PingFang SC; diff --git a/pages/newamine/index.vue b/pages/newamine/index.vue index 969493b..ee1f0b9 100644 --- a/pages/newamine/index.vue +++ b/pages/newamine/index.vue @@ -361,7 +361,8 @@ export default { useInfo:{}, sortType:'sequence',// reverse倒序 sequence正序 dailyServiceList:[],// 整改显示的列表 - dailyAllList:[] // 整改的全部列表 + dailyAllList:[], // 整改的全部列表 + dailyFlag:true,// 是否能调用巡检方法 } }, onLoad(query){ @@ -475,6 +476,7 @@ export default { }, // 拿到考核和巡检上面的详情 handleGetDailyPatrol(){ + const req = { StartDate:this.singleDay, EndDate:this.singleDay, @@ -557,6 +559,7 @@ export default { }, // 拿到巡检的列表数据 handleNewGetPatrol(){ + const req = { StartDate:this.singleDay, EndDate:this.singleDay, @@ -617,16 +620,14 @@ export default { this.handleNewGetPatrol() } }, - // 增加日期 + // 增加减少日期 handleAddDate(type){ this.selectContentTab = 1 const nowDate = new Date(this.lastDay) let nowMonth = nowDate.getMonth() + 1 let nowDay = nowDate.getDate() this.rate = null - uni.showLoading({ - title:'正在加载' - }) + // 先判断是加 还是 减 再判断是哪个选项卡下面的 再调用方法 // 1 是减 2是加 if (type===1){ @@ -641,6 +642,9 @@ export default { } this.single = `${y}-${m}` } + uni.showLoading({ + title:'正在加载' + }) // 获取月度考核数据 this.handleGetExamine() this.handleNewGetExamine() @@ -667,6 +671,9 @@ export default { } this.singleDay = `${y}-${m}-${d}` } + uni.showLoading({ + title:'正在加载' + }) // 拿到顶部的巡检数据 this.handleGetDailyPatrol() this.handleNewGetPatrol() @@ -685,17 +692,17 @@ export default { } this.single = `${y}-${m}` // 获取月度考核数据 - + uni.showLoading({ + title:'正在加载' + }) this.handleGetExamine() this.handleNewGetExamine() }else if(this.selectTab===2){ const date = new Date(this.singleDay) let y = date.getFullYear() let m = date.getMonth() + 1 - let d = date.getDate() + 1 - if (nowMonth===m && d>nowDay){ - return + if (nowMonth===m && d>nowDay+1){ }else{ if (nowMonth>m){ let allDay = this.$util.getThisMonthDay(`${y}-${m<10?'0'+m:m}`) @@ -709,10 +716,14 @@ export default { }else{ this.singleDay = `${y}-${m<10?'0'+m:m}-${d<10?'0'+d:d}` } + uni.showLoading({ + title:'正在加载' + }) + // 拿到顶部的巡检数据 + this.handleGetDailyPatrol() + this.handleNewGetPatrol() } - // 拿到顶部的巡检数据 - this.handleGetDailyPatrol() - this.handleNewGetPatrol() + } } }, @@ -857,7 +868,7 @@ export default { } .tabBox{ position: absolute; - width: 100%; + width: calc(100% - 64rpx); display: flex; align-items: center; .tabItem{ diff --git a/pages/revenue/component/otherCharts.vue b/pages/revenue/component/otherCharts.vue index a268f7d..3d04b3d 100644 --- a/pages/revenue/component/otherCharts.vue +++ b/pages/revenue/component/otherCharts.vue @@ -1,7 +1,7 @@ @@ -85,27 +85,26 @@ export default { } }); setTimeout( ()=>{ - _this.canvasToTempImage('month') - },500) + this.canvasToTempImage('month') + },100) }, canvasToTempImage(id){ - let _this = this uni.canvasToTempFilePath({ canvasId:id, complete:(res)=>{ - console.log('res',res) + console.log('res2',res) if (res.tempFilePath){ uni.getFileSystemManager().readFile({ filePath: res.tempFilePath, encoding: 'base64', success: res => { let base64 = 'data:image/png;base64,' + res.data; - _this.preferPath = base64 + this.preferPath = base64 } }) } } - },_this) + },this) }, } } @@ -115,9 +114,5 @@ export default { .main{ width: 128rpx; height: 128rpx; - .month{ - width: 128rpx; - height: 128rpx; - } } diff --git a/pages/revenue/component/yearCharts.vue b/pages/revenue/component/yearCharts.vue index fef6148..08891a9 100644 --- a/pages/revenue/component/yearCharts.vue +++ b/pages/revenue/component/yearCharts.vue @@ -1,7 +1,7 @@ @@ -76,32 +76,38 @@ export default { } }); setTimeout( ()=>{ - console.log('变成图片') - _this.canvasToTempImage('month') - },500) + this.canvasToTempImage('month') + },100) }, canvasToTempImage(id){ - let _this = this uni.canvasToTempFilePath({ canvasId:id, complete:(res)=>{ + console.log('res1',res) if (res.tempFilePath){ uni.getFileSystemManager().readFile({ filePath: res.tempFilePath, encoding: 'base64', success: res => { let base64 = 'data:image/png;base64,' + res.data; - _this.preferPath = base64 - console.log('this.preferPath',_this.preferPath) + this.preferPath = base64 } }) } } - },_this) + },this) }, } } diff --git a/pages/revenue/index.vue b/pages/revenue/index.vue index 11353f5..7fd6ce9 100644 --- a/pages/revenue/index.vue +++ b/pages/revenue/index.vue @@ -1,5 +1,6 @@