From eec31dcbbbb7f493c9236fb3442bd296e7baed56 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 19 Feb 2025 11:32:10 +0800 Subject: [PATCH] =?UTF-8?q?YT-1956PDA=20=E4=BB=BB=E5=8A=A1=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=20=E7=82=B9=E5=87=BB=E6=89=AB=E6=8F=8F?= =?UTF-8?q?=EF=BC=8C=E7=84=A6=E7=82=B9=E5=BA=94=E8=AF=A5=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E5=88=B0=E8=BE=93=E5=85=A5=E6=A1=86YT-1949PD?= =?UTF-8?q?A=E6=89=AB=E6=8F=8F=E6=98=8E=E7=BB=86=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=BA=93=E5=AD=98=E4=B8=8D=E7=B2=97=EF=BC=8C=E6=9C=AA=E5=BC=B9?= =?UTF-8?q?=E5=87=BA=E6=8F=90=E7=A4=BA=20=EF=BC=8C=E8=BF=98=E6=98=AF?= =?UTF-8?q?=E6=89=AB=E6=8F=8F=E6=88=90=E5=8A=9F=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/scan/winScanPackAndLocationNoShow.vue | 9 ++++++--- src/pages/issueSupplies/job/issueDetailBatch.vue | 9 +++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/mycomponents/scan/winScanPackAndLocationNoShow.vue b/src/mycomponents/scan/winScanPackAndLocationNoShow.vue index d57e5f30..ee12eaaa 100644 --- a/src/mycomponents/scan/winScanPackAndLocationNoShow.vue +++ b/src/mycomponents/scan/winScanPackAndLocationNoShow.vue @@ -507,9 +507,12 @@ }, packGetFocus() { - if (this.$refs.comscan) { - this.$refs.comscan.getfocus(); - } + setTimeout(()=>{ + if (this.$refs.comscan) { + this.$refs.comscan.getfocus(); + } + },300) + }, packLoseFocus() { diff --git a/src/pages/issueSupplies/job/issueDetailBatch.vue b/src/pages/issueSupplies/job/issueDetailBatch.vue index 66ae3f54..8a91d6a4 100644 --- a/src/pages/issueSupplies/job/issueDetailBatch.vue +++ b/src/pages/issueSupplies/job/issueDetailBatch.vue @@ -244,10 +244,10 @@ this.showErrorMessage("物料【" + itemCode + "】已经扫描") return } - // if(detail.qty>result.balance.qty){ - // this.showErrorMessage("物料【" + itemCode + "】库存不足") - // return - // } + if(detail.qty>result.balance.qty){ + this.showErrorMessage("物料【" + itemCode + "】库存不足") + return + } detail.scaned = true } this.continueScan() @@ -477,6 +477,7 @@ }, openScanPopup() { this.$refs.scanPopup.openScanPopupForJob(this.jobContent); + this.scanPopupGetFocus(); }, closeScanPopup() {