| | |
| | | <text>{{title}}</text> |
| | | </view> |
| | | <view style="width: 80%;height: 100%;display: inline-block;float: left;font-size: 160rpx;"> |
| | | <text class="animate" v-show="!errorShow && pakinShow && pakinGun">{{newspaper}}</text> |
| | | <!--显示order订单编号 --> |
| | | <text v-show="orderShow" style="display: inline-block;position: absolute; height: 12%;width: 68%;background-color: #001ead;z-index: 9999;" >CK20220718</text> |
| | | <!-- 显示滚动列表 --> |
| | | <text class="animate" style="" v-show="!errorShow && pakinShow && pakinGun">{{newspaper}}</text> |
| | | <text v-show="errorShow">{{errorPaper}}</text> |
| | | <text v-show="pakinShow">{{newspaper}}</text> |
| | | </view> |
| | |
| | | errorShow:'', |
| | | pakinShow:'', |
| | | pakinGun:'', |
| | | orderShow:false, |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | this.animation(); |
| | | },1000) |
| | | }, |
| | | onLoad() { |
| | | // var that=this |
| | | // plus.runtime.getProperty( plus.runtime.appid, function ( wgtinfo ) { |
| | | // that.version=wgtinfo.version |
| | | // }); |
| | | }, |
| | | methods: { |
| | | getEEE() { |
| | | var result = ycqdata.dataEEE |
| | | let that = this |
| | | let res = result.data |
| | | if (res.data && res.data !== "") { |
| | | that.title = '' |
| | | that.staNo = '' |
| | | that.pakinShow = false |
| | | that.errorShow = true |
| | | that.errorPaper = res.data |
| | | that.move = false // 显示 |
| | | } else { |
| | | that.errorPaper = '' |
| | | that.errorShow = false |
| | | if (that.pakinShow) { |
| | | return; |
| | | } else { |
| | | that.move = true // 隐藏 |
| | | } |
| | | } |
| | | }, |
| | | getYYY() { |
| | | var result = ycqdata.dataYYY |
| | | let that = this |
| | | var newsData = '' |
| | | var str = '' |
| | | let res = result.data |
| | | if(res.data && res.data !== null) { |
| | | if (res.data[0].matDtos.length > 0) { |
| | | that.pakinShow = true |
| | | that.pakinGun = true |
| | | if (res.data[0].ioType === 101) { |
| | | that.title = '全板出库' |
| | | } else if(res.data[0].ioType === 103) { |
| | | that.title = '检料出库' |
| | | } |
| | | if (res.data[0].orderNo) { |
| | | that.orderShow = true |
| | | } else { |
| | | that.orderShow = false |
| | | } |
| | | that.staNo = '目标站' + res.data[0].staNo |
| | | 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 |
| | | } |
| | | if (that.errorShow) { |
| | | // that.pakinShow = false |
| | | return; |
| | | } else { |
| | | that.newspaper = newsData |
| | | that.move = false |
| | | } |
| | | if (res.data[0].matDtos.length <= 8) { |
| | | that.errorShow = true |
| | | that.pakinShow = true |
| | | that.pakinGun = false |
| | | } |
| | | } else { |
| | | that.move = true |
| | | } |
| | | } else { |
| | | that.move = true |
| | | } |
| | | |
| | | }, |
| | | getError() { |
| | | let that = this |
| | | uni.request({ |
| | |
| | | } else if(res.data[0].ioType === 103) { |
| | | that.title = '检料出库' |
| | | } |
| | | if (res.data[0].orderNo) { |
| | | that.orderShow = true |
| | | } else { |
| | | that.orderShow = false |
| | | } |
| | | that.staNo = '目标站' + res.data[0].staNo |
| | | 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' |
| | |
| | | }, |
| | | animation() { |
| | | if (this.move) { |
| | | // 上层向上 / 下层向上 |
| | | this.topMove = 'topUp' |
| | | this.floorMove = 'floorUp' |
| | | } else { |
| | | // 上层向下 / 下层向下 |
| | | this.topMove = 'topDown' |
| | | this.floorMove = 'floorDown' |
| | | } |