| | |
| | | return; |
| | | } |
| | | 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 |
| | | }, |
| | |
| | | let that = this |
| | | let barcode = that.code |
| | | if(barcode.length === 0){ |
| | | console.log(1) |
| | | that.messageToggle('error') |
| | | that.messageText = '托盘条码为空' |
| | | return; |
| | |
| | | } |
| | | 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 |
| | | }, |
| | | method:'POST', |
| | | success:function(res){ |
| | | console.log(res) |
| | | if(res.data.code===200){ |
| | | that.reset() |
| | | that.messageToggle('success') |