Selaa lähdekoodia

移动端新增代填日报功能

Lijy 1 vuosi sitten
vanhempi
commit
492dbb51ec

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 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({