receipt.vue
1.68 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
<template>
<view class="container">
<view class="u-f u-f-aic" v-for="(item,index) in titList" :key="index" @tap="goPage(item)">
<view class="left">
<view class="ico">
<text class="iconfont icon-ruku"></text>
</view>
</view>
<view class="common u-f1">
<view class="u-f u-f-jcsb">
<view class="label">
{{item}}
</view>
<view>
<uni-icons type="arrowright" size="18" color="gray"></uni-icons>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
titList: ['批量入库', '快速入库', '空托入库', '呼叫料盒', '补充入库']
}
},
methods: {
goPage(value) {
if (value == '批量入库') {
uni.navigateTo({
url: './batch/batch'
})
} else if (value == '快速入库') {
uni.navigateTo({
url: '/pages/receipt/fast'
})
} else if (value == '空托入库') {
uni.navigateTo({
url: '/pages/receipt/empty'
})
} else if (value == '呼叫料盒') {
uni.navigateTo({
url: '/pages/receipt/call'
})
} else {
uni.navigateTo({
url: '/pages/receipt/add'
})
}
},
},
}
</script>
<style lang="scss" scoped>
.container {
padding-left: $uni-spacing-row-base;
background-color: $uni-bg-color;
.left {
width: 70rpx;
text-align: center;
.ico {
width: 50rpx;
height: 50rpx;
line-height: 50rpx;
background-color: $uni-color-primary;
border-radius: 50%;
}
}
.common {
height: 90rpx;
line-height: 90rpx;
padding-right: 10px;
border-bottom: 2rpx solid $uni-border-color;
.label {
font-size: $uni-font-size-lg;
}
}
}
</style>