| | |
| | | // this.getYYY(); |
| | | // this.getEEE(); |
| | | this.animation(); |
| | | },3000) |
| | | },1000) |
| | | }, |
| | | onLoad() { |
| | | // var that=this |
| | |
| | | // }); |
| | | }, |
| | | methods: { |
| | | |
| | | getError() { |
| | | let that = this |
| | | uni.request({ |
| | |
| | | }, |
| | | method:'GET', |
| | | success(result) { |
| | | console.log(result) |
| | | let res = result.data |
| | | if (res.data && res.data !== "") { |
| | | console.log('有异常') |
| | | that.title = '' |
| | | that.staNo = '' |
| | | that.pakinShow = false |
| | |
| | | } else { |
| | | that.errorPaper = '' |
| | | that.errorShow = false |
| | | console.log('无异常') |
| | | console.log(that.pakinShow) |
| | | if (that.pakinShow) { |
| | | console.log('无异常,有拣货') |
| | | return; |
| | | } else { |
| | | that.move = true // 隐藏 |
| | |
| | | }, |
| | | method:'GET', |
| | | success(result) { |
| | | console.log(result) |
| | | var newsData = '' |
| | | var str = '' |
| | | let res = result.data |
| | | if(res.data) { |
| | | console.log("拣货,有拣料") |
| | | if (res.data[0].matDtos.length > 0) { |
| | | console.log("有拣料,长度>8") |
| | | |
| | | that.pakinShow = true |
| | | that.pakinGun = true |
| | | // console.log(that.errorShow,that.pakinShow,that.pakinGun) |
| | | |
| | | if (res.data[0].ioType === 101) { |
| | | that.title = '全板出库' |
| | | } else if(res.data[0].ioType === 103) { |
| | |
| | | newsData = newsData + str |
| | | } |
| | | if (that.errorShow) { |
| | | // that.pakinShow = false |
| | | return; |
| | | } else { |
| | | that.newspaper = newsData |
| | | that.move = false |
| | | } |
| | | if (res.data[0].matDtos.length <= 8) { |
| | | console.log("有拣料,长度<=8") |
| | | that.errorShow = true |
| | | that.pakinShow = true |
| | | that.pakinGun = false |
| | | |
| | | } |
| | | console.log(that.errorShow,that.pakinShow,that.pakinGun) |
| | | } else { |
| | | that.move = true |
| | | } |
| | | } |
| | | |
| | | } |
| | | }) |
| | | }, |