Bladeren bron

调拨-移库任务扫描优化

zhaohuanhuan 9 maanden geleden
bovenliggende
commit
f1a8bb2a06
2 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 1 0
      src/views/transfer/move/down/index.vue
  2. 2 0
      src/views/transfer/move/putaway/index.vue

+ 1 - 0
src/views/transfer/move/down/index.vue

@@ -223,6 +223,7 @@ const _handlerScan = async (code) => {
         tips.value='请扫描移出库位'
         tips.value='请扫描移出库位'
         activeBarcode.value = matchBarcodeList.value[0]
         activeBarcode.value = matchBarcodeList.value[0]
         scanType.value=3
         scanType.value=3
+        searchBarcode.value=code
         searchLocation.value = ''
         searchLocation.value = ''
         scanSuccess()
         scanSuccess()
       } else if (matchBarcodeList.value.length > 1) {
       } else if (matchBarcodeList.value.length > 1) {

+ 2 - 0
src/views/transfer/move/putaway/index.vue

@@ -242,6 +242,7 @@ const _handlerScan = async (code) => {
       if (matchBarcodeList.value.length == 1) {
       if (matchBarcodeList.value.length == 1) {
         activeBarcode.value = matchBarcodeList.value[0]
         activeBarcode.value = matchBarcodeList.value[0]
         searchLocation.value = ''
         searchLocation.value = ''
+        searchBarcode.value=code
         _getLocation(activeBarcode.value)
         _getLocation(activeBarcode.value)
       } else if (matchBarcodeList.value.length > 1) {
       } else if (matchBarcodeList.value.length > 1) {
         tips.value='请选择产品批次'
         tips.value='请选择产品批次'
@@ -259,6 +260,7 @@ const _handlerScan = async (code) => {
       searchLocation.value = ''
       searchLocation.value = ''
       activeBarcode.value = {}
       activeBarcode.value = {}
       locationList.value=[]
       locationList.value=[]
+
     }
     }
   }else if(scanType.value == 3){
   }else if(scanType.value == 3){
       scanSuccess()
       scanSuccess()