| | |
| | | <view class="form-item"> |
| | | <view class="title">条码:</view> |
| | | <view class="right"> |
| | | <input v-model="hform.HBarCode" :focus="HBarCodeFocus" placeholder="请扫描(或输入)条码" @blur="getCode(hform.HBarCode)" @input="handleInput" /> |
| | | <input v-model="hform.HBarCode" :focus="HBarCodeFocus" placeholder="请扫描(或输入)条码" @blur="getCode(hform.HBarCode)" /> |
| | | </view> |
| | | <uni-icons type="scan" |
| | | style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" |
| | |
| | | async refreshHBarCodeFocus() { |
| | | this.HBarCodeFocus = false |
| | | this.hform.HBarCode = '' |
| | | await this.$nextTick() |
| | | this.HBarCodeFocus = true |
| | | // this.$nextTick(() => { |
| | | // this.HBarCodeFocus = true |
| | | // }) |
| | | setTimeout(() => { |
| | | this.HBarCodeFocus = true; |
| | | }, 300); |
| | | |
| | | }, |
| | | //扫码 |
| | | toScanCode() { |
| | |
| | | } |
| | | //显示表体明细 |
| | | this.DisBillEntryList() |
| | | this.refreshHBarCodeFocus() |
| | | //清空数量 |
| | | this.hform.HQty = '' |
| | | } else { |
| | | CommonUtils.playSound(0); |
| | | this.refreshHBarCodeFocus() |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | |
| | | this.refreshHBarCodeFocus() |
| | | |
| | | |
| | | } catch (e) { |
| | | CommonUtils.playSound(0) |