|  |  | 
 |  |  |         }, | 
 |  |  |         onHide: function() { | 
 |  |  |             console.log('App Hide') | 
 |  |  |         } | 
 |  |  |         }, | 
 |  |  |     } | 
 |  |  | </script> | 
 |  |  |  | 
 
 |  |  | 
 |  |  |                 </view> | 
 |  |  |                 <view class="square-content"> | 
 |  |  |                     <view class="content-input"> | 
 |  |  |                         <input v-model="barcode" type="text" placeholder="扫码 / 输入" maxlength="8" @input="findBarcode()"> | 
 |  |  |                         <input v-model="barcode" type="text" placeholder="扫码 / 输入" maxlength="8"  | 
 |  |  |                         @input="findBarcode()" :focus="barcodeFocus" @focus="focuss"> | 
 |  |  |                         <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons> | 
 |  |  |                     </view> | 
 |  |  |                 </view> | 
 |  |  | 
 |  |  |                         <uni-combox  emptyTips="暂无数据" :candidates="staNoList" v-model="staNo" placeholder="站台号"></uni-combox> | 
 |  |  |                     </view> | 
 |  |  |                     <view class="content-input-combox"> | 
 |  |  |                         <input type="text" v-model="matnr" placeholder="扫码 / 输入" @input="findMat()"> | 
 |  |  |                         <input type="text" v-model="matnr" placeholder="扫码 / 输入" @input="findMat()" | 
 |  |  |                         :focus="focus" @focus="focuss"> | 
 |  |  |                         <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons> | 
 |  |  |                     </view> | 
 |  |  |                 </view> | 
 |  |  | 
 |  |  |         data() { | 
 |  |  |             return { | 
 |  |  |                 barcode: '', | 
 |  |  |                 barcodeFocus:true, | 
 |  |  |                 focus:false, | 
 |  |  |                 type: 'center', | 
 |  |  |                 searchBox: 'hide', | 
 |  |  |                 pick:'hide', | 
 |  |  | 
 |  |  |             this.getOutBound(); | 
 |  |  |         }, | 
 |  |  |         methods: { | 
 |  |  |             focuss() { | 
 |  |  |                 uni.hideKeyboard() | 
 |  |  |             }, | 
 |  |  |             resst() { | 
 |  |  |                 this.matList = [] | 
 |  |  |                 this.barcode = '' | 
 |  |  | 
 |  |  |             removeBarcode() { | 
 |  |  |                 this.barcode = '' | 
 |  |  |                 uni.vibrateShort(); | 
 |  |  |                 this.barcodeFocus = false; | 
 |  |  |                 this.$nextTick(function() { | 
 |  |  |                     this.barcodeFocus = true; | 
 |  |  |                 }); | 
 |  |  |             }, | 
 |  |  |             removeMatnr() { | 
 |  |  |                 this.matnr = '' | 
 |  |  |                 uni.vibrateShort(); | 
 |  |  |                 this.focus = false; | 
 |  |  |                 this.$nextTick(function() { | 
 |  |  |                     this.focus = true; | 
 |  |  |                 }); | 
 |  |  |             }, | 
 |  |  |             remove(item,index) { | 
 |  |  |                 this.matList.splice(index,1) | 
 |  |  | 
 |  |  |                     } | 
 |  |  |                 }); | 
 |  |  |             }, | 
 |  |  |             addMatList(mat) { | 
 |  |  |                 let barcode = this.mat.barcode | 
 |  |  |                 let toUnshift = true | 
 |  |  |                 for (var i = 0; i < this.matList.length; i++) { | 
 |  |  |                     if (barcode === this.matList[i].barcode) { | 
 |  |  |                         this.messageToggle('warn') | 
 |  |  |                         this.messageText = barcode + '已经扫描,请勿重复扫描' | 
 |  |  |                         toUnshift = false | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |                 if (toUnshift) { | 
 |  |  |                     this.matList.unshift(mat) | 
 |  |  |                 } | 
 |  |  |             }, | 
 |  |  |             findBarcode() { | 
 |  |  |                 let that = this | 
 |  |  |                 uni.request({ | 
 
 |  |  | 
 |  |  |             return { | 
 |  |  |                 barcode: '', | 
 |  |  |                 barcodeFocus:true, | 
 |  |  |                 focus:false, | 
 |  |  |                 matList:[{barcode:'92992929292'}], | 
 |  |  |                 matNo:'', | 
 |  |  |                 mat:null, | 
 |  |  | 
 |  |  |                 msgType: 'success', | 
 |  |  |                 messageText: '这是一条成功提示', | 
 |  |  |                  | 
 |  |  |                 focus:false | 
 |  |  | 				 | 
 |  |  |             } | 
 |  |  |         }, | 
 |  |  |         mounted(){ | 
 |  |  | 
 |  |  |                                 that.addMatList(that.mat) | 
 |  |  |                                 that.initAnfme() | 
 |  |  |                                 that.matNo = '', | 
 |  |  |                                 console.log(that.focus) | 
 |  |  |                                 that.focus = false; | 
 |  |  |                                 that.$nextTick(function() { | 
 |  |  |                                     that.focus = true; | 
 |  |  |                                 }); | 
 |  |  |                             } else { | 
 |  |  |                                 that.messageToggle('warn') | 
 |  |  |                                 that.messageText = '请重新扫码 \ 输入' | 
 
 |  |  | 
 |  |  |                 </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 | 
 
 |  |  | 
 |  |  |                 </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-btn"> | 
 |  |  |                         <input v-model="matnr" type="text" placeholder="扫码 / 输入" @input="findMat()"> | 
 |  |  |                         <input v-model="matnr" type="text" placeholder="扫码 / 输入" @input="findMat()" | 
 |  |  |                         :focus="focus" @focus="focuss"> | 
 |  |  |                         <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons> | 
 |  |  |                     </view> | 
 |  |  |                     <view class="content-btn"> | 
 |  |  | 
 |  |  |         data() { | 
 |  |  |             return { | 
 |  |  |                 barcode: '', | 
 |  |  |                 barcodeFocus:true, | 
 |  |  |                 focus:false, | 
 |  |  |                 type: 'center', | 
 |  |  |                 searchBox: 'hide', | 
 |  |  |                 pick:'hide', | 
 |  |  | 
 |  |  |             this.basePORT = UPORT | 
 |  |  |         }, | 
 |  |  |         methods: { | 
 |  |  |             focuss() { | 
 |  |  |                 uni.hideKeyboard() | 
 |  |  |             }, | 
 |  |  |             resst() { | 
 |  |  |                 this.matList = [] | 
 |  |  |                 this.barcode = '' | 
 |  |  | 
 |  |  |             removeBarcode() { | 
 |  |  |                 this.barcode = '' | 
 |  |  |                 uni.vibrateShort(); | 
 |  |  |                 this.barcodeFocus = false; | 
 |  |  |                 this.$nextTick(function() { | 
 |  |  |                     this.barcodeFocus = true; | 
 |  |  |                 }); | 
 |  |  |             }, | 
 |  |  |             removeMatnr() { | 
 |  |  |                 this.matnr = '' | 
 |  |  |                 uni.vibrateShort(); | 
 |  |  |                 this.focus = false; | 
 |  |  |                 this.$nextTick(function() { | 
 |  |  |                     this.focus = true; | 
 |  |  |                 }); | 
 |  |  |             }, | 
 |  |  |             remove(item,index) { | 
 |  |  |                 this.matList.splice(index,1) |