XMLWAN 3 years ago
parent
commit
f9b61e0779
2 changed files with 17 additions and 15 deletions
  1. 4 2
      src/xt_pages/stock/stockOutOrderAdd.vue
  2. 13 13
      src/xt_permission.js

+ 4 - 2
src/xt_pages/stock/stockOutOrderAdd.vue View File

@@ -575,12 +575,14 @@ export default {
575 575
             this.$message.success("请添加出库商品");
576 576
             return;
577 577
           }
578
-
578
+          for(let i=0;i<this.recordInfo.recordData.length;i++){
579
+             this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].price.toString()
580
+          }
579 581
           const params = {
580 582
             stockOut: this.recordInfo.recordData
581 583
           };
582 584
           console.log(this.recordInfo.recordData);
583
-          return
585
+         
584 586
           postWarehouseOut(
585 587
             params,
586 588
             this.warehouse_out_time,

+ 13 - 13
src/xt_permission.js View File

@@ -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
 
30 30
   NProgress.start()