|  |  | 
 |  |  |                     }, 100); | 
 |  |  |                     return; | 
 |  |  |                 } | 
 |  |  |                 if (that.matCount == that.matList.length) { | 
 |  |  |                     uni.showToast({title: '请确认出库数量!', icon: "none",position: 'top'}) | 
 |  |  |                     return; | 
 |  |  |                 } | 
 |  |  |                 uni.request({ | 
 |  |  |                     url: that.commonUrl + '/mobile/pakout/confirm/pick/auth', | 
 |  |  |                     data: { | 
 |  |  | 
 |  |  |                                 console.log(that.matnr); | 
 |  |  |                                 for(let i = 0;i < that.matList.length; i++) { | 
 |  |  |                                     var matnr = that.matList[i].matnr + '-' +  that.matList[i].batch | 
 |  |  |                                     console.log(matnr); | 
 |  |  |                                     if (matnr === that.matnr) { | 
 |  |  |                                         that.messageToggle('warn'); | 
 |  |  |                                         that.messageText = '该商品已添加'; | 
 
 |  |  | 
 |  |  |                             } | 
 |  |  |                             uni.setStorageSync('token', res.data.token); | 
 |  |  |                             setTimeout(() => { | 
 |  |  |                                 uni.navigateBack();        //   小程序用这个  把首页路由放第一个 | 
 |  |  |                                 // uni.navigateBack();        //   小程序用这个  把首页路由放第一个 | 
 |  |  |                                 uni.reLaunch({ | 
 |  |  |                                     url: '../index/index' | 
 |  |  |                                 }); |