소스 검색

移动端新增代填日报功能

Lijy 1 년 전
부모
커밋
492dbb51ec
2개의 변경된 파일2131개의 추가작업 그리고 2032개의 파일을 삭제
  1. 2127 2032
      fhKeeper/formulahousekeeper/timesheet_h5/src/views/edit/index.vue
  2. 4 0
      fhKeeper/formulahousekeeper/timesheet_h5/src/views/index/index.vue

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 2127 - 2032
fhKeeper/formulahousekeeper/timesheet_h5/src/views/edit/index.vue


+ 4 - 0
fhKeeper/formulahousekeeper/timesheet_h5/src/views/index/index.vue

@@ -182,6 +182,7 @@
                     });
                 }
                 var list = this.user.moduleList
+                let jurisdictionNameList = this.user.functionList.map(item => item.name)
                 for (var i in list) {
                     if(list[i].name == '工时报告') {
                         this.routers.push({name: '查看日报',url: '/calendar',icon: 'description'})
@@ -191,6 +192,9 @@
                         if (this.user.companyId != 3092) {
                             this.routers.push({name: '按周填报',url: '/weekEdit',icon: 'records'})
                         }
+                        if(jurisdictionNameList.some(item => item == '代填日报')) {
+                            this.routers.push({name: '代填日报',url: '/edit?substitute=true',icon: 'completed'})
+                        }
                     }
                     if(list[i].name == '待办任务') {
                         this.routers.push({