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