gjy 2 年之前
父节点
当前提交
224375e052
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. 9 2
      src/views/warehousenew/warehousingOrder.vue

+ 9 - 2
src/views/warehousenew/warehousingOrder.vue

@@ -747,7 +747,9 @@ export default {
       }else{
         for(let i =0 ; i<this.warehouseList.length;i++){
           if(this.warehouseList[i].warehouseName == e){
-            for(let j = 0;j<this.warehouseList[i].goodsNameInfos.length;j++){//构造数据,合并重复货名
+            console.log(this.warehouseList[i])
+            if(this.warehouseList[i].goodsNameInfos){
+              for(let j = 0;j<this.warehouseList[i].goodsNameInfos.length;j++){//构造数据,合并重复货名
               if(j==0){
                 this.goodsList.push(this.warehouseList[i].goodsNameInfos[j])
               }else{
@@ -764,10 +766,15 @@ export default {
                 // 
               }
             }
+            }
+            
             this.baseId = this.warehouseList[i].id
             break
           }
-          this.reserve=this.reserve.toFixed(3)
+          // console.log(this.reserve)
+          if(this.reserves){
+            this.reserves=this.reserves.toFixed(3)
+          }
         }
         this.goodsName= '0'
         this.reserves = ''