考核考评

This commit is contained in:
cclu 2023-05-19 13:38:39 +08:00
parent 7d82886d77
commit eb7ae3a613
2 changed files with 51 additions and 65 deletions

View File

@ -179,7 +179,7 @@ function addUserBehavior(obj) {
} }
obj.visitChannels = store.state.visitChannels obj.visitChannels = store.state.visitChannels
let userDate = store.state.userData let userDate = store.state.userData
console.log('userDate',userDate) console.log('userDate123',userDate)
let req = { let req = {
userName:userDate.UserName, userName:userDate.UserName,
phoneNumber:userDate.Membership_Phone, phoneNumber:userDate.Membership_Phone,
@ -336,15 +336,11 @@ function handleReduceAMonth(nowTime,newTime){
let howDay = this.getThisMonthDay(`${y}-${m}`) let howDay = this.getThisMonthDay(`${y}-${m}`)
let newHowDay = this.getThisMonthDay(`${newY}-${newM}`) let newHowDay = this.getThisMonthDay(`${newY}-${newM}`)
console.log('d',d)
console.log('newHowDay',newHowDay)
const nowDate = new Date() const nowDate = new Date()
let nowM =nowDate.getMonth() + 1 let nowM =nowDate.getMonth() + 1
let nowD = nowDate.getDate() let nowD = nowDate.getDate()
console.log('nowD',nowD)
if (d === newHowDay){ if (d === newHowDay){
if (d<nowD){ if (d<nowD){
console.log('111',`${y}-${newM}-${newHowDay}`)
return `${newY}-${newM}-${newHowDay}` return `${newY}-${newM}-${newHowDay}`
}else{ }else{
if (newM===nowM){ if (newM===nowM){
@ -356,31 +352,23 @@ function handleReduceAMonth(nowTime,newTime){
}else{ }else{
if (newM===2){ if (newM===2){
if (d>newHowDay){ if (d>newHowDay){
console.log('222',`${newY}-${newM}-${newHowDay}`)
return `${newY}-${newM}-${newHowDay}` return `${newY}-${newM}-${newHowDay}`
}else{ }else{
console.log('222',`${newY}-${newM}-${d}`)
return `${newY}-${newM}-${d}` return `${newY}-${newM}-${d}`
} }
}else{ }else{
console.log('nowD',nowD)
console.log('d',d)
if (nowD<d){ if (nowD<d){
if (nowM===newM){ if (nowM===newM){
console.log('3333',`${y}-${newM}-${nowD}`)
return `${newY}-${newM}-${nowD}` return `${newY}-${newM}-${nowD}`
}else{ }else{
if (d<newHowDay){ if (d<newHowDay){
console.log('333',`${y}-${newM}-${d}`)
return `${newY}-${newM}-${d}` return `${newY}-${newM}-${d}`
}else{ }else{
console.log('333',`${y}-${newM}-${newHowDay}`)
return `${newY}-${newM}-${newHowDay}` return `${newY}-${newM}-${newHowDay}`
} }
} }
}else { }else {
console.log('333',`${y}-${newM}-${d}`)
return `${newY}-${newM}-${d}` return `${newY}-${newM}-${d}`
} }
} }

View File

@ -19,12 +19,11 @@
<div class="selectService" @click="handleShowPopup(1)"> <div class="selectService" @click="handleShowPopup(1)">
<image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/examine/fixed.svg"></image> <image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/examine/fixed.svg"></image>
<view class="select"> <view class="select">
<view class="selectContent">
<view class="name">{{selectAreaName}}</view> <view class="name">{{selectAreaName}}</view>
<p class="area">片区</p> <p class="area">片区</p>
<div style="width: 24px;height: 12px"></div>
<image class="rightArrow" src="https://eshangtech.com/ShopICO/ahyd-BID/examine/headMore.svg"></image> <image class="rightArrow" src="https://eshangtech.com/ShopICO/ahyd-BID/examine/headMore.svg"></image>
</view> </view>
</view>
</div> </div>
</div> </div>
<!-- 选择月份 --> <!-- 选择月份 -->
@ -48,6 +47,7 @@
</view> </view>
</view> </view>
<view v-if="selectTab===1" class="serviceList" :style="{height:scrollTop<1?'calc(100vh - 256px)':'calc(100vh - 150px)',overflow:scrollTop<95?'hidden':'scroll'}"> <view v-if="selectTab===1" class="serviceList" :style="{height:scrollTop<1?'calc(100vh - 256px)':'calc(100vh - 150px)',overflow:scrollTop<95?'hidden':'scroll'}">
<view v-if="serviceList.length>0">
<view class="serviceItem" v-for="(item,index) in serviceList" :key="index"> <view class="serviceItem" v-for="(item,index) in serviceList" :key="index">
<view class="itemTitle"> <view class="itemTitle">
<span class="title">{{item.SERVERPART_NAME}}</span> <span class="title">{{item.SERVERPART_NAME}}</span>
@ -77,6 +77,14 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="serviceList.length>0" class="load-more" style="height: 20px">
<text>{{'——— 我是有底线的 ———'}}</text>
</view>
<view class="noData" v-else>
<image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/examine/noData.svg"></image>
<p class="text">暂无数据</p>
</view>
</view>
<view v-if="selectTab===2" class="serviceList" :style="{height:scrollTop<1?'calc(100vh - 256px)':'calc(100vh - 210px)',overflow:scrollTop<95?'hidden':'scroll'}"> <view v-if="selectTab===2" class="serviceList" :style="{height:scrollTop<1?'calc(100vh - 256px)':'calc(100vh - 210px)',overflow:scrollTop<95?'hidden':'scroll'}">
<view v-if="inspectionList.length>0"> <view v-if="inspectionList.length>0">
<view class="dailyInspection" v-for="(item,index) in inspectionList" :key="index"> <view class="dailyInspection" v-for="(item,index) in inspectionList" :key="index">
@ -117,6 +125,9 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="inspectionList.length>0" class="load-more" style="height: 20px">
<text>{{'——— 我是有底线的 ———'}}</text>
</view>
<view class="noData" v-else> <view class="noData" v-else>
<image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/examine/noData.svg"></image> <image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/examine/noData.svg"></image>
<p class="text">暂无数据</p> <p class="text">暂无数据</p>
@ -163,6 +174,9 @@
</view> </view>
</view> </view>
<view v-if="meetDetailList.length>0" class="load-more" style="height: 20px">
<text>{{'——— 我是有底线的 ———'}}</text>
</view>
<view class="noData" v-else> <view class="noData" v-else>
<image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/examine/noData.svg"></image> <image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/examine/noData.svg"></image>
<p class="text">暂无数据</p> <p class="text">暂无数据</p>
@ -262,8 +276,6 @@ export default {
popupServiceShowList:[],// popupServiceShowList:[],//
popupServiceName:'',// popupServiceName:'',//
popupMeetDetail:{},// popupMeetDetail:{},//
str1:'陈佳、赵卓雅、张三、陈佳、赵卓雅、陈佳、赵卓雅、张三、里斯、李青青',
str2:'这里是会议内容,这里是会议内容,这里是会议内容,这里是会议内容,这里是是会议内容,这里是会议内容,这里是会议内容,这里是会议内容这里是会议内容,这里是会议内容,这里是会议内容,这里是会议内容,这里是是会议内容'
} }
}, },
onLoad(){ onLoad(){
@ -272,6 +284,7 @@ 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()
// lastDay
this.searchTime = uni.getStorageSync('lastDay') this.searchTime = uni.getStorageSync('lastDay')
this.lastDay = uni.getStorageSync('lastDay') this.lastDay = uni.getStorageSync('lastDay')
// //
@ -285,6 +298,7 @@ export default {
this.getAreaList() this.getAreaList()
}, },
onReady(){ onReady(){
//
var _this = this; var _this = this;
_this.getThisMonth() _this.getThisMonth()
}, },
@ -313,7 +327,6 @@ export default {
this.popupServiceList = obj.list this.popupServiceList = obj.list
// //
this.popupServiceShowList = this.popupServiceList[0] this.popupServiceShowList = this.popupServiceList[0]
console.log('this.popupServiceShowList',this.popupServiceShowList)
// //
let list = [] let list = []
obj.list.forEach((item,index)=>{ obj.list.forEach((item,index)=>{
@ -322,7 +335,6 @@ export default {
this.popupTab = list this.popupTab = list
}else if (value===3){ }else if (value===3){
this.popupMeetDetail = obj.list[0].SERVERPARTList[0] this.popupMeetDetail = obj.list[0].SERVERPARTList[0]
console.log('this.popupMeetDetail',this.popupMeetDetail)
} }
// //
this.showPop = true this.showPop = true
@ -338,13 +350,10 @@ export default {
this.selectMonth = value this.selectMonth = value
// //
const nowDate = new Date() const nowDate = new Date()
let nowYear = nowDate.getFullYear()
let nowMonth = nowDate.getMonth() + 1 let nowMonth = nowDate.getMonth() + 1
let nowDay = nowDate.getDate()
// //
const date = new Date(this.searchTime) const date = new Date(this.searchTime)
let y = date.getFullYear() let y = date.getFullYear()
let m = date.getMonth() + 1
// //
if (nowMonth === this.selectMonth){ if (nowMonth === this.selectMonth){
this.searchTime = this.lastDay this.searchTime = this.lastDay
@ -361,9 +370,9 @@ export default {
const selectTime = new Date(this.selectDate) const selectTime = new Date(this.selectDate)
let selectY = selectTime.getFullYear() let selectY = selectTime.getFullYear()
let selectM = selectTime.getMonth() + 1 let selectM = selectTime.getMonth() + 1
let selectD = selectTime.getDate() - 4>0?selectTime.getDate() - 4:1 //
let selectD = selectTime.getDate() - 4 > 0?selectTime.getDate() - 4:1
this.currentDate = 'item' + `${selectY}-${selectM}-${selectD}` this.currentDate = 'item' + `${selectY}-${selectM}-${selectD}`
if (this.selectTab===1){ if (this.selectTab===1){
// //
this.getManagerList() this.getManagerList()
@ -409,8 +418,8 @@ export default {
let d = date.getDate() let d = date.getDate()
const selectDay = new Date(time) const selectDay = new Date(time)
let selectM = selectDay.getMonth() +1 let selectM = selectDay.getMonth() +1
let selectd = selectDay.getDate() let selectD = selectDay.getDate()
if (d<selectd && m<=selectM){ if (d < selectD && m <= selectM){
uni.showModal({ uni.showModal({
title: `日常巡检仅支持查看${m}${d}号及之前的数据`, title: `日常巡检仅支持查看${m}${d}号及之前的数据`,
icon:'none', icon:'none',
@ -447,6 +456,7 @@ export default {
list.push({label:item.name.split('片区')[0],value:item.value}) list.push({label:item.name.split('片区')[0],value:item.value})
}) })
this.areaList = list this.areaList = list
//
this.selectAreaValue = this.areaList[0].value this.selectAreaValue = this.areaList[0].value
this.selectAreaName = this.areaList[0].label this.selectAreaName = this.areaList[0].label
// selectAreaValue // selectAreaValue
@ -456,6 +466,7 @@ export default {
}, },
// //
handleChangeArea(item){ handleChangeArea(item){
// id
this.selectAreaValue = item.value this.selectAreaValue = item.value
this.selectAreaName = item.label this.selectAreaName = item.label
if (this.selectTab===1){ if (this.selectTab===1){
@ -468,6 +479,7 @@ export default {
// //
this.getMeetingDetail() this.getMeetingDetail()
} }
//
this.hidePopup() this.hidePopup()
}, },
// //
@ -492,7 +504,6 @@ export default {
}, },
// //
async getDailyInspectionList(){ async getDailyInspectionList(){
console.log('this.selectDate',this.selectDate)
const res = await request.$webGet(`CommercialApi/Examine/WeChat_GetPatrolList`,{ const res = await request.$webGet(`CommercialApi/Examine/WeChat_GetPatrolList`,{
SearchStartDate:this.selectDate,// SearchStartDate:this.selectDate,//
SearchEndDate:this.selectDate,// SearchEndDate:this.selectDate,//
@ -510,22 +521,12 @@ export default {
Serverpart_ID:'',// "," Serverpart_ID:'',// ","
}) })
this.meetDetailList = res.Result_Data this.meetDetailList = res.Result_Data
console.log('this.meetDetailList',this.meetDetailList)
} }
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
//@font-face {
// font-family: 'Alimama ShuHeiTi';
// src: url("https://eshangtech.com/ShopICO/ahyd-BID/style/Alimama_ShuHeiTi_Bold.ttf");
// font-weight: normal;
// font-style: normal;
// font-display: swap;
//}
.main{ .main{
width: 100%; width: 100%;
height: calc(100vh + 105px); height: calc(100vh + 105px);
@ -590,9 +591,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
position: relative; position: relative;
.selectContent{
display: flex;
align-items: center;
.name{ .name{
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Semibold, PingFang SC; font-family: PingFangSC-Semibold, PingFang SC;
@ -612,7 +611,6 @@ export default {
width: 24px; width: 24px;
height: 12px; height: 12px;
} }
}
} }
} }