333
schangxiang@126.com
2025-09-19 18966e02fb573c7e2bb0c6426ed792b38b910940
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<template>
    <view>
        <!-- <u-navbar back-text="" title="首页" :custom-back="back"></u-navbar> -->
        <u-card margin="0rpx" title="常用操作">
            <view class="" slot="body">
                <u-grid :col="3">
                <!--     <u-grid-item @click="deliverying">
                        <view class="iconBg green1">
                            <text class="txt color txt1">收</text>
                        </view>
                        <view class="grid-text">收货</view>
                    </u-grid-item>
                    
                    
                    <u-grid-item @click="groupingTp">
                        <view class="iconBg green1">
                            <text class="txt color txt1">上</text>
                        </view>
                        <view class="grid-text">码盘上架</view>
                    </u-grid-item>
                    
                    <u-grid-item @click="calling">
                        <view class="iconBg green1">
                            <text class="txt color txt1">呼</text>
                        </view>
                        <view class="grid-text">呼叫托盘</view>
                    </u-grid-item> -->
                    
                    
                <u-grid-item @click="sorting" v-if="show_sorting">
                        <view class="iconBg green1">
                            <text class="txt color txt1">分</text>
                        </view>
                        <view class="grid-text">分拣</view>
                    </u-grid-item> 
                    
                
                    
                </u-grid>
 
            </view>
        </u-card>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                count: '9',
                show_sorting:false
            };
        },
        onShow() {
            this.showMenu();
        },
    
        methods: {
            showMenu(){//根据权限分配是否显示菜单 【Editby shaocx,2024-03-18】
                //debugger;
                this.show_sorting=false;
                let _menu_auth = uni.getStorageSync('menu_auth') 
                if(_menu_auth!=undefined && _menu_auth.length>0){
                    var mpsj=_menu_auth.filter(item=>{
                        return item.m==1643 //分拣区拣选
                    });
                    if(!(mpsj==undefined || mpsj.length==0)){
                        this.show_sorting=true;
                    }
                }
            },
            // 呼叫托盘
            calling() {
                uni.navigateTo({
                    url: '../callTp/callTp'
                });
            },
            // 分拣
            sorting() {
                uni.navigateTo({
                    url: '../Sorting/Sorting'
                });
            },
            // 收货
            deliverying() {
                uni.navigateTo({
                    url: '../deliverying/deliverying'
                });
            },
            // 组盘
            groupingTp() {
                uni.navigateTo({
                    url: '../groupingTp/groupingTp'
                });
            },
        
        }
    }
</script>
<style lang="scss">
    .iconBg {
        margin-bottom: 5px;
        font-size: 1.2rem;
        color: white;
        display: inline-block;
        border-radius: 25px;
        line-height: 20px;
        width: 40px;
        height: 40px;
        padding: 5px;
        position: relative;
        cursor: pointer;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
        background-image: -webkit-gradient(linear, left top, left bottom, color-stop(5%, #f5a3a0), color-stop(5%, #ff0066), color-stop(100%, #ff6600));
        transition: background-color 0.2s ease-out;
        border-radius: 8px;
 
        .txt {
            position: absolute;
            top: 10px;
            left: 10px;
            width: 30px;
            height: 30px;
            z-index: 100;
            display: block;
 
            &.color {
                text-transform: uppercase;
                background-image: linear-gradient(to right, orangered, orange, gold, lightgreen, cyan, dodgerblue, mediumpurple, hotpink, orangered);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                color: white;
                background-size: 30px;
            }
 
            &.txt1 {
                background-size: 40px;
                animation: sliding1 30s linear infinite;
            }
        }
 
        &.green1 {
            background-image: -webkit-gradient(linear,
                    left top,
                    left bottom,
                    color-stop(5%, #68ea68),
                    color-stop(5%, #127e12),
                    color-stop(100%, #1aad19));
            border: 1px solid #0f680f;
            color: white !important;
 
            &::after {
                position: absolute;
                top: 5px;
                left: 5px;
                width: 20px;
                height: 20px;
                z-index: 0;
                border-radius: 4em;
                background-color: #127812;
                content: " ";
                display: block;
                padding: 5px;
            }
        }
 
    }
 
    /deep/.u-card__body {
        padding: 0 !important;
    }
 
    @keyframes sliding {
        to {
            background-position: -100px;
        }
    }
 
    @keyframes sliding1 {
        to {
            background-position: -150px;
        }
    }
</style>