gjy 1 年之前
父節點
當前提交
0b4bc3e7a1
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      src/views/warehousenew/warehousingOrder.vue

+ 4 - 5
src/views/warehousenew/warehousingOrder.vue

@@ -1022,20 +1022,19 @@ export default {
       
     },
     binNumberchange(e,item,index){
-      this.rollweight=0
       for (let i = 0; i < this.binNumberList.length; i++) {
         if(this.binNumberList[i].binNumber==e){
           item.positionId=this.binNumberList[i].id
           // item.weight=this.binNumberList[i].goodsweight
-          if(this.binNumberList[i].goodsweight>(this.rolloutData.transferOutWeight1-this.rollweight)){
-            item.weight=this.rolloutData.transferOutWeight1-this.rollweight
-          }else if(this.binNumberList[i].goodsweight>(this.rolloutData.transferOutWeight1-this.rollweight)){
+          if(this.binNumberList[i].goodsweight>this.rolloutData.transferOutWeight1){
+            item.weight=this.rolloutData.transferOutWeight1
+          }else if(this.binNumberList[i].goodsweight<this.rolloutData.transferOutWeight1){
             item.weight=this.binNumberList[i].goodsweight
           }
           item.goodsweight=this.binNumberList[i].goodsweight
         }
       }
-      
+      this.rollweight=0
       for (let i = 0; i < this.rolloutData.cargoPositionDetailsList.length; i++) {
         if(this.rolloutData.cargoPositionDetailsList[i].weight){
           this.rollweight+=Number(this.rolloutData.cargoPositionDetailsList[i].weight)