| | |
| | | <template> |
| | | <view class="container"> |
| | | <!-- 宁波捷丰项目 --> |
| | | <uni-transition :duration="duration" :mode-class="homeMode" :show="homeViewShow"> |
| | | <view class="home-view"> |
| | | <view class="head"> |
| | |
| | | <view class="box-item"> |
| | | <text class="item-title">仓库数据</text> |
| | | <text class="item-subTitle">warehouse data</text> |
| | | <view class="img-box"> |
| | | |
| | | <view class="item-img"> |
| | | <image src="../../static/a1.png" mode="aspectFit"></image> |
| | | <view class="flex-col" style="width: calc(100% - 5vw);"> |
| | | <view class="flex-row" style="position: relative;" > |
| | | <view style="width: 2vw;padding-left: 2vw;;font-size: 2vw;">{{baseInfo.xDistance}}</view> |
| | | <view style="position: absolute;bottom: 0;left: 10vw;">m</view> |
| | | </view> |
| | | <view style="height: 100%;text-align: left;text-indent: 2em;">累计走行距离(米)</view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="item-img"> |
| | | <image src="../../static/b1.png" mode="aspectFit"></image> |
| | | <view class="flex-col" style="width: calc(100% - 5vw);"> |
| | | <view class="flex-row" style="position: relative;" > |
| | | <view style="width: 2vw;padding-left: 2vw;;font-size: 2vw;">{{baseInfo.yDistance}}</view> |
| | | <view style="position: absolute;bottom: 0;left: 10vw;">m</view> |
| | | </view> |
| | | <view style="height: 100%;text-align: left;text-indent: 2em;">累计升降距离(米)</view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="item-img"> |
| | | <image src="../../static/c1.png" mode="aspectFit"></image> |
| | | <view class="flex-col" style="width: calc(100% - 5vw);"> |
| | | <view class="flex-row" style="position: relative;" > |
| | | <view style="-width: 2vw;padding-left: 2vw;;font-size: 2vw;">{{baseInfo.xDuration}}</view> |
| | | <view style="position: absolute;bottom: 0;left: 10vw;">s</view> |
| | | </view> |
| | | <view style="height: 100%;text-align: left;text-indent: 2em;">累计走行时长(秒)</view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="item-img"> |
| | | <image src="../../static/d1.png" mode="aspectFit"></image> |
| | | <view class="flex-col" style="width: calc(100% - 5vw);"> |
| | | <view class="flex-row" style="position: relative;" > |
| | | <view style="width: 2vw;padding-left: 2vw;;font-size: 2vw;">{{baseInfo.yDuration}}</view> |
| | | <view style="position: absolute;bottom: 0;left: 10vw;">s</view> |
| | | </view> |
| | | <view style="height: 100%;text-align: left;text-indent: 2em;">累计升降时长(秒)</view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view style="width: 100%;"> |
| | | <table style="width: 100%;font-size:1vw;"> |
| | | <tr><th>排名</th><th>料号</th><th>名称</th><th>数量</th></tr> |
| | | <tr v-for="(item,i) in tableList" :key="i"> |
| | | <td>top {{i+1}}</td> |
| | | <td>{{item.matnr}}</td> |
| | | <td>{{item.maktx}}</td> |
| | | <td>{{item.anfme}}</td> |
| | | </tr> |
| | | </table> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="box-item"> |
| | | <view class="flex-row" style="width: 100%;"> |
| | | <!-- 左侧 --> |
| | |
| | | <!-- 百分比 --> |
| | | <view class="flex-col" style="align-items: flex-end;justify-content: flex-end;" > |
| | | <!-- style="justify-content: flex-end;position: absolute;top: 0;right: 1vw;text-align: right;" --> |
| | | <text class="item-title">31</text> |
| | | <text class="item-subTitle">今日订单数</text> |
| | | <text class="item-title">{{pakin}} / {{pikout}}</text> |
| | | <text class="item-subTitle">今日入/出数</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="flex-row sub-info"> |
| | | <image src="../../static/g1.png" mode="aspectFit"></image> |
| | | <view style="width: 8vw;height: 4vw;line-height: 4vw;">在库</view> |
| | | <view style="width: 8vw;height: 4vw;line-height: 4vw;font-size: 2vw;">{{baseInfo.stockCount}}</view> |
| | | <view style="width: 8vw;height: 4vw;line-height: 4vw;font-size: 2vw;font-family: DS-DIGI-1;">{{baseInfo.stockCount}}</view> |
| | | </view> |
| | | <view class="flex-row sub-info" style="margin-top: 2vh;"> |
| | | <image src="../../static/f1.png" mode="aspectFit"></image> |
| | | <view style="width: 8vw;height: 4vw;line-height: 4vw;">空库</view> |
| | | <view style="width: 8vw;height: 4vw;line-height: 4vw;font-size: 2vw;">{{baseInfo.emptyCount}}</view> |
| | | <view style="width: 8vw;height: 4vw;line-height: 4vw;font-size: 2vw;font-family: DS-DIGI-1;">{{baseInfo.emptyCount}}</view> |
| | | </view> |
| | | <view class="flex-row sub-info" style="margin-top: 2vh;"> |
| | | <image src="../../static/e1.png" mode="aspectFit"></image> |
| | | <view style="width: 8vw;height: 4vw;line-height: 4vw;">锁定</view> |
| | | <view style="width: 8vw;height: 4vw;line-height: 4vw;font-size: 2vw;">{{baseInfo.noneCount}}</view> |
| | | <view style="width: 8vw;height: 4vw;line-height: 4vw;font-size: 2vw;font-family: DS-DIGI-1;">{{baseInfo.noneCount}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="text-content"> |
| | | <!-- head --> |
| | | <view class="swiper-head"> |
| | | <view>目标站:{{infoText.staNo}}</view> |
| | | <view>商品编号</view> |
| | | <view>商品名称</view> |
| | | <view>规格</view> |
| | | <view>数量</view> |
| | | <view style="width: 20%;">目标站:{{infoText.staNo}}</view> |
| | | <view style="width: 30%;">商品编号</view> |
| | | <view style="width: 20%;">商品名称</view> |
| | | <view style="width: 20%;">批次</view> |
| | | <view style="width: 10%;">数量</view> |
| | | </view> |
| | | <!-- body --> |
| | | <view class="swiper-body"> |
| | |
| | | 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>No:{{i+1}}</view> |
| | | <view>{{item.matNo}}</view> |
| | | <view>{{item.maknx}}</view> |
| | | <view>{{item.specs}}</view> |
| | | <view>{{item.count}}</view> |
| | | <view style="width: 20%;">No:{{i+1}}</view> |
| | | <view style="width: 30%;">{{item.matnr}}</view> |
| | | <view style="width: 20%;">{{item.maknx}}</view> |
| | | <view style="width: 20%;">{{item.batch}}</view> |
| | | <view style="width: 10%;">{{item.count}}</view> |
| | | </swiper-item> |
| | | </swiper> |
| | | </view> |
| | |
| | | staNo: "", |
| | | matnr: "", |
| | | maknx: "", |
| | | specs: "", |
| | | batch: "", |
| | | count: "", |
| | | error: "" |
| | | }, |
| | | swiperList: [] |
| | | swiperList: [], |
| | | tableList: [], |
| | | pakin: 10, |
| | | pikout: 20, |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | this.initlineChart() |
| | | this.initPieChart() |
| | | this.getOther() |
| | | this.getDate() |
| | | this.getDate2() |
| | | this.getInfo() |
| | | this.getError() |
| | | // this.getInfo2() |
| | |
| | | this.getUrl() |
| | | this.controller() |
| | | // 测试用 |
| | | |
| | | this.getTop() |
| | | },1000) |
| | | }, |
| | | methods: { |
| | |
| | | } |
| | | this.calendar = year + "年" + month + "月" + day + "日 " + hours + ":" + minutes + ":" + seconds + " " + weeks |
| | | }, |
| | | // 日历 服务器 |
| | | getDate2() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.commonUrl + "/monitor/date", |
| | | method:"GET", |
| | | success(result) { |
| | | var res = result.data.data |
| | | that.calendar = res.year + "年" + res.month + "月" + res.day + "日 " + res.hour + ":" + res.minute + ":" + res.second + " " + res.week |
| | | that.currDate = res.year + "/" + res.month + "/" + res.day |
| | | } |
| | | }) |
| | | }, |
| | | getDateFormat(value) { |
| | | var date = new Date();// 获取当前时间 |
| | | date.setDate(date.getDate() + value);// 设置天数 -1 天 |
| | |
| | | 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 |
| | | that.pakin = res.data.rows[0].data[11] |
| | | that.pikout = res.data.rows[1].data[11] |
| | | } |
| | | } |
| | | }) |
| | |
| | | } |
| | | }) |
| | | }, |
| | | // 获取top在库 |
| | | getTop() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.commonUrl + '/monitor/loc/top', |
| | | success(res) { |
| | | that.tableList = res.data.data |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | <style> |
| | | /* @import url("../../static/css/common.css"); */ |
| | | @font-face { |
| | | font-style: normal; |
| | | font-family: DS-DIGI-1; |
| | | src: url('../../static/font-family/DS-DIGI-1.ttf'); |
| | | } |
| | | @import url("home.css"); |
| | | /* 列 */ |
| | | .flex-col { |
| | |
| | | right: 2%; |
| | | top: 2%; |
| | | font-size:1vw; |
| | | transform: scale(0.8); |
| | | font-family: DS-DIGI-1; |
| | | } |
| | | .button-left { |
| | | position: absolute; |
| | |
| | | width: 13.5%; |
| | | height: 8.5%; |
| | | } |
| | | .img-box { |
| | | width: 100%; |
| | | /* background-color: #666666; */ |
| | | display: flex; |
| | | flex-direction: row; |
| | | justify-content: flex-start; |
| | | flex-wrap: wrap; |
| | | font-size: 1vw; |
| | | } |
| | | |
| | | .item-img { |
| | | width: 50%; |
| | | margin-top: 5%; |