2024-02-01 13:55:27 +08:00
|
|
|
|
<template>
|
2024-02-18 17:58:37 +08:00
|
|
|
|
<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>
|
|
|
|
|
|
<text class="p2">欢迎进入上电科上海航天自动化物流系统!</text>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
<view class="exit" @tap="Quit">
|
|
|
|
|
|
<view class="icon-exit"></view>
|
|
|
|
|
|
<view class="exit-text">退出</view>
|
2024-02-01 13:55:27 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
2024-02-18 17:58:37 +08:00
|
|
|
|
<view class="zd_home_wrapper">
|
2024-03-07 16:13:36 +08:00
|
|
|
|
<view class="menus_wrap">
|
2024-02-18 17:58:37 +08:00
|
|
|
|
<view class="fir_menu_wrap">
|
2024-03-07 16:13:36 +08:00
|
|
|
|
<view class="fir_menu-item" v-for="e in menuList1" :key="e.id" @tap="toPage(e)">
|
|
|
|
|
|
<image class="menu-img" :src="require('../../static/image/menu/' + e.icon + '.png')" alt="">
|
|
|
|
|
|
<view class="menu-name">{{e.title}}</view>
|
2024-02-18 17:58:37 +08:00
|
|
|
|
</view>
|
2024-02-01 13:55:27 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2024-02-18 17:58:37 +08:00
|
|
|
|
userName: '',
|
|
|
|
|
|
menuList: [
|
|
|
|
|
|
{id: '1', name: '人工组盘', sonTree: [
|
|
|
|
|
|
{menu_id: '1', icon: 'RF01', name: '人工组盘', path: '/pages/manage/man-group-disk'}
|
|
|
|
|
|
]},
|
|
|
|
|
|
{id: '2', name: '原材料库', sonTree: [
|
|
|
|
|
|
{menu_id: '1', icon: 'RF02', name: '入库', path: '/pages/manage/in-storage'},
|
|
|
|
|
|
{menu_id: '2', icon: 'RF03', name: '出库', path: '/pages/manage/out-storage'}
|
|
|
|
|
|
]},
|
|
|
|
|
|
{id: '3', name: '任务流转', sonTree: [
|
|
|
|
|
|
{menu_id: '1', icon: 'RF04', name: '任务流转', path: '/pages/manage/task-flow'}
|
|
|
|
|
|
]}
|
|
|
|
|
|
],
|
2024-03-07 16:13:36 +08:00
|
|
|
|
menuList1: [
|
2024-03-11 13:43:45 +08:00
|
|
|
|
{id: 1, title: '空托盘出库', icon: 'RF01', path: '/pages/manage/empty-tray-out'},
|
|
|
|
|
|
{id: 2, title: '空托盘入库', icon: 'RF02', path: '/pages/manage/empty-tray-in'},
|
2024-03-11 17:11:26 +08:00
|
|
|
|
{id: 3, title: '组盘入库', icon: 'RF03', path: '/pages/manage/group-in-storage'},
|
2024-03-11 18:07:25 +08:00
|
|
|
|
{id: 4, title: '原料出库', icon: 'RF04', path: '/pages/manage/mater-out-storage'},
|
2024-03-12 15:23:12 +08:00
|
|
|
|
{id: 5, title: '生产下料', icon: 'RF05', path: '/pages/manage/produce-cut'},
|
|
|
|
|
|
{id: 6, title: '点位更新', icon: 'RF06', path: '/pages/manage/point-update'},
|
2024-03-13 15:42:17 +08:00
|
|
|
|
{id: 7, title: '定点作业', icon: 'RF07', path: '/pages/manage/fixed-point-task'},
|
|
|
|
|
|
{id: 8, title: '作业管理', icon: 'RF08', path: '/pages/manage/task-manage'},
|
2024-09-03 09:04:57 +08:00
|
|
|
|
{id: 9, title: '出库确认', icon: 'RF09', path: '/pages/manage/out-storage-confirm'},
|
|
|
|
|
|
{id: 10, title: '呼叫空托盘', icon: 'RF10', path: '/pages/manage/call-empty-tray'},
|
|
|
|
|
|
{id: 11, title: '送空托盘', icon: 'RF11', path: '/pages/manage/send-empty-tray'}
|
2024-03-07 16:13:36 +08:00
|
|
|
|
],
|
2024-02-01 13:55:27 +08:00
|
|
|
|
show: false,
|
|
|
|
|
|
secM: []
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
created () {
|
2024-02-18 17:58:37 +08:00
|
|
|
|
this.$store.dispatch('setPublicObj', '')
|
|
|
|
|
|
if (this.$store.getters.userInfo) {
|
|
|
|
|
|
this.userName = JSON.parse(this.$store.getters.userInfo).username
|
|
|
|
|
|
}
|
2024-02-01 13:55:27 +08:00
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
async _authority () {
|
|
|
|
|
|
let res = await authority()
|
|
|
|
|
|
this.menuList = [...res.sonTree]
|
|
|
|
|
|
|
|
|
|
|
|
},
|
2024-02-18 17:58:37 +08:00
|
|
|
|
toPage (e) {
|
2024-03-12 15:23:12 +08:00
|
|
|
|
let url = e.path + '?title=' + e.title
|
2024-02-01 13:55:27 +08:00
|
|
|
|
uni.redirectTo({
|
|
|
|
|
|
url: url
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
Quit () {
|
2024-03-12 15:23:12 +08:00
|
|
|
|
this.$store.dispatch('delUserInfo', '')
|
2024-02-01 13:55:27 +08:00
|
|
|
|
uni.redirectTo({
|
|
|
|
|
|
url: '/pages/login/login'
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="stylus">
|
|
|
|
|
|
@import '../../common/style/mixin.styl';
|
2024-02-18 17:58:37 +08:00
|
|
|
|
.home_wraper
|
|
|
|
|
|
_wh(100%, 100%)
|
|
|
|
|
|
overflow hidden
|
2024-02-01 13:55:27 +08:00
|
|
|
|
.zd_content
|
2024-02-18 17:58:37 +08:00
|
|
|
|
padding 0 24rpx
|
|
|
|
|
|
height 100%
|
|
|
|
|
|
top 0
|
|
|
|
|
|
padding-top calc(var(--status-bar-height) + 86rpx)
|
2024-03-12 15:23:12 +08:00
|
|
|
|
// background linear-gradient(to bottom, #fae2ca 0%, #fff5ea 20%, #fdfdfd 100%)
|
|
|
|
|
|
background linear-gradient(to bottom, #f5f6fb 0%, #fff 100%)
|
2024-02-01 13:55:27 +08:00
|
|
|
|
.header
|
2024-02-18 17:58:37 +08:00
|
|
|
|
position fixed
|
|
|
|
|
|
left 0
|
|
|
|
|
|
top 0
|
|
|
|
|
|
padding-top var(--status-bar-height)
|
|
|
|
|
|
z-index 100
|
|
|
|
|
|
_wh(100%, calc(var(--status-bar-height) + 86rpx))
|
2024-02-01 13:55:27 +08:00
|
|
|
|
_font(36rpx,86rpx,#333,,center)
|
|
|
|
|
|
.userInfo-wrap
|
|
|
|
|
|
_fj()
|
2024-02-18 17:58:37 +08:00
|
|
|
|
_wh(100%,190rpx)
|
2024-02-01 13:55:27 +08:00
|
|
|
|
padding 0 30rpx
|
|
|
|
|
|
background-color $red
|
|
|
|
|
|
_bis('../../static/image/info_bg.png',auto,100%,right,bottom)
|
|
|
|
|
|
border-radius 12rpx
|
2024-02-18 17:58:37 +08:00
|
|
|
|
margin-bottom 24rpx
|
2024-02-01 13:55:27 +08:00
|
|
|
|
.userInfo
|
|
|
|
|
|
_fj(,flex-start,column)
|
|
|
|
|
|
.p1
|
|
|
|
|
|
_font(34rpx,1,#fff)
|
|
|
|
|
|
padding-bottom 18rpx
|
|
|
|
|
|
.p2
|
|
|
|
|
|
_font(26rpx,1,#fff)
|
|
|
|
|
|
.exit
|
|
|
|
|
|
_fj()
|
2024-02-18 17:58:37 +08:00
|
|
|
|
height 50rpx
|
|
|
|
|
|
padding 0 20rpx
|
2024-02-01 13:55:27 +08:00
|
|
|
|
border 1px solid #FF967C
|
|
|
|
|
|
border-radius 20rpx
|
|
|
|
|
|
.icon-exit
|
|
|
|
|
|
_wh(22rpx, 22rpx)
|
|
|
|
|
|
_bis('../../static/image/exit.png',22rpx)
|
|
|
|
|
|
.exit-text
|
2024-02-18 17:58:37 +08:00
|
|
|
|
_font(32rpx,50rpx,#fff,,right)
|
2024-02-01 13:55:27 +08:00
|
|
|
|
padding-left 10rpx
|
2024-02-18 17:58:37 +08:00
|
|
|
|
.zd_home_wrapper
|
|
|
|
|
|
_wh(100%, calc(100% - 238rpx))
|
|
|
|
|
|
margin-bottom 24rpx
|
|
|
|
|
|
background-color #fff
|
|
|
|
|
|
border-radius: 12rpx;
|
|
|
|
|
|
padding: 14rpx;
|
|
|
|
|
|
margin-bottom 24rpx
|
2024-03-07 16:13:36 +08:00
|
|
|
|
box-shadow: 0 4rpx 10rpx 4rpx rgba(0,0,0,.1)
|
|
|
|
|
|
overflow-y scroll
|
|
|
|
|
|
.menus_wrap
|
|
|
|
|
|
width 100%
|
2024-02-18 17:58:37 +08:00
|
|
|
|
.fir_menu_wrap
|
2024-02-01 13:55:27 +08:00
|
|
|
|
_fj(flex-start,flex-start,,wrap)
|
|
|
|
|
|
align-content: flex-start
|
2024-03-07 16:13:36 +08:00
|
|
|
|
.fir_menu-item
|
2024-02-01 13:55:27 +08:00
|
|
|
|
_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>
|