|
@ -203,8 +203,6 @@ |
|
|
that.subList = res.data.subList; |
|
|
that.subList = res.data.subList; |
|
|
// that.detailSource = res.data; |
|
|
// that.detailSource = res.data; |
|
|
that.detailSource = getThreeDataSource(that.jobContent) |
|
|
that.detailSource = getThreeDataSource(that.jobContent) |
|
|
console.log(999,that.detailSource) |
|
|
|
|
|
|
|
|
|
|
|
that.toLocationCode = that.subList[0].toLocationCode |
|
|
that.toLocationCode = that.subList[0].toLocationCode |
|
|
that.allowBiggerQty = res.data.allowBiggerQty; |
|
|
that.allowBiggerQty = res.data.allowBiggerQty; |
|
|
that.resizeCollapse(); |
|
|
that.resizeCollapse(); |
|
@ -231,7 +229,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getScanResult(result, managementTypeParams) { |
|
|
getScanResult(result, managementTypeParams) { |
|
|
console.log(222,result) |
|
|
|
|
|
this.managementType = managementTypeParams |
|
|
this.managementType = managementTypeParams |
|
|
if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){ |
|
|
if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){ |
|
|
this.setDataBatch(result) |
|
|
this.setDataBatch(result) |
|
@ -253,7 +250,6 @@ |
|
|
this.showMessage("没有库存余额") |
|
|
this.showMessage("没有库存余额") |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
console.log(9558,result) |
|
|
|
|
|
// var inventoryStatus = "OK"; |
|
|
// var inventoryStatus = "OK"; |
|
|
var detail = this.detailSource.find(r => r.itemCode == itemCode); |
|
|
var detail = this.detailSource.find(r => r.itemCode == itemCode); |
|
|
|
|
|
|
|
@ -285,7 +281,6 @@ |
|
|
if (isExit == undefined) { |
|
|
if (isExit == undefined) { |
|
|
// this.showErrorMessage("批次【" + batch + "】库位【" + result |
|
|
// this.showErrorMessage("批次【" + batch + "】库位【" + result |
|
|
// .fromLocationCode + "】不在列表中") |
|
|
// .fromLocationCode + "】不在列表中") |
|
|
console.log(222,this.fromLocationCode) |
|
|
|
|
|
detail.subList.push({ |
|
|
detail.subList.push({ |
|
|
scaned:true, |
|
|
scaned:true, |
|
|
fromLocationCode:this.fromLocationCode, |
|
|
fromLocationCode:this.fromLocationCode, |
|
@ -306,7 +301,6 @@ |
|
|
// toLocationCode : result.balance.toLocationCode, |
|
|
// toLocationCode : result.balance.toLocationCode, |
|
|
// }] |
|
|
// }] |
|
|
}) |
|
|
}) |
|
|
console.log(999,detail) |
|
|
|
|
|
detail.handleQty = 0 |
|
|
detail.handleQty = 0 |
|
|
detail.qty = 0 |
|
|
detail.qty = 0 |
|
|
detail.subList.forEach(item=>{ |
|
|
detail.subList.forEach(item=>{ |
|
@ -369,7 +363,6 @@ |
|
|
detail.handleQty = calc.add(detail.handleQty,item.handleQty) |
|
|
detail.handleQty = calc.add(detail.handleQty,item.handleQty) |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
debugger |
|
|
|
|
|
itemDetail.scaned = true; |
|
|
itemDetail.scaned = true; |
|
|
this.detailSource[0].subList.sort(compareAsc('scaned')); //按扫描信息排序 |
|
|
this.detailSource[0].subList.sort(compareAsc('scaned')); //按扫描信息排序 |
|
|
itemDetail.handleQty = result.label.qty; |
|
|
itemDetail.handleQty = result.label.qty; |
|
@ -432,13 +425,11 @@ |
|
|
this.detailSource.forEach(toLocation => { |
|
|
this.detailSource.forEach(toLocation => { |
|
|
itemCodes.push(toLocation.itemCode) |
|
|
itemCodes.push(toLocation.itemCode) |
|
|
}) |
|
|
}) |
|
|
console.log( this.detailSource) |
|
|
|
|
|
|
|
|
|
|
|
//获取管理模式,封装参数 |
|
|
//获取管理模式,封装参数 |
|
|
getManagementPrecisions(itemCodes, locationCode, res => { |
|
|
getManagementPrecisions(itemCodes, locationCode, res => { |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
this.managementList = res.list; |
|
|
this.managementList = res.list; |
|
|
console.log(res) |
|
|
|
|
|
this.managementType = this.managementList && this.managementList[0] ? this.managementList[0].ManagementPrecision : 'BY_PACKAGING' |
|
|
this.managementType = this.managementList && this.managementList[0] ? this.managementList[0].ManagementPrecision : 'BY_PACKAGING' |
|
|
|
|
|
|
|
|
this.submitJob(); |
|
|
this.submitJob(); |
|
@ -602,7 +593,6 @@ |
|
|
var subList = [] |
|
|
var subList = [] |
|
|
var createTime = getCurrDateTime(); |
|
|
var createTime = getCurrDateTime(); |
|
|
var creator = this.$store.state.user.id |
|
|
var creator = this.$store.state.user.id |
|
|
console.log(222,this.detailSource) |
|
|
|
|
|
this.detailSource.forEach(toLocationCode => { |
|
|
this.detailSource.forEach(toLocationCode => { |
|
|
let obj = {...toLocationCode} |
|
|
let obj = {...toLocationCode} |
|
|
delete obj.subList |
|
|
delete obj.subList |
|
@ -754,7 +744,6 @@ |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
this.fromLocationCode = fromLocationCode |
|
|
this.fromLocationCode = fromLocationCode |
|
|
console.log(this.fromLocationCode) |
|
|
|
|
|
this.$refs.scanPopup.openScanPopupForJob(fromLocationCode, fromlocationList, this.jobContent); |
|
|
this.$refs.scanPopup.openScanPopupForJob(fromLocationCode, fromlocationList, this.jobContent); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|