| | |
| | | orderCarList: [], |
| | | count: 0, |
| | | index: 0, |
| | | barcode: '100997', |
| | | agvDevp: 'DI_01F2', |
| | | barcode: '', |
| | | agvDevp: '', |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | success(result) { |
| | | var res = result.data |
| | | if (res.code === 200) { |
| | | _this.orderCarList = [] |
| | | _this.$refs.agvStart.close() |
| | | uni.showToast({ title: '启动成功!', icon: "error", position: 'top' }) |
| | | setTimeout(()=> { |
| | | _this.getOpenerEventChannel().emit('acceptDataFromOpenedPage', {data: 1}); |
| | | uni.navigateBack({}) |
| | | },1000) |
| | | } else if (res.code == 403) { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | | setTimeout(() => { uni.reLaunch({ url: '../login/login' }); }, 1000); |
| | | } else { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | | } |
| | | } |
| | | }); |
| | |
| | | events: { |
| | | acceptDataFromOpenedPage: function(data) { |
| | | console.log(data); |
| | | if (data.data == 1) { |
| | | _this.orderCarList = [] |
| | | } |
| | | } |
| | | } |
| | | }) |
| | |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | |
| | | if (res.data.records[0].locSts == 'O') { |
| | | _this.btnType = 'emptyPakin' |
| | | } else if (res.data.records[0].locSts == 'F') { |
| | |
| | | _this.reload.loadingText = '更新状态' |
| | | _this.getContainerType() |
| | | },500) |
| | | |
| | | _this.getWrkMast(res.data.records[0].barcode) |
| | | uni.showToast({ title: '更新成功!', icon: "none", position: 'top' }) |
| | | } else if (res.code == 403) { |
| | | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) |
| | | setTimeout(() => { uni.reLaunch({ url: '../login/login' }); }, 1000); |