| | |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input v-model="barcode" type="text" placeholder="扫码 / 输入" maxlength="8"> |
| | | <input v-model="barcode" type="text" placeholder="扫码 / 输入" maxlength="8" |
| | | :focus="barcodeFocus" @focus="focuss"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons> |
| | | </view> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input v-model="order" type="text" placeholder="扫码 / 输入" @input="findOrder()"> |
| | | <input v-model="order" type="text" placeholder="扫码 / 输入" @input="findOrder()" |
| | | :focus="focus" @focus="focuss"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeOrder()"></uni-icons> |
| | | </view> |
| | | </view> |
| | |
| | | data() { |
| | | return { |
| | | barcode: '', |
| | | barcodeFocus:true, |
| | | focus:false, |
| | | type: 'center', |
| | | searchBox: 'hide', |
| | | pick:'hide', |
| | |
| | | this.basePORT = UPORT |
| | | }, |
| | | methods: { |
| | | focuss() { |
| | | uni.hideKeyboard() |
| | | }, |
| | | resst() { |
| | | this.orderList = [] |
| | | this.barcode = '' |
| | |
| | | removeBarcode() { |
| | | this.barcode = '' |
| | | uni.vibrateShort(); |
| | | this.barcodeFocus = false; |
| | | this.$nextTick(function() { |
| | | this.barcodeFocus = true; |
| | | }); |
| | | }, |
| | | removeOrder() { |
| | | this.order = '' |
| | | uni.vibrateShort(); |
| | | this.focus = false; |
| | | this.$nextTick(function() { |
| | | this.focus = true; |
| | | }); |
| | | }, |
| | | eject(type) { |
| | | this.type = type |