|
|
@ -237,9 +237,6 @@ |
|
|
|
getScanResult(result) { |
|
|
|
var balance = result.balance; |
|
|
|
var pack = result.package; |
|
|
|
if(!balance.packingNumber){ |
|
|
|
balance.packingNumber=pack.number; |
|
|
|
} |
|
|
|
var item = this.detailSource.find(res => { |
|
|
|
if (res.itemCode == balance.itemCode) { |
|
|
|
return res |
|
|
@ -264,8 +261,8 @@ |
|
|
|
this.detailSource.push(itemp) |
|
|
|
} else { |
|
|
|
var detail = item.subList.find(r => { |
|
|
|
if (r.packingNumber == balance.packingNumber && |
|
|
|
r.batch == balance.batch && |
|
|
|
if (r.packingNumber == pack.number && |
|
|
|
r.batch == pack.batch && |
|
|
|
r.fromLocationCode == balance.locationCode && |
|
|
|
r.toInventoryStatus == balance.inventoryStatus && |
|
|
|
r.scaned == true) { |
|
|
@ -285,7 +282,7 @@ |
|
|
|
newDetail.fromLocationCode = result.fromLocationCode |
|
|
|
item.subList.push(newDetail); |
|
|
|
} else { |
|
|
|
this.showErrorMessage(balance.packingNumber + "重复扫描") |
|
|
|
this.showErrorMessage(detail.packingNumber + "重复扫描") |
|
|
|
} |
|
|
|
} |
|
|
|
calcHandleQty(this.detailSource); |
|
|
@ -362,7 +359,7 @@ |
|
|
|
if (res.success) { |
|
|
|
this.managementList = res.list; |
|
|
|
var params = this.setParams() |
|
|
|
// console.log("提交" + JSON.stringify(params)) |
|
|
|
console.log("提交" + JSON.stringify(params)) |
|
|
|
inventoryMoveRecordSubmit(params).then(res => { |
|
|
|
uni.hideLoading() |
|
|
|
if (res.data) { |
|
|
|