| | |
| | | // 测试用 |
| | | |
| | | this.getVisualized() |
| | | // this.getVisualizedTest() |
| | | },1000) |
| | | }, |
| | | methods: { |
| | | getUrl() { |
| | | this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort + "/" +this.baseUrl |
| | | }, |
| | | getVisualizedTest() { |
| | | let that = this |
| | | var result = ycqdata.dataInfo3 |
| | | console.log(result); |
| | | let res = result.data |
| | | if (res.code === 200) { |
| | | console.log(res.data.agvWaitPakins); |
| | | if (res.data.agvWrkDetls != null) { |
| | | that.locs = res.data.agvWrkDetls |
| | | if (res.data.agvWrkMast) { |
| | | if (res.data.agvWrkMast.ioType == 107) { |
| | | that.infoText.title = '盘点出库' |
| | | } else if (res.data.agvWrkMast.ioType == 103) { |
| | | that.infoText.title = '拣料出库' |
| | | } else if (res.data.agvWrkMast.ioType == 57) { |
| | | that.infoText.title = '盘点再入库' |
| | | } else if (res.data.agvWrkMast.ioType == 53) { |
| | | that.infoText.title = '拣料再入库' |
| | | } else if (res.data.agvWrkMast.ioType == 101) { |
| | | that.infoText.title = '全板出库' |
| | | } |
| | | } else{ |
| | | that.infoText.title = '入库作业' |
| | | } |
| | | } else if (res.data.agvWaitPakins != null) { |
| | | that.locs = res.data.agvWaitPakins |
| | | that.infoText.title = '入库作业' |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | }, |
| | | getVisualized() { |
| | | let that = this |
| | |
| | | data: JSON.stringify(param), |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | that.result = res |
| | | if (res.code === 200 && res.data) { |
| | | that.locs = res.data.agvWrkDetls |
| | | if (res.data.agvWrkMast) { |
| | | if (res.data.agvWrkMast.ioType == 107) { |
| | | that.infoText.title = '盘点出库' |
| | | } else if (res.data.agvWrkMast.ioType == 103) { |
| | | that.infoText.title = '拣料出库' |
| | | } else { |
| | | that.infoText.title = '全板出库' |
| | | } |
| | | } else{ |
| | | if (res.code === 200) { |
| | | console.log(res.data.agvWaitPakins); |
| | | if (res.data.agvWrkDetls != null) { |
| | | that.locs = res.data.agvWrkDetls |
| | | if (res.data.agvWrkMast) { |
| | | if (res.data.agvWrkMast.ioType == 107) { |
| | | that.infoText.title = '盘点出库' |
| | | } else if (res.data.agvWrkMast.ioType == 103) { |
| | | that.infoText.title = '拣料出库' |
| | | } else if (res.data.agvWrkMast.ioType == 57) { |
| | | that.infoText.title = '盘点再入库' |
| | | } else if (res.data.agvWrkMast.ioType == 53) { |
| | | that.infoText.title = '拣料再入库' |
| | | } else if (res.data.agvWrkMast.ioType == 101) { |
| | | that.infoText.title = '全板出库' |
| | | } |
| | | } else{ |
| | | that.infoText.title = '入库作业' |
| | | } |
| | | } else if (res.data.agvWaitPakins != null) { |
| | | that.locs = res.data.agvWaitPakins |
| | | that.infoText.title = '入库作业' |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | }) |