|
|
@ -53,6 +53,7 @@ |
|
|
|
import { |
|
|
|
goHome, |
|
|
|
updateTitle, |
|
|
|
navigateBack, |
|
|
|
getCurrDateTime, |
|
|
|
getPackingNumberAndBatch, |
|
|
|
getInventoryStatusName |
|
|
@ -234,7 +235,7 @@ |
|
|
|
|
|
|
|
getScanResult(result) { |
|
|
|
try { |
|
|
|
var supplierCode =result.package.supplierCode |
|
|
|
var supplierCode = result.package.supplierCode |
|
|
|
var packingNumber = result.balance.packingNumber; |
|
|
|
var batch = result.balance.batch; |
|
|
|
var qty = result.balance.qty; |
|
|
@ -266,14 +267,14 @@ |
|
|
|
']不一致,是否继续上架?', res => { |
|
|
|
if (res) { |
|
|
|
itemDetail.scaned = true; |
|
|
|
itemDetail.supplierCode =supplierCode |
|
|
|
itemDetail.supplierCode = supplierCode |
|
|
|
itemDetail.handleQty = Number(result.label.qty) > Number(result.balance |
|
|
|
.qty) ? Number(result.balance.qty) : Number(result.label.qty); |
|
|
|
itemDetail.toInventoryStatus = result.balance.inventoryStatus; |
|
|
|
itemDetail.balance = result.balance; |
|
|
|
itemDetail.balance.balanceQty = result.balance.qty; |
|
|
|
itemDetail.balance.stdPackQty =result.package.stdPackQty |
|
|
|
itemDetail.balance.stdPackUnit =result.package.stdPackUnit |
|
|
|
itemDetail.balance.stdPackQty = result.package.stdPackQty |
|
|
|
itemDetail.balance.stdPackUnit = result.package.stdPackUnit |
|
|
|
this.calcHandleQty(); |
|
|
|
} else { |
|
|
|
this.scanPopupGetFocus(); |
|
|
@ -362,7 +363,7 @@ |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
submitJob() { |
|
|
|
submitJob() { |
|
|
|
uni.showLoading({ |
|
|
|
title: "提交中....", |
|
|
|
mask: true |
|
|
@ -372,11 +373,11 @@ |
|
|
|
itemCodes.push(item.itemCode) |
|
|
|
}) |
|
|
|
|
|
|
|
getManagementPrecisions(itemCodes,this.toLocationCode, res => { |
|
|
|
getManagementPrecisions(itemCodes, this.toLocationCode, res => { |
|
|
|
if (res.success) { |
|
|
|
this.managementList = res.list; |
|
|
|
var params = this.setParams() |
|
|
|
console.log("提交参数",JSON.stringify(params)); |
|
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
|
|
|
|
|
productionReceiptJobSubmit(params).then(res => { |
|
|
|
uni.hideLoading() |
|
|
@ -405,17 +406,17 @@ |
|
|
|
if (detail.scaned) { |
|
|
|
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode, |
|
|
|
detail.packingNumber, detail.batch); |
|
|
|
detail.toPackingNumber = info.packingNumber; |
|
|
|
detail.toBatch =info.batch; |
|
|
|
detail.toContainerNumber = ""; |
|
|
|
detail.toLocationCode =this.toLocationCode; |
|
|
|
detail.toPackingNumber = info.packingNumber; |
|
|
|
detail.toBatch = info.batch; |
|
|
|
detail.toContainerNumber = ""; |
|
|
|
detail.toLocationCode = this.toLocationCode; |
|
|
|
|
|
|
|
subList.push(detail) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.jobContent.subList = subList |
|
|
|
this.jobContent.creator =creator; |
|
|
|
this.jobContent.creator = creator; |
|
|
|
return this.jobContent; |
|
|
|
}, |
|
|
|
|
|
|
@ -476,14 +477,9 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
showCommitSuccessMessage(hint) { |
|
|
|
setTimeout(() => { |
|
|
|
this.$refs.comMessage.showSuccessMessage(hint, res => { |
|
|
|
|
|
|
|
}) |
|
|
|
uni.navigateTo({ |
|
|
|
url: './putawayJob' |
|
|
|
}) |
|
|
|
}, 3000) |
|
|
|
this.$refs.comMessage.showSuccessMessage(hint, res => { |
|
|
|
navigateBack(1) |
|
|
|
}) |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|