Files
pad-hl-hcx-new/pages/home/home.vue

114 lines
2.7 KiB
Vue
Raw Normal View History

2023-03-22 17:30:09 +08:00
<template>
2023-03-21 17:56:02 +08:00
<view class="content">
<view class="header">
<view class="header-item">
<text class="header-user">登录人员{{userName}}</text>
</view>
<view class="header-item header-r">
<button class="header-button" @click="toExit">退&nbsp;&nbsp;</button>
</view>
</view>
2023-03-23 18:55:02 +08:00
<view class="nav-wrapper">
<view class="nav-wrap">
<view class="nav-item">
<text class="nav-text" @click="toJump('/pages/management/inscanerror')">入箱扫码异常</text>
</view>
<view class="nav-item">
<text class="nav-text" @click="toJump('/pages/management/outscanerror')">出箱扫码异常</text>
</view>
<view class="nav-item">
<text class="nav-text" @click="toJump('/pages/management/hcxcheck')">缓存线盘点</text>
</view>
<view class="nav-item">
<text class="nav-text" @click="toJump('/pages/management/agvinerror')">AGV入箱异常</text>
</view>
<view class="nav-item">
<text class="nav-text" @click="toJump('/pages/management/AgvOutError')">AGV出箱异常</text>
</view>
<view class="nav-item">
<text class="nav-text" @click="toJump('/pages/management/HcxOutError')">缓存线出箱异常</text>
</view>
<view class="nav-item">
<text class="nav-text" @click="toJump('/pages/management/ZlOperate')">指令操作</text>
</view>
<view class="nav-item">
<text class="nav-text" @click="toJump('/pages/management/HcxErrorHandle')">缓存线异常处理</text>
</view>
2023-03-21 19:13:34 +08:00
</view>
2023-03-22 17:30:09 +08:00
</view>
</view>
</template>
<script>
export default {
data() {
return {
userName: this.$store.getters.userInfo ? JSON.parse(this.$store.getters.userInfo).id : ''
}
},
onLoad() {
},
methods: {
2023-03-21 17:56:02 +08:00
toJump(path) {
uni.navigateTo({
url: path
});
},
toExit () {
this.$store.dispatch('delUserInfo', '')
uni.redirectTo({
url: '/pages/login/login'
})
2023-03-22 17:30:09 +08:00
}
}
}
</script>
2023-03-21 19:13:34 +08:00
<style lang="stylus" scoped>
2023-03-22 17:30:09 +08:00
@import '../../common/style/mixin.styl';
2023-03-21 19:13:34 +08:00
.content
_fj()
2023-03-22 17:30:09 +08:00
_wh(100%, 100%)
2023-03-21 19:13:34 +08:00
flex-direction column
.header
_fj()
2023-03-24 17:18:00 +08:00
_wh(100%,42px)
2023-03-21 19:13:34 +08:00
background-color $red
.header-item
2023-03-24 17:18:00 +08:00
width calc(50% - 30px)
2023-03-21 19:13:34 +08:00
padding 0 10px
.header-user
2023-03-24 17:18:00 +08:00
_font(16px, 42px, #fff,,)
2023-03-21 19:13:34 +08:00
.header-r
_fj(flex-end)
/deep/ .header-r uni-button
margin-right 0
.header-button
2023-03-24 17:18:00 +08:00
_wh(auto, 34px)
_font(16px,34px,#333,,)
2023-03-23 18:55:02 +08:00
.nav-wrapper
2023-03-24 17:18:00 +08:00
_wh(calc(100% - 15px),calc(100% - 72px))
2023-03-24 17:30:25 +08:00
padding 15px 15%
2023-03-23 18:55:02 +08:00
background-color #fff
2023-03-24 17:18:00 +08:00
border-radius 12px
margin 15px auto
2023-03-21 19:13:34 +08:00
.nav-wrap
_fj(flex-start)
align-content center
flex-wrap wrap
2023-03-23 18:55:02 +08:00
_wh(100%, 100%)
2023-03-21 19:13:34 +08:00
.nav-item
_fj(center)
align-items center
2023-03-24 17:30:25 +08:00
_wh(30%,68px)
2023-03-24 17:18:00 +08:00
border-radius 12px
2023-03-21 19:13:34 +08:00
border 10px solid #acbec6
2023-03-24 17:18:00 +08:00
margin 15px 5% 15px 0
2023-03-21 19:13:34 +08:00
.nav-item:nth-child(3n)
margin-right 0
.nav-text
2023-03-24 17:30:25 +08:00
_font(18px, 24px, #333,,)
2023-03-24 17:18:00 +08:00
letter-spacing: 2px
2023-03-21 17:56:02 +08:00
</style>