#
whycq
2022-11-04 32dbc6c8cac5d5e785cc2bed9f6785371a6fc5d5
Monitor-APP/pages/index/index.vue
@@ -342,7 +342,7 @@
            week:'星期四',
            ani:'',
            // move: 'upMove 1.5s 1;',
            move:true,
            move:false,
            topMove:'topUp',
            floorMove:'',
            version:'',
@@ -380,18 +380,11 @@
         const BaseLedId = uni.getStorageSync('BaseLedId');
         const BasePort = uni.getStorageSync('BasePort');
         const BaseCrnId = uni.getStorageSync('BaseCrnId');
         // if (BaseIP && BaseLedId) {
            that.baseIP = BaseIP
            that.baseLedId = BaseLedId
            that.basePort = BasePort
            that.baseCrnId = BaseCrnId
         // } else {
         //    that.baseUrl = ''
         //    that.baseLedId = ''
         // }
         this.getUrl()
         console.log(this.commonUrl);
         // this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort + this.baseUr
      },
      onReady() {
         // 获得初始数据
@@ -416,7 +409,7 @@
      methods: {
         // 获取url
         getUrl() {
            this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort  +this.baseUrl
            this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort + this.baseUrl
         },
         // 获取错误信息
         getYYY() {
@@ -449,8 +442,6 @@
            let   res = result.data
                  // 测试用 ↑
               if(res.data && res.data !== null) {
                  // that.move = false
                  // title
                  if (res.data[0].ioType === 101) {
                     that.title = '全板出库'
                  } else if(res.data[0].ioType === 103) {
@@ -474,7 +465,6 @@
                  that.doneOfUnit = '已出箱数:' + res.data[0].doneOfUnit
                  that.totalOfUnit = '总箱数:' + res.data[0].totalOfUnit
                  if (that.errorShow) {
                           // that.pakinShow = false
                           return;
                        } else {
                           that.newspaper = newsData
@@ -485,42 +475,6 @@
               }
               
               
               // 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.orderNo = "订单号:" + res.data[0].orderNo
               //          that.swiper = 'swiper-here-oN'
               //          that.orderShow = true
               //       } else {
               //          that.orderNo = null;
               //          that.swiper = 'swiper-here'
               //          that.orderShow = false
               //       }
               //       that.staNo = '目标站' + res.data[0].staNo
               //       for (var i = 0; i < res.data[0].matDtos.length; i++) {
               //          var matnr = res.data[0].matDtos[i].matnr + ' - ' + res.data[0].matDtos[i].batch
               //          that.matList.push(matnr)
               //       }
               //
               //       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() {
@@ -533,7 +487,6 @@
               },
               method:'GET',
               success(result) {
                  // console.log(result);
                  res = result.data 
                  if (res.data && res.data !== "") {
                     that.errorMsg = res.data
@@ -544,7 +497,7 @@
                     // if (that.pakinShow) {
                     //    return;
                     // } else {
                     //    that.move = true // 隐藏
                     //    // that.move = true // 隐藏
                     // }
                  }
               }
@@ -564,17 +517,19 @@
               method:'GET',
               success(result) {
                  res = result.data
                  if (that.errorShow) {
                     return;  // 有错误信息
                  }
                  if(res.data && res.data !== null) {
                     // that.move = false
                     // title
                     if (res.data[0].ioType === 101) {
                        that.title = '全板出库'
                     } else if(res.data[0].ioType === 103) {
                        that.title = '检料出库'
                     }
                     } else
                     that.title = res.data[0].title
                     that.staNo = '目标站:' + res.data[0].staNo
                     that.matnr = '商品编号:' + res.data[0].matDtos[0].matnr
                     that.maknx = '商品名称:' + res.data[0].matDtos[0].specs
                     that.maknx = '商品名称:' + res.data[0].matDtos[0].maknx
                     that.count = '出库数量:' + res.data[0].matDtos[0].count
                     if (res.data[0].orderNo) {
                        that.orderNo = "订单号:" + res.data[0].orderNo
@@ -589,21 +544,17 @@
                     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
                     // }
                     that.newspaper = newsData
                     that.move = false
                  }else {
                        that.move = true
                     that.move = true
                  }
               }
            });
         },
         animation() {
            if (this.move) {  // true 看板上升 false 看板下降
            console.log(this.move);
            if (this.move) {
               this.topMove = 'topUp'
               this.floorMove = 'floorUp'
            } else {