| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | commonUrl:null, |
| | | barcode: '', |
| | | barcodeFocus:true, |
| | | focus:false, |
| | |
| | | this.baseIP = UIP; |
| | | const UPORT = uni.getStorageSync('UPORT'); |
| | | this.basePORT = UPORT |
| | | |
| | | const PROJ = uni.getStorageSync('UPROJ'); |
| | | this.baseUrl = PROJ |
| | | this.getUrl() |
| | | }, |
| | | methods: { |
| | | // 获取url |
| | | getUrl() { |
| | | this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl |
| | | }, |
| | | huanghang() { |
| | | this.matnr = '' |
| | | this.focus = false; |
| | |
| | | findBarcode() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/confirm/barcode/auth', |
| | | url: that.commonUrl + '/mobile/pakout/confirm/barcode/auth', |
| | | data: { |
| | | barcode:that.barcode |
| | | }, |
| | |
| | | findMat() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/confirm/pick/auth', |
| | | url: that.commonUrl + '/mobile/pakout/confirm/pick/auth', |
| | | data: { |
| | | wrkNo:that.wrkNo, |
| | | matnr:that.matnr |
| | |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | | success(result) { |
| | | console.log(result) |
| | | var res = result.data; |
| | | if(res.code === 200 ) { |
| | | if(res.data) { |
| | |
| | | } |
| | | uni.showLoading(); |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/confirm/auth', |
| | | url: that.commonUrl + '/mobile/pakout/confirm/auth', |
| | | data: that.matList, |
| | | method: 'POST', |
| | | header: { |