receipt.vue
1.38 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
<template>
<uni-list>
<uni-list-item thumb="/../static/img/receipt/truck.png" v-for="(item,i) in titList" :key="i" :title="item"
clickable @tap="onClick(item)"></uni-list-item>
</uni-list>
</template>K
<script>
export default {
data() {
return {
titList: ['批量入库', '快速入库', '空托入库', '呼叫料盒', '补充入库']
}
},
methods: {
onClick(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'
})
}
},
fast() {
uni.navigateTo({
url: '/pages/receipt/fast'
})
},
empty() {
uni.navigateTo({
url: '/pages/receipt/empty'
})
},
call() {
uni.navigateTo({
url: '/pages/receipt/call'
})
},
add() {
uni.navigateTo({
url: '/pages/receipt/add'
})
}
},
}
</script>
<style lang="scss" scoped>
/deep/ .uni-list-item__content-title {
font-size: $uni-font-size-lg;
}
/deep/ .uni-list-item__container {
padding: 24rpx 24rpx;
padding-left: 24rpx;
}
</style>