#
whycq
2023-11-07 59106f4f1c9e7daaf50da15b8d3f3b5fc329aa65
Monitor-APP/pages/home/home.vue
@@ -215,11 +215,12 @@
                     <view class="text-content">
                        <!-- head -->
                        <view class="swiper-head">
                           <view style="width: 25%;">目标站:{{infoText.staNo}}</view>
                           <view style="width: 25%;">商品编号</view>
                           <view style="width: 25%;">商品名称</view>
                           <!-- <view style="width: 20%;">规格</view> -->
                           <view style="width: 25%;">数量</view>
                           <view style="width: 10vw;">目标站:{{infoText.staNo}}</view>
                           <view style="flex: 1;">商品编号</view>
                           <view style="flex: 1;">商品名称</view>
                           <view style="width: 10vw;">数量</view>
                           <view style="flex: 1;">箱码</view>
                           <view style="width: 10vw;">库存数量</view>
                        </view>
                        <!-- body -->
                        <view class="swiper-body">
@@ -231,11 +232,13 @@
                           display-multiple-items="8"
                           circular="true" :autoplay="true" :interval="3000" :duration="1000">
                              <swiper-item class="swiper-item" v-for="(item,i) in swiperList" :key="i">
                                 <view style="width: 25%;">No:{{i+1}}</view>
                                 <view style="width: 25%;">{{item.matNo}}</view>
                                 <view style="width: 25%;">{{item.maknx}}</view>
                                 <view style="width: 10vw;">No:{{i+1}}</view>
                                 <view style="flex: 1;">{{item.matNo}}</view>
                                 <view style="flex: 1;">{{item.maknx}}</view>
                                 <!-- <view style="width: 20%;">{{item.specs}}</view> -->
                                 <view style="width: 25%;">{{item.count}}</view>
                                 <view style="width: 10vw;">{{item.count}}</view>
                                 <view style="flex: 1;">{{item.zpallet}}</view>
                                 <view style="width: 10vw;">{{item.anfme}}</view>
                              </swiper-item>
                           </swiper>
                        </view>
@@ -244,10 +247,10 @@
               </view>
            </view>
         </view>
         <!-- <view class="btn"> -->
         <view class="btn">
            <!-- <button >拣料回库</button> -->
            <!-- <button  size="mini" type="primary" @click="">拣料回库</button> -->
         <!-- </view> -->
            <button  size="mini" type="primary" @click="">盘点回库</button>
         </view>
      </uni-transition>
      <!-- 异常信息 -->
      <uni-transition :duration="duration" :mode-class="errorInfoMode" :show="errorInfoViewShow">
@@ -420,17 +423,26 @@
         that.basePort = BasePort
         that.baseCrnId = BaseCrnId
         
         this.getDate2()
         this.getUrl()
         this.getServerData()
         // this.initlineChart()
         // this.initPieChart()
         this.getOther()
         setTimeout(()=>{
            this.initlineChart()
            this.getServerData()
            this.initPieChart()
            this.getOther()
            // this.getServerData()
            // this.initlineChart()
            // this.initPieChart()
            // this.getOther()
            setTimeout(()=>{
               this.getServerData()
               this.initlineChart()
               this.initPieChart()
               this.getOther()
               setTimeout(()=>{
                  this.getServerData()
                  this.initlineChart()
                  this.initPieChart()
                  this.getOther()
               },3000)
            },1000)
         },1000)
      },
      onLoad() {
@@ -446,14 +458,14 @@
         },1000)
         
         setInterval(()=>{
            this.getServerData()
            this.initlineChart()
            this.initPieChart()
            this.getOther()
            this.getDate2()
            this.getUrl()
            this.getInfo()
            this.getError()
            // this.getInfo2()
            // this.getError2()
            this.controller()
         },600000)
      },
      methods: {
         timeOuts() {
@@ -542,6 +554,7 @@
         infoModel(res) {
            let that = this
            if (res.data && res.data !== "") {
               that.infoText.title = res.data[0].title
               if (that.infoType == 2 || that.infoType == 3) {
                  return;
               }
@@ -736,7 +749,6 @@
            var m = date.getMonth() + 1
            var d = date.getDate()
            var newDate = m + '-' + d
            console.log(newDate);
            return newDate
         },
         /*************** 折线图 *****************************************************************************************************/
@@ -751,11 +763,14 @@
               success(result) {
                  var res = result.data
                  if (res.code === 200) {
                     that.chartsData.Line.categories = [
                        that.getDateFormat(-11),that.getDateFormat(-10),that.getDateFormat(-9),that.getDateFormat(-8),
                        that.getDateFormat(-7),that.getDateFormat(-6),that.getDateFormat(-5),that.getDateFormat(-4),
                        that.getDateFormat(-3),that.getDateFormat(-2),that.getDateFormat(-1),that.getDateFormat(0),]
                     that.chartsData.Line.series = res.data.rows
                     setTimeout(()=> {
                        that.chartsData.Line.categories = [
                           that.getDateFormat(-11),that.getDateFormat(-10),that.getDateFormat(-9),that.getDateFormat(-8),
                           that.getDateFormat(-7),that.getDateFormat(-6),that.getDateFormat(-5),that.getDateFormat(-4),
                           that.getDateFormat(-3),that.getDateFormat(-2),that.getDateFormat(-1),that.getDateFormat(0),]
                        that.chartsData.Line.series = res.data.rows
                     },1000)
                  }
               }
            })
@@ -1010,7 +1025,7 @@
   }
   .info-main {
      width: 100vw;
      height: 88vh;
      height: 80vh;
      display: flex;
      justify-content: center;
      align-items: center;