| | |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input v-model="barcode" type="text" placeholder="扫码 / 输入" maxlength="8" |
| | | @input="findBarcode()" :focus="barcodeFocus" @focus="focuss" > |
| | | @input="findBarcode()" :focus="barcodeFocus" > |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="square-content"> |
| | | <view class="content-input-combox" style="width: 94%;"> |
| | | <input style="width: 90%;" type="text" v-model="matnr" placeholder="扫码 / 输入" @input="findMat()":focus="focus" |
| | | @focus="focuss"> |
| | | > |
| | | <!-- @focus="focuss" --> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons> |
| | | </view> |
| | |
| | | // this.listLen = this.matList.length; |
| | | }, |
| | | focuss() { |
| | | // uni.hideKeyboard() |
| | | let that = this; |
| | | that.barcodeFocus = false; |
| | | setTimeout(()=>{ |
| | | that.barcode = '' |
| | | that.barcodeFocus = true; |
| | | }, 100); |
| | | }, |
| | | resst() { |
| | | this.matList = [] |
| | |
| | | }, 1000); |
| | | } else { |
| | | uni.showToast({title: res.msg, icon: "none",position: 'top'}) |
| | | that.focuss() |
| | | } |
| | | |
| | | } |
| | |
| | | }, |
| | | findMat() { |
| | | let that = this |
| | | if(that.barcode == '') { |
| | | uni.showToast({title: '请先扫描托盘码!', icon: "none",position: 'top'}) |
| | | that.focuss() |
| | | setTimeout(function() { |
| | | that.matnr = '' |
| | | }, 100); |
| | | return; |
| | | } |
| | | uni.request({ |
| | | url: that.commonUrl + '/mobile/pakout/confirm/pick/auth', |
| | | data: { |