28169 vor 1 Monat
Ursprung
Commit
c2b3ee6bfe
2 geänderte Dateien mit 14 neuen und 13 gelöschten Zeilen
  1. 1 0
      src/xt_pages/stock/query/purchaseNewStockQuery.vue
  2. 13 13
      src/xt_permission.js

+ 1 - 0
src/xt_pages/stock/query/purchaseNewStockQuery.vue Datei anzeigen

@@ -268,6 +268,7 @@ export default {
268 268
               if(this.org_id ==10210){
269 269
                 list[i].stockIn = list[i].GoodStartFlowInfo.over_count
270 270
               }else{
271
+                console.log("good_id",list[i].id)
271 272
                 console.log("入库",this.getAllStockIn(list[i].StWarehousingInfoTwo))
272 273
                 console.log("盘盈",this.getAllStockInFlow(list[i].WareStartInStockFlow))
273 274
                 console.log("出库",this.getAllOutStockIn(list[i].WarehouseOutInfoTenty) )

+ 13 - 13
src/xt_permission.js Datei anzeigen

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))