diff --git a/src/mycomponents/scan/winCheckFgLabel.vue b/src/mycomponents/scan/winCheckFgLabel.vue index eb6c7f3a..1d3cfcf6 100644 --- a/src/mycomponents/scan/winCheckFgLabel.vue +++ b/src/mycomponents/scan/winCheckFgLabel.vue @@ -36,7 +36,7 @@ import winComScanCustomerLabel from '@/mycomponents/scan/winComScanCustomerLabel import balanceSelect from '@/mycomponents/balance/balanceSelect.vue' import { getBalanceByManagementPrecision } from '@/common/balance.js' -import { getBasicLocationByCode, getCustomerItemList } from '@/api/request2.js' +import { getCustomerItemList } from '@/api/request2.js' import { getListLocationAreaTypeDesc, checkDirectoryItemExist, getDirectoryItemArray, getLocationAreaTypeName, getInventoryStatusDesc } from '@/common/directory.js' diff --git a/src/mycomponents/scan/winScanLocation.vue b/src/mycomponents/scan/winScanLocation.vue index 4236ee3e..f4c6655d 100644 --- a/src/mycomponents/scan/winScanLocation.vue +++ b/src/mycomponents/scan/winScanLocation.vue @@ -83,6 +83,10 @@ const getScanResult = (result) => { proxy.$modal.closeLoading() if (res.data.total > 0) { const result = res.data.list[0] + if (result.code != code.value) { + showErrorMessage(`未查询到库位[${code.value}]`) + return + } const { type } = result const { areaType } = result const { available } = result diff --git a/src/mycomponents/scan/winScanPackAndLocation.vue b/src/mycomponents/scan/winScanPackAndLocation.vue index ad1aa8fe..850693d2 100644 --- a/src/mycomponents/scan/winScanPackAndLocation.vue +++ b/src/mycomponents/scan/winScanPackAndLocation.vue @@ -202,6 +202,10 @@ const scanLocation = (scanResult) => { uni.hideLoading() if (res.data.total > 0) { const result = res.data.list[0] + if (result.code != fromLocationCode.value) { + showErrorMessage(`未查询到库位[${fromLocationCode.value}]`) + return + } const type = result.areaType const { available } = result if (available == 'TRUE') { diff --git a/src/mycomponents/scan/winScanPackAndLocationNoBalance.vue b/src/mycomponents/scan/winScanPackAndLocationNoBalance.vue index 1153f6da..21970655 100644 --- a/src/mycomponents/scan/winScanPackAndLocationNoBalance.vue +++ b/src/mycomponents/scan/winScanPackAndLocationNoBalance.vue @@ -162,6 +162,10 @@ const getScanResult = (scanResult) => { .then((res) => { if (res.data.total > 0) { const result = res.data.list[0] + if (result.code != fromLocationCode.value) { + showErrorMessage(`未查询到库位[${fromLocationCode.value}]`) + return + } const { type } = result const { available } = result if (available == 'TRUE') { diff --git a/src/mycomponents/scan/winScanPackJob.vue b/src/mycomponents/scan/winScanPackJob.vue index 225bb0b2..e8569592 100644 --- a/src/mycomponents/scan/winScanPackJob.vue +++ b/src/mycomponents/scan/winScanPackJob.vue @@ -23,7 +23,7 @@ import { ref, getCurrentInstance, nextTick } from 'vue' import winComScan from '@/mycomponents/scan/winComScan.vue' import { getBalanceByManagementPrecision } from '@/common/balance.js' -import { getBasicLocationByCode, getPutawayJobList } from '@/api/request2.js' +import { getPutawayJobList } from '@/api/request2.js' import { getListLocationTypeDesc, checkDirectoryItemExist, getDirectoryItemArray, getLocationTypeName, getInventoryStatusDesc } from '@/common/directory.js' diff --git a/src/pages/customerReturn/job/returnDetail.vue b/src/pages/customerReturn/job/returnDetail.vue index c23a7d14..54f343a5 100644 --- a/src/pages/customerReturn/job/returnDetail.vue +++ b/src/pages/customerReturn/job/returnDetail.vue @@ -35,7 +35,7 @@ import { ref, getCurrentInstance, nextTick } from 'vue' import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app' import { getManagementPrecisions } from '@/common/balance.js' -import { getCustomerReturnJobDetail, getBasicLocationByCode, takeCustomerReturnJob, cancleTakeCustomerReturnJob, customerReturnJobSubmit } from '@/api/request2.js' +import { getCustomerReturnJobDetail, takeCustomerReturnJob, cancleTakeCustomerReturnJob, customerReturnJobSubmit } from '@/api/request2.js' import { goHome, navigateBack, getPackingNumberAndBatch, getInventoryStatusName, getDirectoryItemArray } from '@/common/basic.js' import { getDataSource, createRecordInfo, calcHandleQty, getScanCount } from '@/common/detail.js' diff --git a/src/pages/deliver/coms/comDeliverRequestPopup.vue b/src/pages/deliver/coms/comDeliverRequestPopup.vue index d2f461a3..5c5ae6b2 100644 --- a/src/pages/deliver/coms/comDeliverRequestPopup.vue +++ b/src/pages/deliver/coms/comDeliverRequestPopup.vue @@ -61,7 +61,7 @@