|
|
@ -143,7 +143,7 @@ |
|
|
|
label: {}, |
|
|
|
fromInventoryStatuses: "", |
|
|
|
packageInfo: {}, |
|
|
|
toLocationAreaTypeList:[] |
|
|
|
toLocationAreaTypeList: [] |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
@ -197,7 +197,7 @@ |
|
|
|
that.fromInventoryStatuses = this.jobContent.outInventoryStatuses |
|
|
|
that.toLocation = that.dataContent[0]; |
|
|
|
that.toLocationCode = that.dataContent[0].toLocationCode; |
|
|
|
that.toLocationAreaTypeList=getDirectoryItemArray(this.jobContent.toAreaTypes) |
|
|
|
that.toLocationAreaTypeList = getDirectoryItemArray(this.jobContent.toAreaTypes) |
|
|
|
// that.fromLocationList = that.getFromLocationList(); |
|
|
|
} |
|
|
|
}, |
|
|
@ -231,7 +231,7 @@ |
|
|
|
let location = this.fromLocationList.find(r => r == fromlocation) |
|
|
|
if (location == undefined) { |
|
|
|
this.fromLocationCode = '' |
|
|
|
this.showErrorMessage('发料库位【' + fromlocation + '】不存在',res=>{ |
|
|
|
this.showErrorMessage('发料库位【' + fromlocation + '】不存在', res => { |
|
|
|
this.getfocus(); |
|
|
|
}) |
|
|
|
} |
|
|
@ -417,7 +417,9 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
selectBalanceItem(balance) { |
|
|
|
if(balance){ |
|
|
|
this.afterGetBalance(this.label, balance, this.packageInfo); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
afterGetBalance(label, balance, packageInfo) { |
|
|
@ -431,7 +433,7 @@ |
|
|
|
that.fromLocationCode = balance.locationCode; |
|
|
|
let fromLocation = item.Locations.find(l => l.fromLocationCode == that.fromLocationCode); |
|
|
|
//如果库存余额中的库位与任务推荐的不一致 |
|
|
|
if (fromLocation != undefined) { |
|
|
|
if (fromLocation && !fromLocation.isNewAdd) { |
|
|
|
let batch = fromLocation.Batchs.find(r => r.batch == lot); |
|
|
|
if (batch != undefined) { |
|
|
|
if (batch.Records == undefined) { |
|
|
@ -487,8 +489,24 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
|
|
|
|
if (this.jobContent.allowModifyLocation == "TRUE") { |
|
|
|
this.showQuestionMessage("扫描物料[" + itemCode + "]的库位【" + that.fromLocationCode + |
|
|
|
"】与推荐的库位不一致,是否要继续发料?", res => { |
|
|
|
if (res) { |
|
|
|
let locaion = that.createLocationInfo(label, balance, packageInfo); |
|
|
|
item.Locations.push(locaion); |
|
|
|
this.getfocus(); |
|
|
|
that.$emit("afterScan"); |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
} else { |
|
|
|
this.showErrorMessage("扫描物料[" + itemCode + "]的库位【" + that.fromLocationCode + |
|
|
|
"】与推荐的库位不一致,不允许继续发料?") |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} catch (e) { |
|
|
|
this.showErrorMessage(e.stack, |
|
|
@ -506,6 +524,7 @@ |
|
|
|
qty: balance.qty, |
|
|
|
uom: balance.uom, |
|
|
|
handleQty: 0, |
|
|
|
isNewAdd: true, |
|
|
|
Batchs: [] |
|
|
|
} |
|
|
|
let batch = this.createBatchInfo(label, balance, packageInfo); |
|
|
|