|
|
@@ -525,7 +525,7 @@ const _handlerScan = (code) => {
|
|
|
const scannedLocation = barcodeToUpperCase(code)
|
|
|
// 校验是否与推荐库位一致
|
|
|
if (locationList.value.length > 0) {
|
|
|
- const recommendedLocations = locationList.value.map(item => barcodeToUpperCase(item.location || ''))
|
|
|
+ const recommendedLocations = locationList.value.map(item => barcodeToUpperCase(item.locationId || ''))
|
|
|
if (!recommendedLocations.includes(scannedLocation)) {
|
|
|
showNotify({ type: 'warning', duration: 3000, message: `扫描库位${scannedLocation}与推荐库位不一致,请确认` })
|
|
|
searchLocation.value=''
|
|
|
@@ -599,7 +599,7 @@ const isCheck = () => {
|
|
|
}
|
|
|
// 校验库位是否与推荐库位一致
|
|
|
if (locationList.value.length > 0) {
|
|
|
- const recommendedLocations = locationList.value.map(item => barcodeToUpperCase(item.location || ''))
|
|
|
+ const recommendedLocations = locationList.value.map(item => barcodeToUpperCase(item.locationId || ''))
|
|
|
if (!recommendedLocations.includes(barcodeToUpperCase(searchLocation.value))) {
|
|
|
locationRef.value?.focus()
|
|
|
scanError()
|