This commit is contained in:
cclu 2024-04-07 16:13:10 +08:00
parent 925b0a5ae7
commit ec8a9ca99d
3 changed files with 71 additions and 60 deletions

View File

@ -280,10 +280,13 @@ export default {
this.handleTab(this.selectTab)
},
handleBack(){
uni.navigateBack({
delta: 1
});
},
uni.switchTab({
url: '/pages/index/index'
});
// uni.navigateBack({
// delta: 1
// });
},
//
async handleGetServiceList(){
const req = {

View File

@ -1611,6 +1611,7 @@ export default {
showMoreFixed:false,//
profitSharingList:[],// list
isShowFestival:'qm',//
oldSwiperIndex: 0,// swiper 1 return
}
},
watch:{
@ -2432,63 +2433,70 @@ export default {
console.log('1')
console.log('this.stopSwiper',this.stopSwiper)
console.log('e',e.detail.current)
this.showRateChart = false
if (!this.stopSwiper){
this.selectMonth = e.detail.current>11?(e.detail.current + 1)%12===0?12:(e.detail.current + 1)%12:e.detail.current + 1
this.oldSwiperIndex = e.detail.current
setTimeout(()=>{
if (this.oldSwiperIndex === e.detail.current){
this.showRateChart = false
if (!this.stopSwiper){
this.selectMonth = e.detail.current>11?(e.detail.current + 1)%12===0?12:(e.detail.current + 1)%12:e.detail.current + 1
this.selectMonthIndex = e.detail.current
this.selectDetail = e.detail.current
console.log('this.selectMonth',this.selectMonth)
console.log('this.selectDetail',this.selectDetail)
let y = e.detail.current>11? Math.floor((e.detail.current + 1)%12===0?(e.detail.current + 1)/12-1:(e.detail.current + 1)/12) : 0
let m = e.detail.current>11?(e.detail.current + 1)%12===0?12:(e.detail.current + 1)%12:e.detail.current + 1
const date = new Date(this.lastDay)
// let y = date.getFullYear()
// let m = e.detail.current + 1
if(m<10){
m='0'+m
}
this.single = `${2023+y}-${m}`
this.showTableData = null
this.currentPeriodData = null
// this.yesObj = null
this.typeList = []
this.revenueMoney = ''
this.externalMoney = ''
this.carInfo = null
this.examineObj = null
this.trafficCurrentObj = null
this.trafficeUnit = null
this.trafficYOYObj = null
this.trafficQOQObj = null
this.dailyExamineObj = null
this.monthAdd = null
console.log('this.typeList',this.typeList)
//
this.initYesterdayData(this.selectMonth!==date.getMonth()+1)
//
// this.monthYearPlan()
//
//
let carDate
if (this.selectMonth === date.getMonth()+1){
carDate = this.lastDay
}else{
carDate = `${2023+y}-${m}`
}
this.getCarInfo(carDate)
//
// this.handleGetExamine()
//
// this.handleGetDailyPatrol()
//
this.handleGetAllCarTraffic()
}else{
setTimeout(()=>{
this.showRateChart = true
},1500)
}
}
},1000)
this.selectMonthIndex = e.detail.current
this.selectDetail = e.detail.current
console.log('this.selectMonth',this.selectMonth)
console.log('this.selectDetail',this.selectDetail)
let y = e.detail.current>11? Math.floor((e.detail.current + 1)%12===0?(e.detail.current + 1)/12-1:(e.detail.current + 1)/12) : 0
let m = e.detail.current>11?(e.detail.current + 1)%12===0?12:(e.detail.current + 1)%12:e.detail.current + 1
const date = new Date(this.lastDay)
// let y = date.getFullYear()
// let m = e.detail.current + 1
if(m<10){
m='0'+m
}
this.single = `${2023+y}-${m}`
this.showTableData = null
this.currentPeriodData = null
// this.yesObj = null
this.typeList = []
this.revenueMoney = ''
this.externalMoney = ''
this.carInfo = null
this.examineObj = null
this.trafficCurrentObj = null
this.trafficeUnit = null
this.trafficYOYObj = null
this.trafficQOQObj = null
this.dailyExamineObj = null
this.monthAdd = null
console.log('this.typeList',this.typeList)
//
this.initYesterdayData(this.selectMonth!==date.getMonth()+1)
//
this.monthYearPlan()
//
//
let carDate
if (this.selectMonth === date.getMonth()+1){
carDate = this.lastDay
}else{
carDate = `${2023+y}-${m}`
}
this.getCarInfo(carDate)
//
this.handleGetExamine()
//
this.handleGetDailyPatrol()
//
this.handleGetAllCarTraffic()
}else{
setTimeout(()=>{
this.showRateChart = true
},1500)
}
},
handleShowYDModal(){
this.ydModal = !this.ydModal

View File

@ -354,7 +354,7 @@ export default {
data: [
{
min: 0,
max:3000
max: this.selectFestival===0?3000:1500
}
]
},