#
whycq
2022-11-26 cc8abcd322a4b22bb7c7ff512a768a970b8bb442
Monitor-APP/pages/index/index.vue
@@ -25,9 +25,11 @@
                        <!-- 目标站 -->
                        <view class="box-items">{{staNo}}</view>
                        <!-- 商品编号 -->
                        <view class="box-items">{{matnr}}</view>
                        <!-- <view class="box-items">{{matnr}}</view> -->
                        <!-- 商品名称 -->
                        <view class="box-items">{{maknx}}</view>
                        <!-- 商品名称 -->
                        <view class="box-items">{{specs}}</view>
                        <!-- 出库数量 -->
                        <view class="box-items">{{count}}</view>
                     </view>
@@ -353,6 +355,7 @@
            staNo:'',
            matnr:'',
            maknx:'',
            specs:'',
            count:'',
            orderNo:null,
            doneOfTray:'',
@@ -386,6 +389,9 @@
            that.baseCrnId = BaseCrnId
         this.getUrl()
      },
      onLoad() {
      },
      onReady() {
         setInterval(() => {
            // 获得初始数据
@@ -394,19 +400,22 @@
            // 主页信息
            this.getServerData();
            this.getOther();
            this.getDateFormat();
            // 其他信息
            this.getDate();
            this.getPakin();
            this.getError();
            // this.getYYY();
            // this.getEEE();
            this.animation();
            this.animation()
            this.getUrl()
         },1000)
      },
      methods: {
         // 获取url
         getUrl() {
            this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort + this.baseUrl
            this.chartsDataLine1 = JSON.parse(JSON.stringify(demodata.Line))
         },
         // 获取错误信息
         getYYY() {
@@ -527,6 +536,7 @@
                     that.staNo = '目标站:' + res.data[0].staNo
                     that.matnr = '商品编号:' + res.data[0].matDtos[0].matnr
                     that.maknx = '商品名称:' + res.data[0].matDtos[0].maknx
                     that.specs = '规格:' + 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
@@ -550,7 +560,6 @@
            });
         },
         animation() {
            console.log(this.move);
            if (this.move) { 
               this.topMove = 'topUp'
               this.floorMove = 'floorUp'