| | |
| | | }, 200) |
| | | }, |
| | | asBarcodeInput() { |
| | | this.asBarcode = this.asBarcode.replace(/\s+/g, '') |
| | | // this.asBarcode = this.asBarcode.replace(/\s+/g, '') |
| | | setTimeout(() => { |
| | | var len = this.asBarcode.length |
| | | if (len != 12) { |
| | | uni.showToast({ |
| | | title: 'AS400有误请重试', |
| | | icon: "none", |
| | | position: 'top' |
| | | }); |
| | | this.asBarcodeFocuss() |
| | | return; |
| | | } |
| | | // var len = this.asBarcode.length |
| | | // if (len != 12) { |
| | | // uni.showToast({ |
| | | // title: 'AS400有误请重试', |
| | | // icon: "none", |
| | | // position: 'top' |
| | | // }); |
| | | // this.asBarcodeFocuss() |
| | | // return; |
| | | // } |
| | | this.focuss() |
| | | }, 200) |
| | | }, |
| | |
| | | }, |
| | | // 商品光标清空重置 |
| | | focuss() { |
| | | this.focus = false; |
| | | this.matFocus = false; |
| | | setTimeout(() => { |
| | | this.matnr = ''; |
| | | this.matFocus = true; |
| | | }, 100); |
| | | }, 200); |
| | | }, |
| | | codeInput(code) { |
| | | switch (code) { |