| | |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input v-model="barcode" type="text" placeholder="扫码 / 输入" maxlength="8" |
| | | :focus="barcodeFocus" @focus="focuss"> |
| | | :focus="barcodeFocus" @focus="nextInput"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="square-content"> |
| | | <view class="content-input-btn"> |
| | | <input v-model="matnr" type="text" placeholder="扫码 / 输入" @input="findMat()" |
| | | :focus="focus" @focus="focuss"> |
| | | :focus="focus"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons> |
| | | </view> |
| | | <view class="content-btn"> |
| | |
| | | rowNum:'', |
| | | } |
| | | }, |
| | | // onLoad() { |
| | | // // #ifdef APP |
| | | // setInterval(()=>{ |
| | | // uni.hideKeyboard() |
| | | // },20) |
| | | // // #endif |
| | | // }, |
| | | mounted(){ |
| | | const UIP = uni.getStorageSync('UIP'); |
| | | this.baseIP = UIP; |
| | |
| | | this.basePORT = UPORT |
| | | }, |
| | | methods: { |
| | | nextInput() { |
| | | if (this.barcode.length == 8) { |
| | | this.focuss() |
| | | } |
| | | }, |
| | | focuss() { |
| | | // #ifdef APP |
| | | let that = this; |