| | |
| | | }, |
| | | // 添加扫描日志 |
| | | addLog(matCode,userName) { |
| | | |
| | | let that = this; |
| | | uni.request({ |
| | | url: that.commonUrl + "/mobile/addLog/auth", |
| | |
| | | }, |
| | | // method:"POST", |
| | | success(result) { |
| | | var res = result.data |
| | | if(res.code === 200) { |
| | | // uni.showToast({title: "添加成功", icon: "none",position: 'center'}) |
| | | } |
| | | |
| | | } |
| | | }) |
| | | |
| | |
| | | // return; |
| | | // uni.showLoading(); |
| | | uni.request({ |
| | | url: that.commonUrl + '/mat/auth', |
| | | url: that.commonUrl + '/barcode/check/auth', |
| | | data: { |
| | | matnr:matnr |
| | | barcode:that.matnrId |
| | | }, |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | | success(result) { |
| | | console.log(result) |
| | | uni.hideLoading(); |
| | | // uni.vibrateShort(); |
| | | let res = result.data |