From 6d0400f6e5f28dbb865898f2dd6093893996a052 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Fri, 26 Jan 2024 13:29:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=A2=E6=88=B7=E9=80=80?= =?UTF-8?q?=E8=B4=A7=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mycomponents/scan/winScanPackAndLocation.vue | 12 ++++++------ .../request/customerReturnRequestCreate.vue | 14 ++++++++------ pages/productionReturn/record/returnToStore.vue | 2 ++ 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/mycomponents/scan/winScanPackAndLocation.vue b/mycomponents/scan/winScanPackAndLocation.vue index 86602f43..a9f4baeb 100644 --- a/mycomponents/scan/winScanPackAndLocation.vue +++ b/mycomponents/scan/winScanPackAndLocation.vue @@ -425,13 +425,13 @@ this.show = e.show }, isInLocationList(location) { - var item = this.fromLocationList.filter(res => { - res = location - }) - if (item != undefined && item.length > 0) { - return true + + var item = this.fromLocationList.find(res => res == location) + + if (item = undefined) { + return false } - return false + return true }, addLocationCode(code) { if (!this.isInLocationList(code)) { diff --git a/pages/customerReturn/request/customerReturnRequestCreate.vue b/pages/customerReturn/request/customerReturnRequestCreate.vue index 6a46fa16..1056332d 100644 --- a/pages/customerReturn/request/customerReturnRequestCreate.vue +++ b/pages/customerReturn/request/customerReturnRequestCreate.vue @@ -1,7 +1,7 @@