| | |
| | | getOrderNoList() { |
| | | let that = this |
| | | uni.request({ |
| | | url: this.baseUrl + '/outOrder/list/all', |
| | | data: "", |
| | | url: that.baseUrl + '/mobile/pda/OutOrder', |
| | | data: {orderNo:that.orderNo}, |
| | | header: { |
| | | 'token': uni.getStorageSync('token') |
| | | 'token': uni.getStorageSync('token'), |
| | | 'content-type': 'application/x-www-form-urlencoded; charset=UTF-8' |
| | | }, |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | that.menuList = res.data |
| | | if (res.code === 200) { |
| | | that.menuList = res.data |
| | | } else if (res.code == 403) { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }); |
| | | setTimeout(() => { |
| | | uni.reLaunch({ url: '../login/login' }); |
| | | }, 1000); |
| | | } |
| | | |
| | | } |
| | | }) |
| | | }, |
| | | search() { |
| | | let that = this |
| | | uni.request({ |
| | | url: this.baseUrl + '/outOrder/list/all', |
| | | url: that.baseUrl + '/mobile/pda/OutOrder', |
| | | data: {orderNo:that.orderNo}, |
| | | header: { |
| | | 'token': uni.getStorageSync('token'), |