|  |  | 
 |  |  |    <view> | 
 |  |  |       <view class="code"> | 
 |  |  |          <view class="item"> | 
 |  |  |             <view class="code-decs">托盘码:</view> | 
 |  |  |             <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> --> | 
 |  |  | 
 |  |  |             </view> | 
 |  |  |          </view> | 
 |  |  |       </view> | 
 |  |  |       <!-- <view class="mat-list-title"> | 
 |  |  |       <view class="mat-list-title"> | 
 |  |  |          商品列表 | 
 |  |  |       </view> --> | 
 |  |  |       </view> | 
 |  |  |       <scroll-view> | 
 |  |  |          <view class="list" v-for="(item,i) in dataList" :key="i"> | 
 |  |  |             <view class="list-left"> | 
 |  |  | 
 |  |  |                @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> | 
 |  |  |  | 
 |  |  | 
 |  |  |             matFocus: false, | 
 |  |  |             matData: '', | 
 |  |  |             removeNum: 0, | 
 |  |  |             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' | 
 |  |  |             } | 
 |  |  |          }, | 
 |  |  |          messageToggle(type) { | 
 |  |  |             this.msgType1 = type | 
 |  |  |             this.$refs.message.open() | 
 |  |  | 
 |  |  |          // barcode input 事件 | 
 |  |  |          barcodeInput() { | 
 |  |  |             // 不设置定时器 会出现扫入的字符串不全 | 
 |  |  |             this.barcode = this.barcode.split('_')[1] | 
 |  |  |             setTimeout(() => { | 
 |  |  |                var len = this.barcode.length | 
 |  |  |                if (len != 10) { | 
 |  |  |                   uni.showToast({ | 
 |  |  |                      title: '托盘码有误请重试', | 
 |  |  |                      title: '料箱码有误请重试', | 
 |  |  |                      icon: "none", | 
 |  |  |                      position: 'top' | 
 |  |  |                   }); | 
 |  |  | 
 |  |  |                that.stationCodeFocus = true; | 
 |  |  |             }, 100); | 
 |  |  |          }, | 
 |  |  |          // 托盘码有误重置 | 
 |  |  |          // 料箱码有误重置 | 
 |  |  |          barcodeFocuss() { | 
 |  |  |             let that = this; | 
 |  |  |             that.barcodeFocus = false; | 
 |  |  | 
 |  |  | <style> | 
 |  |  |    @import url('../../../static/css/wms.css/wms.css'); | 
 |  |  |  | 
 |  |  |    .list:first-child { | 
 |  |  |       margin-top: 280rpx; | 
 |  |  |    } | 
 |  |  |    .code { | 
 |  |  |       width: 100%; | 
 |  |  |       position: fixed; | 
 |  |  |       min-height: 200rpx; | 
 |  |  |       min-height: 140rpx; | 
 |  |  |       background-color: #FFF; | 
 |  |  |       z-index: 10; | 
 |  |  |    } | 
 |  |  | 
 |  |  |    .item { | 
 |  |  |       display: flex; | 
 |  |  |       align-items: center; | 
 |  |  |       height: 100rpx; | 
 |  |  |       height: 70rpx; | 
 |  |  |       margin-left: 20rpx; | 
 |  |  |       border-bottom: 1px solid #DCDFE6; | 
 |  |  |    } | 
 |  |  | 
 |  |  |       width: 100%; | 
 |  |  |       background-color: white; | 
 |  |  |       position: fixed; | 
 |  |  |       margin-top: 200rpx; | 
 |  |  |       margin-top: 140rpx; | 
 |  |  |       z-index: 9; | 
 |  |  |       /* border-top: 1px solid #DCDFE6; */ | 
 |  |  |       text-align: center; |