From 32bb7e03a59a03edd409ca528ee15d6ee3652684 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期五, 20 十月 2023 11:16:54 +0800 Subject: [PATCH] # --- pages/tzsk/AGV/AGVPakin.vue | 4 +- pages/tzsk/pakin/pakin2.vue | 40 +++++++++++++++++++- static/img/keyboard1.png | 0 pages/tzsk/pakin/pakin.vue | 30 +++++++++++++-- pages/tzsk/AGV/AGVPakinBing.vue | 18 +++++++- static/img/keyboard.png | 0 6 files changed, 81 insertions(+), 11 deletions(-) diff --git a/pages/tzsk/AGV/AGVPakin.vue b/pages/tzsk/AGV/AGVPakin.vue index 9335e56..883389b 100644 --- a/pages/tzsk/AGV/AGVPakin.vue +++ b/pages/tzsk/AGV/AGVPakin.vue @@ -179,9 +179,9 @@ messageText: '', title: '', content: '', - barcodeFocus: true, + orderNoFocus: true, + barcodeFocus: false, matFocus: false, - orderNoFocus: false, matData: '', removeNum: 0, tempOrderInfo: {csocode: '',isoseq: ''} diff --git a/pages/tzsk/AGV/AGVPakinBing.vue b/pages/tzsk/AGV/AGVPakinBing.vue index d3c5147..1a9d7d7 100644 --- a/pages/tzsk/AGV/AGVPakinBing.vue +++ b/pages/tzsk/AGV/AGVPakinBing.vue @@ -4,12 +4,12 @@ <view class="item"> <view class="code-decs">鏂欑鐮�:</view> <input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="barcode" :focus="barcodeFocus" - @input="barcodeInput()"> + @input="barcodeInput()" readonly> </view> <view class="item"> <view class="code-decs">鏆傚瓨浣�:</view> <input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="stationCode" :focus="stationCodeFocus" - @input="stationCodeInput()"> + @input="stationCodeInput()" readonly> <view class="item-right"> <button></button> <!-- <text style="text-align: right;color: #409EFF;" @click="selectMat()">鎻愬彇+</text> --> @@ -159,10 +159,22 @@ matFocus: false, matData: '', removeNum: 0, + hide: true } }, onLoad() { - + // #ifdef APP + setInterval(()=>{ + if (this.hide) { + uni.hideKeyboard() + } else { + + } + },20) + // #endif + }, + onBackPress() { + this.hide = false }, onShow() { this.baseUrl = uni.getStorageSync('baseUrl'); diff --git a/pages/tzsk/pakin/pakin.vue b/pages/tzsk/pakin/pakin.vue index 3eb3816..c4f84f4 100644 --- a/pages/tzsk/pakin/pakin.vue +++ b/pages/tzsk/pakin/pakin.vue @@ -157,6 +157,9 @@ @confirm="resetConfirm" @close="resetClose"></uni-popup-dialog> </uni-popup> </view> + <view class="keyboard" mode="aspectFit" @click="hideKeyboard"> + <image src="@/static/img/keyboard1.png" style="height: 70%;width: 70%;"></image> + </view> </view> </template> @@ -168,7 +171,6 @@ token: '', barcode: '', orderNo: '', - dataList: [], count: 0, rowNum: '', @@ -185,17 +187,32 @@ matFocus: false, matData: '', removeNum: 0, - tempOrderInfo: {csocode: '',isoseq: ''} + tempOrderInfo: {csocode: '',isoseq: ''}, + hide: true } }, onLoad() { - + // #ifdef APP + setInterval(()=>{ + if (this.hide) { + uni.hideKeyboard() + } else { + + } + },20) + // #endif + }, + onBackPress() { + this.hide = false }, onShow() { this.baseUrl = uni.getStorageSync('baseUrl'); this.token = uni.getStorageSync('token'); }, methods: { + hideKeyboard() { + this.hide = this.hide ? false : true + }, // 鏍规嵁璁㈠崟鍙疯繑鍥炲晢鍝佽鎯� findOrder() { let that = this @@ -532,7 +549,12 @@ <style> @import url('../../../static/css/wms.css/wms.css'); - + + .keyboard{ + width: 40px;height: 40px;background-size: 100%;position: absolute;z-index: 99; + top: 5px;right: 5px;background-color: #00aeec; border-radius: 50%; + display: flex;align-items: center;justify-content: center; + } .list:first-child { margin-top: 360rpx; } diff --git a/pages/tzsk/pakin/pakin2.vue b/pages/tzsk/pakin/pakin2.vue index 35cfc70..fd0b746 100644 --- a/pages/tzsk/pakin/pakin2.vue +++ b/pages/tzsk/pakin/pakin2.vue @@ -157,6 +157,10 @@ @confirm="resetConfirm" @close="resetClose"></uni-popup-dialog> </uni-popup> </view> + + <view class="keyboard" :class="hidebg" mode="aspectFit" @click="hideKeyboard"> + <image src="@/static/img/keyboard1.png" style="height: 70%;width: 70%;"></image> + </view> </view> </template> @@ -184,17 +188,38 @@ matFocus: false, matData: '', removeNum: 0, - tempOrderInfo: {csocode: '',isoseq: ''} + tempOrderInfo: {csocode: '',isoseq: ''}, + hide: true, + hidebg: 'kb-bgtr' } }, onLoad() { - + // #ifdef APP + setInterval(()=>{ + if (this.hide) { + uni.hideKeyboard() + } else { + + } + },20) + // #endif + }, + onBackPress() { + this.hide = false }, onShow() { this.baseUrl = uni.getStorageSync('baseUrl'); this.token = uni.getStorageSync('token'); }, methods: { + hideKeyboard() { + this.hide = this.hide ? false : true + if (this.hide) { + this.hidebg = 'kb-bgtr' + } else { + this.hidebg = 'kb-bgfa' + } + }, // 杩囨护 checkContainerCode(item) { item.containerCode = item.containerCode.split('_')[1] @@ -538,6 +563,17 @@ <style> @import url('../../../static/css/wms.css/wms.css'); + .keyboard{ + width: 40px;height: 40px;background-size: 100%;position: absolute;z-index: 99; + top: 5px;right: 5px; border-radius: 50%; + display: flex;align-items: center;justify-content: center; + } + .kb-bgtr { + background-color: #55557f; + } + .kb-bgfa { + background-color: #00aeec; + } .list:first-child { margin-top: 360rpx; } diff --git a/static/img/keyboard.png b/static/img/keyboard.png new file mode 100644 index 0000000..c0e52b3 --- /dev/null +++ b/static/img/keyboard.png Binary files differ diff --git a/static/img/keyboard1.png b/static/img/keyboard1.png new file mode 100644 index 0000000..89c1539 --- /dev/null +++ b/static/img/keyboard1.png Binary files differ -- Gitblit v1.9.1