XMLWAN 4 gadus atpakaļ
vecāks
revīzija
f9b61e0779
2 mainītis faili ar 17 papildinājumiem un 15 dzēšanām
  1. 4 2
      src/xt_pages/stock/stockOutOrderAdd.vue
  2. 13 13
      src/xt_permission.js

+ 4 - 2
src/xt_pages/stock/stockOutOrderAdd.vue Parādīt failu

575
             this.$message.success("请添加出库商品");
575
             this.$message.success("请添加出库商品");
576
             return;
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
           const params = {
581
           const params = {
580
             stockOut: this.recordInfo.recordData
582
             stockOut: this.recordInfo.recordData
581
           };
583
           };
582
           console.log(this.recordInfo.recordData);
584
           console.log(this.recordInfo.recordData);
583
-          return
585
+         
584
           postWarehouseOut(
586
           postWarehouseOut(
585
             params,
587
             params,
586
             this.warehouse_out_time,
588
             this.warehouse_out_time,

+ 13 - 13
src/xt_permission.js Parādīt failu

12
 
12
 
13
 router.beforeEach((to, from, next) => {
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
   NProgress.start()
30
   NProgress.start()