|
|
@ -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() |
|
|
|
}, |
|
|
|
|
|
|
@ -289,7 +290,7 @@ |
|
|
|
batch:batch, |
|
|
|
handleQty:Number(result.label.qty), |
|
|
|
qty:detail.qty, |
|
|
|
toLocationCode:locationCode, |
|
|
|
// toLocationCode:locationCode, |
|
|
|
// inventoryStatus:inventoryStatus, |
|
|
|
// toInventoryStatus:inventoryStatus, |
|
|
|
balance:{}, |
|
|
@ -308,20 +309,14 @@ |
|
|
|
} else { |
|
|
|
itemDetail.scaned = true; |
|
|
|
itemDetail.handleQty = Number(result.label.qty); |
|
|
|
itemDetail.toLocationCode = this.toLocationCode ? this.toLocationCode : itemDetail |
|
|
|
.toLocationCode; |
|
|
|
// itemDetail.toLocationCode = this.toLocationCode ? this.toLocationCode : itemDetail |
|
|
|
// .toLocationCode; |
|
|
|
itemDetail.packQty = result.package.packQty |
|
|
|
itemDetail.labelQty = Number(result.label.qty); |
|
|
|
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 +347,7 @@ |
|
|
|
.toLocationCode; |
|
|
|
itemDetail.packQty = result.package.packQty |
|
|
|
itemDetail.labelQty = Number(result.label.qty); |
|
|
|
calcHandleQty(this.detailSource); |
|
|
|
calcHandleQtyPlanOut(this.detailSource); |
|
|
|
this.continueScan() |
|
|
|
} |
|
|
|
} |
|
|
|