| | |
| | | week:'星期四', |
| | | ani:'', |
| | | // move: 'upMove 1.5s 1;', |
| | | move:false, |
| | | move:true, |
| | | topMove:'topUp', |
| | | floorMove:'', |
| | | version:'', |
| | |
| | | }, 1000); |
| | | setInterval(() => { |
| | | this.getDate(); |
| | | // this.getPakin(); |
| | | // this.getYYY(); |
| | | this.getPakin(); |
| | | this.getError(); |
| | | this.animation(); |
| | | },1000) |
| | | }, |
| | |
| | | // }); |
| | | }, |
| | | methods: { |
| | | |
| | | getError() { |
| | | let that = this |
| | | ni.request({ |
| | | url: "http://" + that.baseUrl + ":" + that.basePort + "/jkwcs/monitor/led/error/led", |
| | | uni.request({ |
| | | url: "http://" + that.baseUrl + ":" + that.basePort + "/jkwcs/monitor/led/error", |
| | | data: { |
| | | ledId:that.baseLedId |
| | | }, |
| | | method:'GET', |
| | | success(result) { |
| | | that.title = '' |
| | | that.staNo = '' |
| | | console.log(result) |
| | | let res = result.data |
| | | if (res.data) { |
| | | that.newspaper = '123' |
| | | that.newspaper = res.data |
| | | that.move = false |
| | | } else { |
| | | that.newspaper = '' |
| | | that.move = true |
| | | } |
| | | } |
| | | }); |
| | |
| | | }, |
| | | method:'GET', |
| | | success(result) { |
| | | console.log(result) |
| | | var newsData = '' |
| | | var str = '' |
| | | let res = result.data |
| | | if (res[0]) { |
| | | if (res[0].ioType === 101) { |
| | | if (res.data[0]) { |
| | | if (res.data[0].ioType === 101) { |
| | | that.title = '全板出库' |
| | | } else if(res[0].ioType === 103) { |
| | | } else if(res.data[0].ioType === 103) { |
| | | that.title = '检料出库' |
| | | } |
| | | that.staNo = '目标站' + res[0].staNo |
| | | that.staNo = '目标站' + res.data[0].staNo |
| | | |
| | | for (var i = 0; i < res[0].matDtos.length; i++) { |
| | | str = res[0].matDtos[i].matnr + ' - ' + res[0].matDtos[i].batch + '\n' |
| | | for (var i = 0; i < res.data[0].matDtos.length; i++) { |
| | | str = res.data[0].matDtos[i].matnr + ' - ' + res.data[0].matDtos[i].batch + '\n' |
| | | newsData = newsData + str |
| | | } |
| | | that.newspaper = newsData |