| | |
| | | // 不设置定时器 会出现扫入的字符串不全
|
| | | setTimeout(() => {
|
| | | var len = this.barcode.length
|
| | | if (len != 8) {
|
| | | uni.showToast({
|
| | | title: '托盘码有误请重试',
|
| | | icon: "none",
|
| | | position: 'top'
|
| | | });
|
| | | // this.barcodeFocuss()
|
| | | return;
|
| | | }
|
| | | // if (len != 8) {
|
| | | // uni.showToast({
|
| | | // title: '托盘码有误请重试',
|
| | | // icon: "none",
|
| | | // position: 'top'
|
| | | // });
|
| | | // // this.barcodeFocuss()
|
| | | // return;
|
| | | // }
|
| | | // this.focuss()
|
| | | }, 200)
|
| | | },
|
| | |
| | | if (this.barcode.length < 1) { |
| | | return |
| | | } |
| | | if (this.barcode.length != 8) { |
| | | this.messageToggle('error', '拖盘码为8位随机数字!!') |
| | | return |
| | | } |
| | | // if (this.barcode.length != 8) { |
| | | // this.messageToggle('error', '拖盘码为8位随机数字!!') |
| | | // return |
| | | // } |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseUrl + '/pda/barcode/matnr/' + that.barcode, |