bklLiudl
2025-04-07 4e8f58cb41c7b6d570fd1979d80f74ab8a4d00c2
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!DOCTYPE html>
<html>
 
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="user-scalable=0,width=device-width,initial-scale=1.0" />
    <!-- <meta name="viewport" content="width=device-width, initial-scale=0.665, minimum-scale=0.5, maximum-scale=2.0, user-scalable=no" /> -->
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Boxline PDA</title>
 
    <link rel="stylesheet" href="../layui/css/layui.css" />
    <link rel="stylesheet" href="../css/style.css" />
    <script src="../js/adaptive.js"></script>
    <!--更改桌面icon 仅Android支持-->
    <link rel="shortcut icon" href="../assets/icon.png">
    <!-- <meta name="mobile-web-app-capable" content="yes"> -->
 
    <link rel="stylesheet" href="../css/my.css" />
    <style type="text/css">
        .layout-bill-info {
            height: 255px;
        }
 
        .layout-tbl-submit {
            margin-top: 10px;
        }
 
        .menu {
            height: 40px;
        }
 
        .sub-title-bg {
            background-image: url(../assets/subtitle_bg.png);
            /* margin:20px 10px 5px 10px; */
            /* background-color: #009688; */
            height: 26px;
            line-height: 26px;
            margin: auto;
            margin-top: 20px;
            width: 96%;
        }
 
        .sub-title-bg span {
            font-size: 16px;
            color: #FFFFFF;
            margin-left: 4px;
            /* background-color: #0000FF; */
            margin-top: 0px;
        }
 
        .layout-btn-container {
            width: 96%;
            /* margin:5px 10px 5px 10px; */
            margin: auto;
        }
 
        .layout-btn-container table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0px 10px;
        }
 
        .layout-btn-container table td {
            width: 50%;
        }
 
        .btn {
            width: 95%;
            height: 50px;
            font-size: 0.8rem;
        }
 
        .btn:active {
            opacity: 0.5;
        }
 
        .mybtn-primary {
            color: #fff;
            background-color: #007bff;
            border-color: #007bff;
            border: 1px solid transparent;
            font-size: 16px;
            border-radius: 5px;
            line-height: 16px;
            font-weight: normal;
            height: 50px;
            width: 98%;
        }
 
        .mybtn-primary:active {
            opacity: 0.8;
        }
 
        .show {
            display: block;
        }
 
        .noshow {
            display: none;
        }
    </style>
    <link rel="stylesheet" href="../css/adapter.css" />
</head>
 
<body>
    <div id="" class="main-content">
        <div id="" class="layout-title">
            <table border="" cellspacing="" cellpadding="">
                <tr>
                    <td class="img-back"><a href="/View/login.html"><img src="../assets/back.jpg"></a></td>
                    <td class="title-text" lang>主页</td>
                    <td class="title-menu-icon"><img id="menuImg" src="../assets/menu.jpg"></td>
                </tr>
            </table>
        </div>
        <div id="" class="layout-sub-content">
            <div id="menuList" class="menu">
                <ul class="" style="text-align: center;">
                    <li><a lang href="/View/login.html">重新登录</a></li>
                </ul>
            </div>
            <div class="">
                <section>
                    <div class="sub-title-bg">
                        <span lang>入库作业区</span>
                    </div>
                    <div class="layout-btn-container">
 
                        <div style="display: flex; flex-direction: row; flex-wrap: wrap;" id="ruKu">
                            <!-- <a href="/View/AsnSetting/materialEnter.html"><button type="button" class="mybtn-primary" lang>采购入库</button></a>
                                    
                                <a href="/View/AsnSetting/returnEnter.html"><button type="button" class="mybtn-primary" lang>退货入库</button></a>
                                    -->
                        </div>
                    </div>
                </section>
                <section>
                    <div class="sub-title-bg">
                        <span lang>出库作业区</span>
                    </div>
 
                    <div class="layout-btn-container">
                        <div style="display: flex; flex-direction: row; flex-wrap: wrap;" id="chuKu">
 
                        </div>
                    </div>
                </section>
                <section>
                    <div class="sub-title-bg">
                        <span lang>库内作业区</span>
                    </div>
                    <div class="layout-btn-container">
                        <div style="display: flex; flex-direction: row; flex-wrap: wrap;" id="kuNei">
 
                        </div>
                    </div>
                </section>
                <!-- <section>
                        <div class="sub-title-bg" >
                            <span lang>单据操作区</span>
                        </div>
                        <div class="layout-btn-container">
                            <table border="0" >
                                <tr align="center">
                                    <td >
                                        <a href="/View/NoticeSetting/CreateImport.html"><button type="button" class="mybtn-primary" lang>创建入库单</button></a>
                                    </td>
                                    <td>
                                        <a href="/View/NoticeSetting/CreateExport.html"><button type="button" class="mybtn-primary" lang>创建出库单</button></a>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </section> -->
            </div>
        </div>
 
    </div>
 
    <script src="../js/jquery-3.5.1.min.js"></script>
    <script src="../js/jquery.cookie.js"></script>
    <script src="../layui/layui.js"></script>
    <script src="../js/public.js"></script>
    <script src="../js/language.js"></script>
    <script>
        layui.use([], function () {
            // var carousel = layui.carousel;
 
            initLanguage()
            setLanguage()
 
            sendData(IP + "/Basis/GetRoleRightList", {}, 'get', function (res) {
                if (res.code == 0) { //成功
                    var list = res.data.filter(item => item.level == "0");
 
                    if (list) {
                        for (var i = 0; i < list.length; i++) {
                            if (list[i].MenuNo != "9000") { //判断是否是pda的权限 是:跳过
                                continue;
                            }
                            list[i].MenuName
                            list[i].MenuNo
                            //查询有无子菜单
                            var list2 = res.data.filter(item => item.ParentNo == list[i].MenuNo);
                            console.log(list2);
                            list2.forEach(element => {
                                var html =
                                    `<a href="` + element.Url + `" style="width: 50%; margin-top: 10px;">
                                            <button type="button" class="mybtn-primary"  lang>`+ element.MenuName + `</button>
                                        </a>`;
                                if (element.Url.includes("AsnSetting")) {
                                    $("#ruKu").append(html);
                                }
                                if (element.Url.includes("SoSetting")) {
                                    $("#chuKu").append(html);
                                }
                                if (element.Url.includes("HouseDataSetting")) {
                                    $("#kuNei").append(html);
                                }
                            });
                        }
                    }
                } else { //不成功
                    layer.msg('获取当前登录人权限信息失败', {
                        icon: 2,
                        time: 2000 //2秒关闭(如果不配置,默认是3秒)
                    }, function () {
                        //回调
                    });
                }
            });
 
 
 
 
 
            $("#menuImg").click(function (e) {
                //console.log("menuImg")
                e.stopPropagation()
 
                if ($("#menuList").is(":hidden")) {
                    $("#menuList").show()
                } else {
                    $("#menuList").hide()
                }
            })
            $('body').click(function () {
                // //console.log("body")
                $("#menuList").hide()
            })
        })
    </script>
</body>
 
</html>