diff --git a/src/mycomponents/scan/winComScan.vue b/src/mycomponents/scan/winComScan.vue index 1144cd7f..f2727923 100644 --- a/src/mycomponents/scan/winComScan.vue +++ b/src/mycomponents/scan/winComScan.vue @@ -5,7 +5,7 @@ - @@ -90,7 +90,7 @@ return { // scanMsg: "HPQ;V1.0;ICE115F11161AG;PP20230427000027;B20230427002;Q100", scanMsg: "", - boxfocus: true, + boxfocus: false, placeholderValue: '', scanResult: {}, scanList: [], @@ -100,14 +100,18 @@ } }, mounted() { - + this.boxfocus =true; + uni.hideKeyboard(); + // #ifdef H5 if (document.querySelector('textarea') != null) { document.querySelector('textarea').setAttribute('inputmode', 'none') } // #endif // #ifdef APP-PLUS + this.hide() // + // this.hide() // uni.onKeyboardHeightChange(res => { // console.log(res.height) // if(res.height>0){ @@ -146,11 +150,11 @@ var interval = setInterval(function() { uni.hideKeyboard(); //隐藏软键盘 console.log('刷新') - }, 60); + }, 5); setTimeout(() => { clearInterval(interval); console.log('停止刷新') - }, 2000); + }, 1000); }, getValue() { return this.scanMsg @@ -214,14 +218,12 @@ }, getfocus() { let that = this; - that.boxfocus = true; this.$nextTick(r => { that.boxfocus = true; }); }, losefocus() { let that = this; - that.boxfocus = false; this.$nextTick(r => { that.boxfocus = false; }); @@ -271,6 +273,14 @@ } + + \ No newline at end of file diff --git a/src/pages/putaway/job/putawayDetail.vue b/src/pages/putaway/job/putawayDetail.vue index 6a52eb06..0afcc8be 100644 --- a/src/pages/putaway/job/putawayDetail.vue +++ b/src/pages/putaway/job/putawayDetail.vue @@ -76,10 +76,9 @@ } from '@/common/detail.js'; import winScanButton from '@/mycomponents/scan/winScanButton.vue' - import locationCompare from '@/mycomponents/location/locationCompare.vue' import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue" import comDetailCard from "@/mycomponents/detail/comDetailCard.vue" - import locationCompare from '@/pages/putaway/coms/locationCompare.vue' + import locationCompare from '@/mycomponents/location/locationCompare.vue' import jobTop from '@/mycomponents/job/jobTop.vue' @@ -89,7 +88,6 @@ winScanPackAndLocation, locationCompare, comDetailCard, - locationCompare, jobTop }, data() {