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 @@