|
|
@ -290,17 +290,17 @@ |
|
|
|
newDetail.fromLocationCode = result.fromLocationCode |
|
|
|
item.subList.push(newDetail); |
|
|
|
} else { |
|
|
|
this.showErrorMessage("包装["+detail.packingNumber+"]\n"+ |
|
|
|
"批次["+detail.batch+"]\n"+"库位["+detail.fromLocationCode+"]\n"+ |
|
|
|
"库存状态["+getInventoryStatusName(detail.toInventoryStatus)+"]\n" |
|
|
|
+ "重复扫描") |
|
|
|
this.showErrorMessage("包装[" + detail.packingNumber + "]\n" + |
|
|
|
"批次[" + detail.batch + "]\n" + "库位[" + detail.fromLocationCode + "]\n" + |
|
|
|
"库存状态[" + getInventoryStatusName(detail.toInventoryStatus) + "]\n" + |
|
|
|
"重复扫描") |
|
|
|
} |
|
|
|
} |
|
|
|
calcHandleQty(this.detailSource); |
|
|
|
|
|
|
|
}, |
|
|
|
showErrorMessage(message) { |
|
|
|
if(this.$refs.scanPopup){ |
|
|
|
if (this.$refs.scanPopup) { |
|
|
|
this.$refs.scanPopup.packLoseFocus() |
|
|
|
} |
|
|
|
this.$refs.comMessage.showErrorMessage(message, res => { |
|
|
@ -386,22 +386,22 @@ |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
submit(){ |
|
|
|
submit() { |
|
|
|
//目标库位和状态都一致时不可以提交 |
|
|
|
var params = this.setParams() |
|
|
|
let hint="" |
|
|
|
this.dataContent.subList.forEach(res=>{ |
|
|
|
if(res.fromLocationCode==res.toLocationCode){ |
|
|
|
if(res.fromInventoryStatus==res.toInventoryStatus){ |
|
|
|
hint +=`包装号【${res.fromPackingNumber}】来源库位与目标库位 来源状态与目标状态一致,不可以提交\n` |
|
|
|
let hint = "" |
|
|
|
this.dataContent.subList.forEach(res => { |
|
|
|
if (res.fromLocationCode == res.toLocationCode) { |
|
|
|
if (res.fromInventoryStatus == res.toInventoryStatus) { |
|
|
|
var resultHint = res.fromPackingNumber?`包装号【${res.fromPackingNumber}】`:"" |
|
|
|
hint += resultHint+`来源库位与目标库位 来源状态与目标状态一致,不可以提交\n` |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
if(hint){ |
|
|
|
if (hint) { |
|
|
|
uni.hideLoading() |
|
|
|
this.$refs.comMessage.showQuestionMessage1(hint, 'red', res => { |
|
|
|
if (res) { |
|
|
|
} |
|
|
|
if (res) {} |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
@ -425,9 +425,7 @@ |
|
|
|
this.detailSource.forEach(item => { |
|
|
|
item.subList.forEach(detail => { |
|
|
|
if (detail.scaned) { |
|
|
|
if (detail.toLocationCode == '') { |
|
|
|
detail.toLocationCode = this.toLocationCode; |
|
|
|
} |
|
|
|
var filterResult = itemList.filter(res => { |
|
|
|
if (res.itemCode == item.itemCode && |
|
|
|
detail.toLocationCode == res.locationCode) { |
|
|
|