2024-08-19 15:45:30 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<view class="home_wraper">
|
|
|
|
|
|
<view class="zd_content">
|
|
|
|
|
|
<view class="header">首页</view>
|
|
|
|
|
|
<view class="userInfo-wrap">
|
|
|
|
|
|
<view class="userInfo">
|
|
|
|
|
|
<text v-if="userName !== ''" class="p1">{{userName}}</text>
|
2024-08-19 17:23:16 +08:00
|
|
|
|
<text class="p2">欢迎进入西门子LMS手持系统!</text>
|
2024-08-19 15:45:30 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
<view class="exit" @tap="Quit">
|
|
|
|
|
|
<view class="icon-exit"></view>
|
|
|
|
|
|
<view class="exit-text">退出</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="zd_home_wrapper">
|
|
|
|
|
|
<view class="menus_wrap">
|
|
|
|
|
|
<view class="fir_menu_wrap">
|
2024-08-19 18:04:12 +08:00
|
|
|
|
<view class="fir_menu-item" v-for="(e, i) in menuList" :key="i" @tap="toPage(e)">
|
2024-08-19 15:45:30 +08:00
|
|
|
|
<image class="menu-img" :src="require('../../static/image/menu/' + e.icon + '.png')" alt="">
|
|
|
|
|
|
<view class="menu-name">{{e.title}}</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
userName: '',
|
|
|
|
|
|
menuList: [
|
2024-09-06 15:31:28 +08:00
|
|
|
|
{title: '物料入库', icon: 'RF03', path: '/pages/manage/mater-in-storage'},
|
2024-09-19 13:20:21 +08:00
|
|
|
|
{title: '笼框补仓', icon: 'RF01', path: '/pages/manage/empty-tray-back'},
|
2024-09-06 09:35:26 +08:00
|
|
|
|
// {title: '外协区空料架送回', icon: 'RF05', path: '/pages/manage/empty-material-racks-back'},
|
|
|
|
|
|
// {title: '物料转运', icon: 'RF02', path: '/pages/manage/material-transfer'},
|
2024-08-19 18:04:12 +08:00
|
|
|
|
{title: '区域锁定', icon: 'RF06', path: '/pages/manage/area-lock'},
|
2024-09-13 16:11:36 +08:00
|
|
|
|
{title: '路线锁定', icon: 'RF08', path: '/pages/manage/route-lock'},
|
2024-09-19 13:20:21 +08:00
|
|
|
|
{title: '呼叫空框', icon: 'RF04', path: '/pages/manage/fill-tray'},
|
2024-09-01 16:21:54 +08:00
|
|
|
|
{title: '修改订单工序', icon: 'RF07', path: '/pages/manage/modify-process'}
|
2024-08-19 15:45:30 +08:00
|
|
|
|
],
|
|
|
|
|
|
show: false,
|
|
|
|
|
|
secM: []
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
created () {
|
|
|
|
|
|
this.$store.dispatch('setPublicObj', '')
|
|
|
|
|
|
if (this.$store.getters.userInfo) {
|
|
|
|
|
|
this.userName = JSON.parse(this.$store.getters.userInfo).username
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
async _authority () {
|
|
|
|
|
|
let res = await authority()
|
|
|
|
|
|
this.menuList = [...res.sonTree]
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
toPage (e) {
|
|
|
|
|
|
let url = e.path + '?title=' + e.title
|
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
|
url: url
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
Quit () {
|
2024-09-20 11:24:16 +08:00
|
|
|
|
if (this.$store.getters.routeStatus) {
|
|
|
|
|
|
uni.showModal({
|
|
|
|
|
|
title: '提示',
|
|
|
|
|
|
showCancel: false,
|
|
|
|
|
|
content: '路线锁定未释放,请操作完成再退出!'
|
|
|
|
|
|
})
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
this.$store.dispatch('delUserInfo', '')
|
|
|
|
|
|
this.$globalData.stopTimer()
|
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
|
url: '/pages/login/login'
|
|
|
|
|
|
})
|
2024-08-19 15:45:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="stylus">
|
|
|
|
|
|
@import '../../common/style/mixin.styl';
|
|
|
|
|
|
.home_wraper
|
|
|
|
|
|
_wh(100%, 100%)
|
|
|
|
|
|
overflow hidden
|
|
|
|
|
|
.zd_content
|
|
|
|
|
|
padding 0 24rpx
|
|
|
|
|
|
height 100%
|
|
|
|
|
|
top 0
|
|
|
|
|
|
padding-top calc(var(--status-bar-height) + 86rpx)
|
|
|
|
|
|
// background linear-gradient(to bottom, #fae2ca 0%, #fff5ea 20%, #fdfdfd 100%)
|
|
|
|
|
|
background linear-gradient(to bottom, #f5f6fb 0%, #fff 100%)
|
|
|
|
|
|
.header
|
|
|
|
|
|
position fixed
|
|
|
|
|
|
left 0
|
|
|
|
|
|
top 0
|
|
|
|
|
|
padding-top var(--status-bar-height)
|
|
|
|
|
|
z-index 100
|
|
|
|
|
|
_wh(100%, calc(var(--status-bar-height) + 86rpx))
|
|
|
|
|
|
_font(36rpx,86rpx,#333,,center)
|
|
|
|
|
|
.userInfo-wrap
|
|
|
|
|
|
_fj()
|
|
|
|
|
|
_wh(100%,190rpx)
|
|
|
|
|
|
padding 0 30rpx
|
|
|
|
|
|
background-color $red
|
|
|
|
|
|
_bis('../../static/image/info_bg.png',auto,100%,right,bottom)
|
|
|
|
|
|
border-radius 12rpx
|
|
|
|
|
|
margin-bottom 24rpx
|
|
|
|
|
|
.userInfo
|
|
|
|
|
|
_fj(,flex-start,column)
|
|
|
|
|
|
.p1
|
|
|
|
|
|
_font(34rpx,1,#fff)
|
|
|
|
|
|
padding-bottom 18rpx
|
|
|
|
|
|
.p2
|
|
|
|
|
|
_font(26rpx,1,#fff)
|
|
|
|
|
|
.exit
|
|
|
|
|
|
_fj()
|
|
|
|
|
|
height 50rpx
|
|
|
|
|
|
padding 0 20rpx
|
|
|
|
|
|
border 1px solid #FF967C
|
|
|
|
|
|
border-radius 20rpx
|
|
|
|
|
|
.icon-exit
|
|
|
|
|
|
_wh(22rpx, 22rpx)
|
|
|
|
|
|
_bis('../../static/image/exit.png',22rpx)
|
|
|
|
|
|
.exit-text
|
|
|
|
|
|
_font(32rpx,50rpx,#fff,,right)
|
|
|
|
|
|
padding-left 10rpx
|
|
|
|
|
|
.zd_home_wrapper
|
|
|
|
|
|
_wh(100%, calc(100% - 238rpx))
|
|
|
|
|
|
margin-bottom 24rpx
|
|
|
|
|
|
background-color #fff
|
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
|
padding: 14rpx;
|
|
|
|
|
|
margin-bottom 24rpx
|
|
|
|
|
|
box-shadow: 0 4rpx 10rpx 4rpx rgba(0,0,0,.1)
|
|
|
|
|
|
overflow-y scroll
|
|
|
|
|
|
.menus_wrap
|
|
|
|
|
|
width 100%
|
|
|
|
|
|
.fir_menu_wrap
|
|
|
|
|
|
_fj(flex-start,flex-start,,wrap)
|
|
|
|
|
|
align-content: flex-start
|
|
|
|
|
|
.fir_menu-item
|
|
|
|
|
|
_fj()
|
|
|
|
|
|
flex-direction column
|
|
|
|
|
|
_wh(30%, auto)
|
|
|
|
|
|
margin-bottom 40rpx
|
|
|
|
|
|
_font(26rpx, 60rpx,#e74f1a,,center)
|
|
|
|
|
|
&:nth-child(3n+2)
|
|
|
|
|
|
margin-left 5%
|
|
|
|
|
|
margin-right 5%
|
|
|
|
|
|
::v-deep .menu-img
|
|
|
|
|
|
_wh(100%, auto)
|
|
|
|
|
|
img
|
|
|
|
|
|
position relative
|
|
|
|
|
|
opacity 1
|
|
|
|
|
|
_wh(55%, auto)
|
|
|
|
|
|
margin 0 auto 0.2rpx
|
|
|
|
|
|
.menu-name
|
|
|
|
|
|
_font(28rpx, 38rpx, #444,,center)
|
|
|
|
|
|
</style>
|