application.vue
2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<template>
<view>
<uni-group title="" top="15">
<view class="tit">仓库管理</view>
<view class="content">
<uni-grid :column="4" :showBorder="false" :square="true">
<navigator :url="item.path" hover-class="none" v-for="(item,index) in menuList_1" :key="index">
<uni-grid-item>
<image :src="item.src" mode="aspectFit"></image>
<text class="text">{{item.tit}}</text>
</uni-grid-item>
</navigator>
</uni-grid>
</view>
</uni-group>
<uni-group title="" top="15">
<view class="tit">基础数据</view>
<view class="content">
<uni-grid :column="4" :showBorder="false" :square="true">
<navigator :url="item.path" hover-class="none" v-for="(item,index) in menuList_2" :key="index">
<uni-grid-item>
<image :src="item.src" mode="aspectFit"></image>
<text class="text">{{item.tit}}</text>
</uni-grid-item>
</navigator>
</uni-grid>
</view>
</uni-group>
</view>
</template>
<script>
export default {
data() {
return {
menuList_1: [{
src: '/static/img/index/inventory.png',
tit: '总库存',
path: '/pages/inventory/inventory'
},
{
src: '/static/img/index/receipt.png',
tit: '入库管理',
path: '/pages/receipt/receipt'
},
{
src: '/static/img/index/shipment.png',
tit: '出库管理',
path: '/pages/shipment/shipment'
},
{
src: '/static/img/index/task.png',
tit: '任务',
path: '/pages/task/task'
},
{
src: '/static/img/index/check.png',
tit: '盘点单',
path: '/pages/cycle/cycle'
},
{
src: '/static/img/index/config.png',
tit: '预警设置',
path: '/pages/material/warn-config/warn-config'
},
],
menuList_2: [{
src: '/static/img/index/material.png',
tit: '物料',
path: '/pages/material/material'
}],
}
},
}
</script>
<style lang="scss" scoped>
.tit {
font-size: $uni-font-size-lg;
font-weight: bold;
}
/deep/ .uni-group__content {
padding: $uni-spacing-col-base $uni-spacing-row-base 0 !important;
.content {
margin-top: 6rpx;
.uni-grid-wrap {
.uni-grid-item__box {
display: flex;
justify-content: center;
align-items: center;
uni-image {
width: 60rpx;
height: 60rpx;
margin-bottom: $uni-spacing-col-sm;
}
}
}
}
}
</style>