From 679e5ee2d8792be7b5590e263f70b51bd3e78ea7 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期一, 25 九月 2023 17:02:06 +0800 Subject: [PATCH] # --- pages/home/home.vue | 42 ++++++++++---------- pages/pakin/pakin2.vue | 41 ++++++-------------- 2 files changed, 33 insertions(+), 50 deletions(-) diff --git a/pages/home/home.vue b/pages/home/home.vue index ad15cd9..aa139f8 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -24,27 +24,27 @@ icon: '', elements: [], elements2: [ - { - title: '缁勬墭鍏ュ簱', - name: 'pakin', - color: 'cyan', - cuIcon: 'pullup', - url: '/tzsk/pakin/pakin' - }, - { - title: '缁勬墭涓婃灦', - name: 'pakin', - color: 'cyan', - cuIcon: 'pullup', - url: '/tzsk/order/orderPutOn' - }, - { - title: '璁㈠崟鎷h揣', - name: 'pakin', - color: 'cyan', - cuIcon: 'pullup', - url: '/tzsk/order/orderPick' - }, + // { + // title: '缁勬墭鍏ュ簱', + // name: 'pakin', + // color: 'cyan', + // cuIcon: 'pullup', + // url: '/tzsk/pakin/pakin' + // }, + // { + // title: '缁勬墭涓婃灦', + // name: 'pakin', + // color: 'cyan', + // cuIcon: 'pullup', + // url: '/tzsk/order/orderPutOn' + // }, + // { + // title: '璁㈠崟鎷h揣', + // name: 'pakin', + // color: 'cyan', + // cuIcon: 'pullup', + // url: '/tzsk/order/orderPick' + // }, { title: '涓存椂鍏ュ簱', name: 'pakin', diff --git a/pages/pakin/pakin2.vue b/pages/pakin/pakin2.vue index e1d59d7..06b3861 100644 --- a/pages/pakin/pakin2.vue +++ b/pages/pakin/pakin2.vue @@ -1,11 +1,6 @@ <template> <view> <view class="code"> - <!-- <view class="item"> - <view class="code-decs">鎵樼洏鐮�:</view> - <input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="barcode" :focus="barcodeFocus" - @input="barcodeInput()"> - </view> --> <view class="item"> <view class="code-decs">鐗╂枡鐮�:</view> <input type="text" placeholder=" 鎵爜 / 杈撳叆" v-model="matnr" :focus="matFocus" @input="findMat()"> @@ -46,12 +41,6 @@ <uni-tag :text="item.batch" type="warning"></uni-tag> </view> </view> - <!-- <view class="list-left-item"> - <view class="desc">閲嶉噺锛�</view> - <view class="left-item"> - <uni-tag :text="item.weight" type="warning"></uni-tag> - </view> - </view> --> <view class="list-left-item"> <view class="desc">鏁伴噺锛�</view> <view class="left-item">{{item.anfme}}</view> @@ -82,14 +71,6 @@ style="background-color: #f7f7f7;padding: 0;color: #d5d5d5;"> </view> </view> - <!-- <view class="popup-item"> - <view class="popup-item-left">鎵瑰彿:</view> - <view class="popup-item-right"><input type="text" v-model="batch"></view> - </view> --> - <!-- <view class="popup-item"> - <view class="popup-item-left">閲嶉噺:</view> - <view class="popup-item-right"><input type="text" v-model="weight"></view> - </view> --> <view class="popup-item"> <view class="popup-item-left">鏁伴噺:</view> <view class="popup-item-right" style="border: none;justify-content: center;"> @@ -152,14 +133,15 @@ messageText: '', title: '', content: '', - barcodeFocus: true, - matFocus: false, + matFocus: true, matData: '', removeNum: 0, } }, onLoad() { - + setInterval(()=>{ + uni.hideKeyboard() + },10) }, onShow() { this.baseUrl = uni.getStorageSync('baseUrl'); @@ -188,12 +170,12 @@ }, 200) }, // 鎵樼洏鐮佹湁璇噸缃� - barcodeFocuss() { + matFocuss() { let that = this; - that.barcodeFocus = false; + that.matFocus = false; setTimeout(() => { - that.barcode = ''; - that.barcodeFocus = true; + that.matnr = ''; + that.matFocus = true; }, 100); }, // 鍟嗗搧鍏夋爣娓呯┖閲嶇疆 @@ -233,7 +215,9 @@ events: { matList: function(data) { that.checkMat(data.data) - that.focuss() + setTimeout(()=>{ + that.matFocuss() + },100) }, }, }); @@ -436,8 +420,7 @@ // 娓呯┖ resst() { this.dataList = [] - this.barcode = '' - this.barcodeFocuss() + this.matFocuss() }, } } -- Gitblit v1.9.1