|
|
@ -68,7 +68,8 @@ |
|
|
|
getDataSource, |
|
|
|
createRecordInfo, |
|
|
|
calcHandleQty, |
|
|
|
getScanCount |
|
|
|
getScanCount, |
|
|
|
calcHandleQtyPlanOut |
|
|
|
} from '@/common/detail.js'; |
|
|
|
|
|
|
|
import { |
|
|
@ -242,7 +243,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
calcHandleQty(this.detailSource); |
|
|
|
calcHandleQtyPlanOut(this.detailSource); |
|
|
|
this.$forceUpdate() |
|
|
|
}, |
|
|
|
|
|
|
@ -292,6 +293,8 @@ |
|
|
|
toLocationCode:locationCode, |
|
|
|
// inventoryStatus:inventoryStatus, |
|
|
|
// toInventoryStatus:inventoryStatus, |
|
|
|
packQty:Number(result.package.packQty), |
|
|
|
packUnit:result.package.packUnit, |
|
|
|
balance:{}, |
|
|
|
isRecommend:false, |
|
|
|
isNewAdd:"newAdd" |
|
|
@ -308,20 +311,19 @@ |
|
|
|
} else { |
|
|
|
itemDetail.scaned = true; |
|
|
|
itemDetail.handleQty = Number(result.label.qty); |
|
|
|
itemDetail.toLocationCode = this.toLocationCode ? this.toLocationCode : itemDetail |
|
|
|
.toLocationCode; |
|
|
|
itemDetail.packQty = result.package.packQty |
|
|
|
// itemDetail.toLocationCode = this.toLocationCode ? this.toLocationCode : itemDetail |
|
|
|
// .toLocationCode; |
|
|
|
itemDetail.packQty = Number(result.package.packQty) |
|
|
|
itemDetail.packUnit = result.package.packUnit |
|
|
|
itemDetail.labelQty = Number(result.label.qty); |
|
|
|
|
|
|
|
itemDetail.balance={} |
|
|
|
itemDetail.balance.packQty = Number(result.package.packQty) |
|
|
|
itemDetail.balance.packUnit = result.package.packUnit |
|
|
|
this.continueScan() |
|
|
|
} |
|
|
|
} |
|
|
|
let array = [] |
|
|
|
this.detailSource.forEach((item=>{ |
|
|
|
let obj = {...item} |
|
|
|
obj.subList=item.subList.filter(cur=>cur.isRecommend == true) |
|
|
|
array.push(obj) |
|
|
|
})) |
|
|
|
calcHandleQty(array); |
|
|
|
calcHandleQtyPlanOut(this.detailSource); |
|
|
|
} |
|
|
|
|
|
|
|
} catch (e) { |
|
|
@ -352,7 +354,7 @@ |
|
|
|
.toLocationCode; |
|
|
|
itemDetail.packQty = result.package.packQty |
|
|
|
itemDetail.labelQty = Number(result.label.qty); |
|
|
|
calcHandleQty(this.detailSource); |
|
|
|
calcHandleQtyPlanOut(this.detailSource); |
|
|
|
this.continueScan() |
|
|
|
} |
|
|
|
} |
|
|
|