| | |
| | | method: 'POST', |
| | | header: { 'token': uni.getStorageSync('token') }, |
| | | success(res) { |
| | | console.log(res); |
| | | // console.log(res); |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | if (res.data) { |
| | |
| | | that.matData = result.data |
| | | that.matnr = '' |
| | | that.matData['batch'] = '' |
| | | if (that.maxAnfme) { |
| | | if (that.maxAnfme > 0) { |
| | | that.matData['maxNum'] = that.maxAnfme |
| | | } else if (that.maxAnfme == 0){ |
| | | that.matData['maxNum'] = 0 |
| | | } |
| | | uni.navigateTo({ |
| | | url: "../mat/matSelected", |
| | |
| | | } |
| | | } |
| | | uni.request({ |
| | | url: that.baseUrl + '/mobile/comb/auth', |
| | | url: that.baseUrl + '/mobile/comb/auth2', |
| | | data: JSON.stringify({ |
| | | bomCode: that.bomCode, |
| | | barcode: that.barcode, |
| | | combMats: that.dataList |
| | | }), |