gjy 1 rok pred
rodič
commit
0b4bc3e7a1

+ 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)