소스 검색

调整移动端按周填报的技术按天数

Lijy 2 년 전
부모
커밋
800b99d886
1개의 변경된 파일14개의 추가작업 그리고 6개의 파일을 삭제
  1. 14 6
      fhKeeper/formulahousekeeper/timesheet_h5/src/views/edit/weekEdit.vue

+ 14 - 6
fhKeeper/formulahousekeeper/timesheet_h5/src/views/edit/weekEdit.vue

@@ -618,11 +618,22 @@
             },
             // 获取周填报时间数据
             getDateRange(){
-                if(this.user.companyId == 817){
-                    this.weekIndex = 6
-                }else{
+                // if(this.user.companyId == 817){
+                //     this.weekIndex = 6
+                // }else{
+                //     this.weekIndex = 5
+                // }
+                if(this.user.timeType.alertNonWorkday) {
+                    if(this.user.timeType.alertNonWorkday == '110' || this.user.timeType.alertNonWorkday == '10') {
+                        this.weekIndex = 7
+                    }
+                    if(this.user.timeType.alertNonWorkday == '100') {
+                        this.weekIndex = 6
+                    }
+                } else {
                     this.weekIndex = 5
                 }
+
                 let nowDate = new Date()
                 let nowWeekday = nowDate.getDay()
                 let shuldDate
@@ -1979,9 +1990,6 @@
                 this.timeRange.push(i)
             }
             this.getDateRange()
-            // if(user.companyId == '817')
-            // console.log('userId',this.user.companyId);
-            // console.log(localStorage.getItem("formVal"))
             var ua = navigator.userAgent.toLowerCase();
             this.isIOSystem = this.isIOS();
             if (ua.indexOf("wxwork") > 0) {