|  |  | 
 |  |  |          }, | 
 |  |  |          barcodeInput() { | 
 |  |  |             // 不设置定时器 会出现扫入的字符串不全 | 
 |  |  |             this.barcode = this.barcode.split('_')[1] | 
 |  |  |             if (this.barcode.split('_')[1]) { | 
 |  |  |                this.barcode = this.barcode.split('_')[1] | 
 |  |  |             }  | 
 |  |  |             setTimeout(() => { | 
 |  |  |                var len = this.barcode.length | 
 |  |  |                if (len != 10) { | 
 |  |  | 
 |  |  |          // 搜索物料 | 
 |  |  |          findMat() { | 
 |  |  |             let that = this | 
 |  |  |             if (that.dataList.length >= 1) { | 
 |  |  |                this.messageText = "只能添加一种物料" | 
 |  |  |                this.messageToggle('warn') | 
 |  |  |                that.matnr = '' | 
 |  |  |                return | 
 |  |  |             } | 
 |  |  |             // if (that.dataList.length >= 1) { | 
 |  |  |             //    this.messageText = "只能添加一种物料" | 
 |  |  |             //    this.messageToggle('warn') | 
 |  |  |             //    that.matnr = '' | 
 |  |  |             //    return | 
 |  |  |             // } | 
 |  |  |             uni.request({ | 
 |  |  |                url: that.baseUrl + '/mat/auth', | 
 |  |  |                data: { | 
 |  |  | 
 |  |  |                         // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据 | 
 |  |  |                         events: { | 
 |  |  |                            matList: function(data) { | 
 |  |  |                               data.data['csocode'] = '' | 
 |  |  |                               data.data['isoseq'] = '' | 
 |  |  |                               that.checkMat(data.data) | 
 |  |  |                               that.focuss() | 
 |  |  |                            }, | 
 |  |  | 
 |  |  | <style> | 
 |  |  |    @import url('../../../static/css/wms.css/wms.css'); | 
 |  |  |    .list:first-child { | 
 |  |  |       margin-top: 540rpx; | 
 |  |  |       margin-top: 400rpx; | 
 |  |  |    } | 
 |  |  |     | 
 |  |  |    .code { |