#
Junjie
2025-02-11 ed265ddfb8f08f69af064a9adf65fcbf06289ffe
src/main/webapp/views/forklift.html
@@ -4,7 +4,7 @@
    <meta charset="UTF-8">
    <title>提升机监控管理</title>
    <link rel="stylesheet" type="text/css" href="../static/css/normalize.css">
    <link rel="stylesheet" type="text/css" href="../static/css/common.css">
    <link rel="stylesheet" type="text/css" href="../static/css/common_wcs.css">
    <link rel="stylesheet" type="text/css" href="../static/layui/css/layui.css">
    <link rel="stylesheet" href="../static/css/lift.css">
    <script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script>
@@ -50,12 +50,8 @@
                <tr>
                    <th>提升机</th>
                    <th>工作号</th>
                    <th>任务地址</th>
                    <th>目的地址</th>
                    <th>已完成的任务号</th>
                    <th>层</th>
                    <th>站点信息</th>
                    <th>作业标记</th>
                    <th>穿梭车号</th>
                </tr>
                </thead>
                <tbody>
@@ -96,6 +92,7 @@
                        </div>
                        <button class="item" onclick="liftOperator(1)">小车换层</button>
                        <button class="item" onclick="liftOperator(2)">移动托盘</button>
                        <button class="item" onclick="liftOperator(3)">任务确认</button>
                        <button class="item" onclick="liftOperator(0)">复位</button>
                    </div>
                </fieldset>
@@ -275,14 +272,17 @@
                    }
                    for (var i=1;i<=table.length;i++){
                        var tr = tableEl.find("tr").eq(i);
                        let staDiv = "";
                        table[i-1].forkLiftStaProtocols.forEach((item) => {
                            let hasTray = item.hasTray ? "Y" : "N";
                            let hasCar = item.hasCar ? "Y" : "N";
                            staDiv += "<div>" + item.lev + "层,托盘:" + hasTray + ",小车:" + hasCar + "</div>"
                        })
                        setVal(tr.children("td").eq(0), table[i-1].liftNo);
                        setVal(tr.children("td").eq(1), table[i-1].workNo);
                        setVal(tr.children("td").eq(2), table[i-1].taskAddress);
                        setVal(tr.children("td").eq(3), table[i-1].distAddress);
                        setVal(tr.children("td").eq(4), table[i-1].completeTaskNo);
                        setVal(tr.children("td").eq(5), table[i-1].lev);
                        setVal(tr.children("td").eq(6), table[i-1].pakMk);
                        setVal(tr.children("td").eq(7), table[i-1].shuttleNo);
                        setVal(tr.children("td").eq(2), staDiv);
                        setVal(tr.children("td").eq(3), table[i-1].pakMk);
                    }
                } else if (res.code === 403){
                    window.location.href = baseUrl+"/login";