|
@ -49,7 +49,7 @@ |
|
|
import comBlankView from '@/mycomponents/common/comBlankView.vue' |
|
|
import comBlankView from '@/mycomponents/common/comBlankView.vue' |
|
|
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue" |
|
|
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue" |
|
|
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue" |
|
|
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue" |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
getInventoryStatusName |
|
|
getInventoryStatusName |
|
|
} from '@/common/directory.js'; |
|
|
} from '@/common/directory.js'; |
|
@ -282,7 +282,7 @@ |
|
|
} else { |
|
|
} else { |
|
|
newDetail.toInventoryStatus = this.toInventoryStatus; |
|
|
newDetail.toInventoryStatus = this.toInventoryStatus; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (newDetail.packingNumber == '') { |
|
|
if (newDetail.packingNumber == '') { |
|
|
newDetail.packingNumber = pack.number; |
|
|
newDetail.packingNumber = pack.number; |
|
|
} |
|
|
} |
|
@ -290,17 +290,17 @@ |
|
|
newDetail.fromLocationCode = result.fromLocationCode |
|
|
newDetail.fromLocationCode = result.fromLocationCode |
|
|
item.subList.push(newDetail); |
|
|
item.subList.push(newDetail); |
|
|
} else { |
|
|
} else { |
|
|
this.showErrorMessage("包装["+detail.packingNumber+"]\n"+ |
|
|
this.showErrorMessage("包装[" + detail.packingNumber + "]\n" + |
|
|
"批次["+detail.batch+"]\n"+"库位["+detail.fromLocationCode+"]\n"+ |
|
|
"批次[" + detail.batch + "]\n" + "库位[" + detail.fromLocationCode + "]\n" + |
|
|
"库存状态["+getInventoryStatusName(detail.toInventoryStatus)+"]\n" |
|
|
"库存状态[" + getInventoryStatusName(detail.toInventoryStatus) + "]\n" + |
|
|
+ "重复扫描") |
|
|
"重复扫描") |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
calcHandleQty(this.detailSource); |
|
|
calcHandleQty(this.detailSource); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
showErrorMessage(message) { |
|
|
showErrorMessage(message) { |
|
|
if(this.$refs.scanPopup){ |
|
|
if (this.$refs.scanPopup) { |
|
|
this.$refs.scanPopup.packLoseFocus() |
|
|
this.$refs.scanPopup.packLoseFocus() |
|
|
} |
|
|
} |
|
|
this.$refs.comMessage.showErrorMessage(message, res => { |
|
|
this.$refs.comMessage.showErrorMessage(message, res => { |
|
@ -359,7 +359,7 @@ |
|
|
// this.showErrorMessage("来源库位和目标库位不能一致") |
|
|
// this.showErrorMessage("来源库位和目标库位不能一致") |
|
|
// return; |
|
|
// return; |
|
|
// } |
|
|
// } |
|
|
|
|
|
|
|
|
if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) { |
|
|
if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) { |
|
|
//查询管理模式 |
|
|
//查询管理模式 |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
@ -372,7 +372,7 @@ |
|
|
getPrecisionStrategyList(precisionStrategParams, res => { |
|
|
getPrecisionStrategyList(precisionStrategParams, res => { |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
this.managementList = res.list; |
|
|
this.managementList = res.list; |
|
|
this.submit() |
|
|
this.submit() |
|
|
} else { |
|
|
} else { |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
this.showErrorMessage(res.message); |
|
|
this.showErrorMessage(res.message); |
|
@ -385,22 +385,23 @@ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
submit(){ |
|
|
submit() { |
|
|
//目标库位和状态都一致时不可以提交 |
|
|
//目标库位和状态都一致时不可以提交 |
|
|
var params = this.setParams() |
|
|
var params = this.setParams() |
|
|
let hint="" |
|
|
let hint = "" |
|
|
this.dataContent.subList.forEach(res=>{ |
|
|
this.dataContent.subList.forEach(res => { |
|
|
if(res.fromLocationCode==res.toLocationCode&& |
|
|
if (res.fromLocationCode == res.toLocationCode) { |
|
|
res.fromInventoryStatus==res.toInventoryStatus){ |
|
|
if (res.fromInventoryStatus == res.toInventoryStatus) { |
|
|
hint +=`包装号【${res.fromPackingNumber}】来源库位与目标库位 来源状态与目标状态一致,不可以提交\n` |
|
|
var resultHint = res.fromPackingNumber?`包装号【${res.fromPackingNumber}】`:"" |
|
|
|
|
|
hint += resultHint+`来源库位与目标库位 来源状态与目标状态一致,不可以提交\n` |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if(hint){ |
|
|
if (hint) { |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
this.$refs.comMessage.showQuestionMessage1(hint, 'red', res => { |
|
|
this.$refs.comMessage.showQuestionMessage1(hint, 'red', res => { |
|
|
if (res) { |
|
|
if (res) {} |
|
|
} |
|
|
|
|
|
}); |
|
|
}); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
@ -424,9 +425,7 @@ |
|
|
this.detailSource.forEach(item => { |
|
|
this.detailSource.forEach(item => { |
|
|
item.subList.forEach(detail => { |
|
|
item.subList.forEach(detail => { |
|
|
if (detail.scaned) { |
|
|
if (detail.scaned) { |
|
|
if (detail.toLocationCode == '') { |
|
|
detail.toLocationCode = this.toLocationCode; |
|
|
detail.toLocationCode = this.toLocationCode; |
|
|
|
|
|
} |
|
|
|
|
|
var filterResult = itemList.filter(res => { |
|
|
var filterResult = itemList.filter(res => { |
|
|
if (res.itemCode == item.itemCode && |
|
|
if (res.itemCode == item.itemCode && |
|
|
detail.toLocationCode == res.locationCode) { |
|
|
detail.toLocationCode == res.locationCode) { |
|
|