diff --git a/src/pages/issue/record/directIssue.vue b/src/pages/issue/record/directIssue.vue index 9d540971..40032258 100644 --- a/src/pages/issue/record/directIssue.vue +++ b/src/pages/issue/record/directIssue.vue @@ -192,7 +192,7 @@ await getManagementPrecisions([result.label.itemCode], result.balance.locationCode, res => { if (res.success) { this.managementList = res.list; - this.managementType = this.managementList && this.managementList[0] ? this.managementList[0].ManagementPrecision : '' + this.managementType = this.managementList && this.managementList[0] ? this.managementList[0].ManagementPrecision : 'BY_PACKAGING' if(this.managementType == "BY_BATCH" ||this.managementType == "BY_QUANTITY" ){ this.setDataBatch(result); }else{ @@ -592,7 +592,6 @@ ...this.setRecordParams() } console.log("提交参数", JSON.stringify(params)); - issueRecordSubmit(params).then(res => { uni.hideLoading() if (res.data) { diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue index b7d215f1..2aa4839d 100644 --- a/src/pages/purchaseReceipt/job/receiptDetail.vue +++ b/src/pages/purchaseReceipt/job/receiptDetail.vue @@ -324,11 +324,11 @@ try { var itemCode = result.label.itemCode; var detail = this.detailSource.find(r => r.itemCode == itemCode); - detail.scaned = true; if (detail == undefined) { this.showErrorMessage("物料号【" + itemCode + "】不在列表中") return; } + detail.scaned = true; if (result.label.labelType == "ContainerLabel") { var containerNumber = result.label.container; var itemDetail = detail.subList.filter(r => r.containerNumber == containerNumber); @@ -433,11 +433,11 @@ try { var itemCode = result.label.itemCode; var detail = this.detailSource.find(r => r.itemCode == itemCode); - detail.scaned = true; if (detail == undefined) { this.showErrorMessage("物料号【" + itemCode + "】不在列表中") return; } + detail.scaned = true; if (result.label.labelType == "ContainerLabel") { var containerNumber = result.label.container; var itemDetail = detail.subList.filter(r => r.containerNumber == containerNumber);