chengsc
2 天以前 f124565982920c54c7c92d27d0a0c6bf61689e83
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
<!DOCTYPE html>
<html>
 
<head>
    <meta name="viewport" content="user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta charset="UTF-8" />
    <!-- <meta name="viewport" content="width=device-width, initial-scale=0.665, minimum-scale=0.5, maximum-scale=1, user-scalable=no" /> -->
    <!-- <meta name="viewport" content="width=device-width, initial-scale=0.665" /> -->
    <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>
    <link rel="stylesheet" href="/css/my.css" />
    <style type="text/css">
        td {
            word-break: break-all;
            word-wrap: break-word;
        }
 
        .layui-form-switch {
            margin-top: 0;
        }
 
        /* 标签样式 */
        .tableyang-this a {
            margin: 10px 10px 0px 0px;
            line-height: 30px;
            width: 100px;
            color: #999;
            text-align: center;
            float: left;
            background: #f7f7f7;
            user-select: none;
            position: relative;
            z-index: 1;
            cursor: pointer;
            border-radius: 5px;
            border: 1px solid #ccc;
            transition: all 0.3s ease;
        }
 
        .tableyang-this a.hover {
            color: #5298ff;
            background-color: #eff2ff;
            border: 1px solid #5298ff;
        }
 
        /* 内容居中 */
        .tableyang-tab {
            display: flex;
            /* justify-content: center; */
            /* align-items: center; */
            flex-direction: column;
            height: 90vh;
        }
 
        /* 必用样式 */
        .tableyang-2,
        .tableyang-3 {
            display: none;
        }
 
        ul {
            list-style-type: none;
            padding: 0;
        }
 
        li {
            cursor: pointer;
            background-color: lightgray;
            padding: 10px;
            margin-bottom: 5px;
        }
    </style>
    <link rel="stylesheet" href="/css/adapter.css" />
    <script src="../../js/jquery.js"></script>
    <script src="../../js/jquery-3.5.1.min.js"></script>
</head>
 
<body>
    <div id="" class="main-content">
 
        <div id="" class="layout-title">
            <table border="" cellspacing="" cellpadding="">
                <tr>
                    <td class="img-back"><a href="../index.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 href="../index.html" lang>主页</a></li>
                    <!-- <li><a href="productEnterConfirm.html">入库信息确认</a></li> -->
                    <li><a href="../login.html" lang>重新登录</a></li>
                </ul>
            </div>
 
            <!-- 无码 -->
            <div id="content2">
                <div id="zongDiv" class="layout-bill-info" style="height: 150px;">
                    <form class="layui-form" id="form2" action="">
                        <div id="" class="layui-form-item layout-input">
                            <label class="layui-form-label">托盘码</label>
                            <div class="layui-input-block">
                                <input id="pln" type="text" placeholder=""
                                    autocomplete="off" class="layui-input" >
                            </div>
                        </div>
                        <div id="" class="layui-form-item layout-input">
                            <label class="layui-form-label">储位码</label>
                            <div class="layui-input-block">
                                <input id="locateNo" type="text" placeholder=""
                                    autocomplete="off" class="layui-input" >
                            </div>
                        </div>             
 
                        <table class="layout-tbl-submit" border="" cellspacing="" cellpadding="">
                            <tr>
                                <td style="width: 30%;"></td>
                                <td style="width: 40%;">
                                    <button class="layout-btn layout-btn-blue" lang type="button" lay-submit
                                        lay-filter="formCall1">指定</button>
                                </td>
                                <td style="width: 30%;"></td>
 
                            </tr>
                        </table>
 
                    </form>
                </div>
 
                <br>
 
 
            </div>
 
        </div>
    </div>
    <script src="/js/jquery-3.5.1.min.js"></script>
    <script src="/layui/layui.js"></script>
    <script src="/js/public.js"></script>
    <script src="/js/language.js"></script>
    <script src="/js/jquery.cookie.js"></script>
    <script>
        layui.use(['form', 'jquery'], function () {
            var form = layui.form
 
            /*——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————*/
            $("#TaskNo").val(""); 
            $("#TaskId").val("");
            initLanguage()
            setLanguage()
 
            form.on('submit(formCall1)', function (data) {
                if ($("#pln").val() == "") {
                    layer.msg('托盘码不能为空', {
                        icon: 2,
                        time: 2000 //2秒关闭(如果不配置,默认是3秒)
                    });
                    return;
                }
                if ($("#locateNo").val() == "") {
                    layer.msg('储位不能为空', {
                        icon: 2,
                        time: 2000 //2秒关闭(如果不配置,默认是3秒)
                    });
                    return;
                }
                var param = {
                    PalletNo: $("#pln").val(),
                    LocatNo:$("#locateNo").val()
                }
                //呼叫小车
                sendData(IP + "/PdaAsn/SaveAppointLocate", param, 'post', function (res) {
                    if (res.Success == "0") { //成功 
                        layer.msg(res.Message, {
                            icon: 1,
                            time: 1000 //2秒关闭(如果不配置,默认是3秒)
                        }, function () {
                            $("#pln").val(""),
                            $("#locateNo").val("")
                        });
                    } else { //不成功
                        layer.msg(res.Message, {
                            icon: 2,
                            time: 2000 //2秒关闭(如果不配置,默认是3秒)
                        }, function () {
                            $("#pln").val(""),
                            $("#locateNo").val("")
                        });
                    }
                });
                 
 
                return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。
            });
            
            /*——————————————————————————————————————————————————————————*/
 
 
            $("#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>