diff --git a/src/mycomponents/scan/winCheckFgLabel.vue b/src/mycomponents/scan/winCheckFgLabel.vue index de831830..41622a0a 100644 --- a/src/mycomponents/scan/winCheckFgLabel.vue +++ b/src/mycomponents/scan/winCheckFgLabel.vue @@ -44,7 +44,6 @@ } from '@/common/balance.js'; import { - getBasicLocationByCode, getCustomerItemList } from '@/api/request2.js'; diff --git a/src/mycomponents/scan/winScanLocation.vue b/src/mycomponents/scan/winScanLocation.vue index 8b0ae440..a43cc3be 100644 --- a/src/mycomponents/scan/winScanLocation.vue +++ b/src/mycomponents/scan/winScanLocation.vue @@ -108,6 +108,10 @@ uni.hideLoading(); if (res.data.total > 0) { let result = res.data.list[0]; + if(result.code!=this.code){ + this.showErrorMessage('未查询到库位[' + this.code + ']') + return; + } var type = result.type; var areaType = result.areaType var available = result.available; diff --git a/src/mycomponents/scan/winScanPackAndLocation.vue b/src/mycomponents/scan/winScanPackAndLocation.vue index 18c69860..30f9daf1 100644 --- a/src/mycomponents/scan/winScanPackAndLocation.vue +++ b/src/mycomponents/scan/winScanPackAndLocation.vue @@ -247,6 +247,10 @@ getBasicLocationByCode(this.fromLocationCode).then(res => { if (res.data.total > 0) { let result = res.data.list[0]; + if(result.code!=this.fromLocationCode){ + this.showErrorMessage('未查询到库位[' + this.fromLocationCode + ']') + return; + } var type = result.areaType; var available = result.available; if (available == "TRUE") { diff --git a/src/mycomponents/scan/winScanPackAndLocationNoBalance.vue b/src/mycomponents/scan/winScanPackAndLocationNoBalance.vue index 216f6dcd..843346f0 100644 --- a/src/mycomponents/scan/winScanPackAndLocationNoBalance.vue +++ b/src/mycomponents/scan/winScanPackAndLocationNoBalance.vue @@ -198,6 +198,10 @@ getBasicLocationByCode(this.fromLocationCode).then(res => { if (res.data.total > 0) { let result = res.data.list[0]; + if(result.code!=this.fromLocationCode){ + this.showErrorMessage('未查询到库位[' + this.fromLocationCode + ']') + return; + } var type = result.type; var available = result.available; if (available == "TRUE") { diff --git a/src/mycomponents/scan/winScanPackJob.vue b/src/mycomponents/scan/winScanPackJob.vue index 3fbb6e07..e0b66aad 100644 --- a/src/mycomponents/scan/winScanPackJob.vue +++ b/src/mycomponents/scan/winScanPackJob.vue @@ -29,7 +29,6 @@ } from '@/common/balance.js'; import { - getBasicLocationByCode, getPutawayJobList } from '@/api/request2.js'; diff --git a/src/pages/customerReturn/job/returnDetail.vue b/src/pages/customerReturn/job/returnDetail.vue index 7d3cf5a3..070a6bee 100644 --- a/src/pages/customerReturn/job/returnDetail.vue +++ b/src/pages/customerReturn/job/returnDetail.vue @@ -43,7 +43,6 @@ import { getCustomerReturnJobDetail, - getBasicLocationByCode, takeCustomerReturnJob, cancleTakeCustomerReturnJob, customerReturnJobSubmit diff --git a/src/pages/deliver/coms/comDeliverRequestPopup.vue b/src/pages/deliver/coms/comDeliverRequestPopup.vue index 14e332b3..30a55974 100644 --- a/src/pages/deliver/coms/comDeliverRequestPopup.vue +++ b/src/pages/deliver/coms/comDeliverRequestPopup.vue @@ -70,7 +70,6 @@