|
|
@ -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(); |
|
|
@ -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() |
|
|
@ -406,16 +407,16 @@ |
|
|
|
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode, |
|
|
|
detail.packingNumber, detail.batch); |
|
|
|
detail.toPackingNumber = info.packingNumber; |
|
|
|
detail.toBatch =info.batch; |
|
|
|
detail.toBatch = info.batch; |
|
|
|
detail.toContainerNumber = ""; |
|
|
|
detail.toLocationCode =this.toLocationCode; |
|
|
|
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' |
|
|
|
navigateBack(1) |
|
|
|
}) |
|
|
|
}, 3000) |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|