| | |
| | | if(that.matNo.length===0){ |
| | | return; |
| | | } |
| | | console.log('http://'+ that.baseUrl + ':8082/xgmwms' + "/matCode/auth") |
| | | uni.request({ |
| | | url:that.baseUrl+"/matCode/auth", |
| | | url: that.baseUrl + "/matCode/auth", |
| | | |
| | | header:{ |
| | | 'content-type':'application/x-www-form-urlencoded', |
| | | 'token':localStorage.getItem('token'), |
| | | }, |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | | data:{ |
| | | id:thatId |
| | | }, |
| | | method:'POST', |
| | | success:function(res){ |
| | | console.log(res) |
| | | let data = res.data.data |
| | | |
| | | if(res.data.code === 200){ |
| | |
| | | } |
| | | uni.request({ |
| | | |
| | | url:that.baseUrl+"/mobile/comb/auth", |
| | | header:{'token':localStorage.getItem('token')}, |
| | | url: that.baseUrl + "/mobile/comb/auth", |
| | | header:{ |
| | | // #ifdef H5 |
| | | 'token':uni.getStorageSync('token') |
| | | // #endif |
| | | |
| | | // #ifdef APP-PLUS |
| | | 'token': uni.getStorageSync('token') |
| | | // Authorization:uni.getStorageSync('token') |
| | | // #endif |
| | | }, |
| | | data:{ |
| | | barcode:barcode, |
| | | combMats:that.matData |