| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | commonUrl:null, |
| | | matList:[], |
| | | staNoList:[], |
| | | barcode: '', |
| | |
| | | this.baseIP = UIP; |
| | | const UPORT = uni.getStorageSync('UPORT'); |
| | | this.basePORT = UPORT |
| | | const PROJ = uni.getStorageSync('UPROJ'); |
| | | this.baseUrl = PROJ |
| | | this.getUrl() |
| | | this.getOutBound(); |
| | | }, |
| | | methods: { |
| | | // 获取url |
| | | getUrl() { |
| | | this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl |
| | | }, |
| | | getOutBound() { // 获取出库口 |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/available/take/check/site', |
| | | url: that.commonUrl + '/available/take/check/site', |
| | | method: 'POST', |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | |
| | | getCheckDetl() { // 获取出库口货物信息 |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/checkDetl/auth', |
| | | url: that.commonUrl + '/mobile/checkDetl/auth', |
| | | method: 'POST', |
| | | data: { |
| | | staNo:that.staNo |
| | |
| | | findMat() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mat/auth', |
| | | url: that.commonUrl + '/mat/auth', |
| | | data: { |
| | | matnr:that.matnr |
| | | }, |
| | |
| | | adjust() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/adjust/auth', |
| | | url: that.commonUrl + '/adjust/auth', |
| | | method: 'POST', |
| | | data: { |
| | | combParam: that.matList |