| | |
| | | if(that.matNo.length===0){ |
| | | return; |
| | | } |
| | | console.log('http://'+ that.baseUrl + ':8082/xgmwms' + "/matCode/auth") |
| | | uni.request({ |
| | | url: that.baseUrl + "/matCode/auth", |
| | | |
| | |
| | | }, |
| | | method:'POST', |
| | | success:function(res){ |
| | | console.log(res) |
| | | let data = res.data.data |
| | | |
| | | if(res.data.code === 200){ |
| | |
| | | let that = this |
| | | let barcode = that.code |
| | | if(barcode.length === 0){ |
| | | console.log(1) |
| | | that.messageToggle('error') |
| | | that.messageText = '托盘条码为空' |
| | | return; |
| | |
| | | }, |
| | | method:'POST', |
| | | success:function(res){ |
| | | console.log(res) |
| | | if(res.data.code===200){ |
| | | that.reset() |
| | | that.messageToggle('success') |