Pārlūkot izejas kodu

物奇查看日报中,点击填写时跳到按周填报

seyason 1 gadu atpakaļ
vecāks
revīzija
60dc9bbdbe

+ 17 - 6
fhKeeper/formulahousekeeper/timesheet_h5/src/views/view/index.vue

@@ -252,12 +252,23 @@ export default {
         },
         // 去填写日报
         toWriteReport() {
-            this.$router.push({
-                path: '/edit',
-                query: {
-                    date: this.nowTime
-                }
-            });
+            if(this.user.companyId == '1071') {
+                //物奇要填到按周填报
+                this.$router.push({
+                    path: '/weekEdit',
+                    query: {
+                        date: this.nowTime
+                    }
+                });
+            } else {
+                this.$router.push({
+                    path: '/edit',
+                    query: {
+                        date: this.nowTime
+                    }
+                });
+            }
+            
         }
     },
     mounted() {