#
zjj
2024-09-02 8edd23458c23880ca8b19d54f05e0afa35579ca4
Monitor-APP/pages/home/home.vue
@@ -262,7 +262,8 @@
                           <swiper class="swiper-body-main" vertical="true" 
                           display-multiple-items="8"
                           circular="true" :autoplay="true" :interval="3000" :duration="1000">
                              <swiper-item class="swiper-item" v-for="(item,i) in locs" :key="i">
                              <swiper-item class="swiper-item" v-for="(item,i) in locs" :key="i"
                              :style="item.color">
                                 <view style="width: 10%;">No:{{i+1}}</view>
                                 <view style="width: 12%;">{{item.orderNo ? item.orderNo : '--'}}</view>
                                 <view style="width: 12%;">{{item.wrkNo ? item.wrkNo : '--'}}</view>
@@ -473,10 +474,10 @@
         getVisualizedTest() {
            let that = this
            var result = ycqdata.dataInfo3
            console.log(result);
            // console.log(result);
            let res = result.data
            if (res.code === 200) {
               console.log(res.data.agvWaitPakins);
               // console.log(res.data.agvWaitPakins);
               if (res.data.agvWrkDetls != null) {
                  that.locs = res.data.agvWrkDetls
                  if (res.data.agvWrkMast) {
@@ -484,7 +485,11 @@
                        that.infoText.title = '盘点出库'
                     } else if (res.data.agvWrkMast.ioType == 103) {
                        that.infoText.title = '拣料出库'
                     } else {
                     } else if (res.data.agvWrkMast.ioType == 57) {
                        that.infoText.title = '盘点再入库'
                     } else if (res.data.agvWrkMast.ioType == 53) {
                        that.infoText.title = '拣料再入库'
                     } else if (res.data.agvWrkMast.ioType == 101) {
                        that.infoText.title = '全板出库'
                     } 
                  } else{
@@ -516,18 +521,28 @@
               success(res) {
                  res = res.data
                  that.result = res
                  if (res.code === 200) {
                     console.log(res.data.agvWaitPakins);
                  if (res.code === 200) {
                     if (res.data.agvWrkDetls != null) {
                        that.locs = res.data.agvWrkDetls
                        if (res.data.agvWrkMast) {
                           if (res.data.agvWrkMast.ioType == 107) {
                              that.infoText.title = '盘点出库'
                           } else if (res.data.agvWrkMast.ioType == 103) {
                              that.infoText.title = '拣料出库'
                           } else {
                              that.infoText.title = '拣料出库'
                              for (let k in that.locs) {
                                 if (that.locs[k].anfme == 0 || that.locs[k].anfme == null) {
                                    that.locs[k]['color'] = 'color: #df741c'
                                 }
                              }
                           } else if (res.data.agvWrkMast.ioType == 57) {
                              that.infoText.title = '盘点再入库'
                           } else if (res.data.agvWrkMast.ioType == 53) {
                              that.infoText.title = '拣料再入库'
                           } else if (res.data.agvWrkMast.ioType == 101) {
                              that.infoText.title = '全板出库'
                           } 
                        } else{
                           that.infoText.title = '入库作业'
                        }
@@ -838,7 +853,7 @@
               success(result) {
                  var res = result.data
                  if (res.code === 200) {
                     console.log(res.data.pie);
                     // console.log(res.data.pie);
                     that.chartsData.Pie.series[0].data = res.data.pie
                     that.baseInfo.longAllLoc = res.data.longAllLoc
                     that.baseInfo.shortAllLoc = res.data.shortAllLoc
@@ -896,6 +911,10 @@
      flex-direction: row;
   }
   
   .red {
         color: red
      }
   .container{
      width: 100vw;
      min-height: 100vh;