#
zjj
2025-05-28 36909d121a6f1b4c3f4540b8c64c80e872d105ae
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>
@@ -187,7 +189,6 @@
                        <p class="english">Today</p>
                     </view>
                     <view class="sub-main">
                        <!-- 折线图 -->
                        <view class="charts-box ring">
                           <qiun-data-charts type="ring" :opts="{legend:{position:'bottom'}}" :eopts="ringOpts" :chartData="chartsDataPie2" :echartsH5="true" :echartsApp="true"/>
                        </view>
@@ -218,8 +219,8 @@
                  <view class="box-border box-border4"></view>
                  <!-- <text>浙江中扬立库技术有限公司</text>
                  <text>当前版本号</text> -->
                  <view @click="crn()">浙江中扬立库技术有限公司</view>
                  <image src="../../static/barcode.png" mode="aspectFit"></image>
                  <view @click="crn()">嘉善边锋机械股份有限公司</view>
                  <!-- <image src="../../static/barcode.png" mode="aspectFit"></image> -->
               </view>
            </view>
         </view>
@@ -353,6 +354,7 @@
            staNo:'',
            matnr:'',
            maknx:'',
            specs:'',
            count:'',
            orderNo:null,
            doneOfTray:'',
@@ -386,30 +388,32 @@
            that.baseCrnId = BaseCrnId
         this.getUrl()
      },
      onLoad() {
      },
      onReady() {
         // 获得初始数据
         setTimeout(() => {
         setInterval(() => {
            // 获得初始数据
            this.initlineChart();
            this.initPieChart();
         }, 0);
         setTimeout(() => {
            // 主页信息
            this.getServerData();
            this.getOther();
            // this.getPakin();
         }, 1000);
         setInterval(() => {
            // 其他信息
            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() {
@@ -420,6 +424,7 @@
            // 测试用 ↑
            // 返回结果有值 且值不等于空值 就是有错误信息需要展示
            if (res.data && res.data !== "") {
               that.errorMsg = res.data
               that.errorShow = true
               that.move = false // 显示
@@ -530,6 +535,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
@@ -553,7 +559,6 @@
            });
         },
         animation() {
            console.log(this.move);
            if (this.move) { 
               this.topMove = 'topUp'
               this.floorMove = 'floorUp'
@@ -578,6 +583,7 @@
               method:'GET',
               success(result) {
                  var res = result.data
                  console.log(result);
                  if (res.code === 200) {
                     that.chartsData.Line.categories = [
                        that.getDateFormat(-11),that.getDateFormat(-10),that.getDateFormat(-9),that.getDateFormat(-8),