| | |
| | | methods: { |
| | | // 容器离场 |
| | | containerMove() { |
| | | console.log(123); |
| | | let _this = this |
| | | var param = {'devNo' : _this.pickCode} |
| | | uni.request({ |
| | |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | _this.pickCode = '' |
| | | _this.messageText = "离场成功" |
| | | _this.messageToggle('success') |
| | | } else if (res.code == 403) { |
| | | uni.showToast({ |
| | | title: res.msg, |
| | | icon: "none", |
| | | position: 'top' |
| | | }) |
| | | setTimeout(() => { |
| | | uni.reLaunch({ |
| | | url: '../login/login' |
| | | }); |
| | | }, 1000); |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.msg, |
| | | icon: "none", |
| | | position: 'top' |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | containerPick() { |
| | | console.log(123); |
| | | let _this = this |
| | | var param = {'devNo' : _this.pickCode} |
| | | uni.request({ |
| | |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | _this.pickCode = '' |
| | | _this.messageText = "盘点 / 拣货成功" |
| | | _this.messageToggle('success') |
| | | } else if (res.code == 403) { |
| | | uni.showToast({ |
| | | title: res.msg, |
| | | icon: "none", |
| | | position: 'top' |
| | | }) |
| | | setTimeout(() => { |
| | | uni.reLaunch({ |
| | | url: '../login/login' |
| | | }); |
| | | }, 1000); |
| | | } else { |
| | | uni.showToast({ |
| | | title: res.msg, |
| | | icon: "none", |
| | | position: 'top' |
| | | }) |
| | | } |
| | | } |
| | | }) |