| | |
| | | setTimeout(() => { |
| | | this.getServerData(); |
| | | this.getOther(); |
| | | this.getPakin(); |
| | | // this.getPakin(); |
| | | }, 1000); |
| | | setInterval(() => { |
| | | this.getDate(); |
| | |
| | | methods: { |
| | | // 获取url |
| | | getUrl() { |
| | | this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort + "/" +this.baseUrl |
| | | this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort +this.baseUrl |
| | | }, |
| | | // 获取错误信息 |
| | | getYYY() { |
| | |
| | | }, |
| | | method:'GET', |
| | | success(result) { |
| | | console.log(result); |
| | | // console.log(result); |
| | | res = result.data |
| | | if (res.data && res.data !== "") { |
| | | that.errorMsg = res.data |
| | |
| | | that.move = false // 显示 |
| | | } else { |
| | | that.errorShow = false |
| | | if (that.pakinShow) { |
| | | return; |
| | | } else { |
| | | that.move = true // 隐藏 |
| | | } |
| | | // if (that.pakinShow) { |
| | | // return; |
| | | // } else { |
| | | // that.move = true // 隐藏 |
| | | // } |
| | | } |
| | | } |
| | | }); |
| | |
| | | }, |
| | | method:'GET', |
| | | success(result) { |
| | | // console.log(result); |
| | | res = result.data |
| | | if(res.data && res.data !== null) { |
| | | // that.move = false |
| | |
| | | } |
| | | that.staNo = '目标站:' + res.data[0].staNo |
| | | that.matnr = '商品编号:' + res.data[0].matDtos[0].matnr |
| | | that.maknx = '商品名称:' + res.data[0].matDtos[0].maknx |
| | | that.maknx = '商品名称:' + res.data[0].matDtos[0].specs |
| | | that.count = '出库数量:' + res.data[0].matDtos[0].count |
| | | if (res.data[0].orderNo) { |
| | | that.orderNo = "订单号:" + res.data[0].orderNo |
| | |
| | | that.totalOfTray = '托盘总数量:' + res.data[0].totalOfTray |
| | | that.doneOfUnit = '已出箱数:' + res.data[0].doneOfUnit |
| | | that.totalOfUnit = '总箱数:' + res.data[0].totalOfUnit |
| | | if (that.errorShow) { |
| | | // that.pakinShow = false |
| | | return; |
| | | } else { |
| | | that.newspaper = newsData |
| | | that.move = false |
| | | } |
| | | // if (that.errorShow) { |
| | | // // that.pakinShow = false |
| | | // return; |
| | | // } else { |
| | | // that.newspaper = newsData |
| | | // that.move = false |
| | | // } |
| | | }else { |
| | | that.move = true |
| | | } |
| | |
| | | }); |
| | | }, |
| | | animation() { |
| | | if (this.move) { |
| | | // 上层向上 / 下层向上 |
| | | if (this.move) { // true 看板上升 false 看板下降 |
| | | this.topMove = 'topUp' |
| | | this.floorMove = 'floorUp' |
| | | } else { |
| | | // 上层向下 / 下层向下 |
| | | this.topMove = 'topDown' |
| | | this.floorMove = 'floorDown' |
| | | } |
| | |
| | | url: that.commonUrl + "/monitor/line/charts", |
| | | method:'GET', |
| | | success(result) { |
| | | console.log(result) |
| | | var res = result.data |
| | | if (res.code === 200) { |
| | | that.chartsData.Line.categories = [ |
| | |
| | | uni.setStorageSync('BasePort',this.basePort); |
| | | uni.setStorageSync('BaseCrnId',this.baseCrnId); |
| | | this.getUrl() |
| | | console.log(uni.getStorageSync('BaseIp')); |
| | | console.log(this.baseIP); |
| | | console.log(this.commonUrl); |
| | | this.ejectShow = false |
| | | }, |
| | | // 弹出层取消 |