*
lsh
2025-10-27 8c0d2c49eb091aedd053d8f7a1be28b67ce8d0c3
src/main/webapp/views/rgv.html
@@ -91,17 +91,19 @@
                    <tr>
                        <th>RGV</th>
                        <th>当前模式</th>
                        <th>当前状态</th>
<!--                        <th>当前状态</th>-->
                        <th>任务号</th>
                        <th>工作状态</th>
                        <th>有物</th>
                        <th>RGV位置</th>
                        <th>走行定位</th>
<!--                        <th>任务号2</th>-->
<!--                        <th>状态2</th>-->
<!--                        <th>有物2</th>-->
<!--                        <th>走行定位</th>-->
                        <th>故障代码</th>
                        <th>故障描述</th>
                        <th>入库标记</th>
                        <th>出库标记</th>
                        <th>优先放货</th>
<!--                        <th>接驳标记</th>-->
                        <th>连续取货</th>
                    </tr>
                    </thead>
                    <tbody>
@@ -115,12 +117,14 @@
                <thead>
                <tr>
                    <th>RGV</th>
                    <th>工作号</th>
                    <th>工位1工作号</th>
                    <th>工位2工作号</th>
                    <th>状态</th>
                    <th>源站</th>
                    <th>目标站</th>
                    <th>源库位</th>
                    <th>目标库位</th>
                    <th>走行目标站</th>
                    <th>工位1目标站</th>
                    <th>工位2目标站</th>
                    <!--                    <th>源库位</th>-->
<!--                    <th>目标库位</th>-->
<!--                    <th>走行速度(m/min)</th>-->
<!--                    <th>升降速度(m/min)</th>-->
<!--                    <th>叉牙速度(m/min)</th>-->
@@ -147,21 +151,21 @@
            <!-- 设备任务选择 -->
            <div class="task-select">
                <!-- 堆垛机选择 -->
                <div id="rgv-select" class="operator-item" style="width: 55%">
                <div id="rgv-select" class="operator-item" style="width: 30%">
                    <span class="select-title">RGV号</span>
                    <div class="select-container" style="padding: 20px 0;">
                        <label><input type="radio" name="rgvSelect" value="1" checked>&nbsp;1号RGV</label>
                        <label><input type="radio" name="rgvSelect" value="2">&nbsp;2号RGV</label>
                        <label><input type="radio" name="rgvSelect" value="3">&nbsp;3号RGV</label>
<!--                        <label><input type="radio" name="rgvSelect" value="3">&nbsp;3号RGV</label>-->
                    </div>
                </div>
                <!-- 源站/源库位 选择 -->
                <div id="source-select" class="operator-item">
                    <span class="select-title">源站</span>
                <div id="source-select1" class="operator-item">
                    <span class="select-title">工位</span>
                    <div class="select-container">
                        <div class="select-container-item">
                            <span>工位1源站</span>
                            <label><input id="sourceStaNo" type="number" name="points" min="0" /></label>
                            <span>工位</span>
                            <label><input id="workSta" type="number" name="points" min="0" /></label>
                        </div>
<!--                        <div class="select-container-item">-->
<!--                            <span>排</span>-->
@@ -178,11 +182,11 @@
                    </div>
                </div>
                <!-- 目标站/目标库位 选择 -->
                <div id="target-select" class="operator-item">
                <div id="target-select2" class="operator-item">
                    <span class="select-title">目标站</span>
                    <div class="select-container">
                        <div class="select-container-item">
                            <span>工位1目标站</span>
                            <span>目标站</span>
                            <label><input id="staNo" type="number" name="points" min="0" /></label>
                        </div>
<!--                        <div class="select-container-item">-->
@@ -199,6 +203,27 @@
<!--                        </div>-->
                    </div>
                </div>
                <div id="target-select" class="operator-item">
                    <span class="select-title">工作号</span>
                    <div class="select-container">
                        <div class="select-container-item">
                            <span>工作号</span>
                            <label><input id="workNo" type="number" name="points" min="0" /></label>
                        </div>
                        <!--                        <div class="select-container-item">-->
                        <!--                            <span>排</span>-->
                        <!--                            <label><input id="row" type="number" name="points" min="1" style="background-color: #a9eeff" value="1" /></label>-->
                        <!--                        </div>-->
                        <!--                        <div class="select-container-item">-->
                        <!--                            <span>工位2目标站</span>-->
                        <!--                            <label><input id="bay" type="number" name="points" min="0" style="background-color: #a9eeff" value="0" /></label>-->
                        <!--                        </div>-->
                        <!--                        <div class="select-container-item">-->
                        <!--                            <span>层</span>-->
                        <!--                            <label><input id="lev" type="number" name="points" min="1" style="background-color: #a9eeff" value="1" /></label>-->
                        <!--                        </div>-->
                    </div>
                </div>
            </div>
            <!-- 设备任务操作 -->
@@ -206,18 +231,19 @@
                <fieldset>
                    <legend>手动操作</legend>
                    <div class="button-group">
                        <button class="item" onclick="put()">取放货</button>
<!--                        <button class="item" onclick="take()">取货</button>-->
<!--                        <button class="item" onclick="stockMove()">放货</button>-->
<!--                        <button class="item" onclick="put()">取放货</button>-->
                        <button class="item" onclick="take()">取货</button>
                        <button class="item" onclick="stockMove()">放货</button>
<!--                        <button class="item" onclick="siteMove()">站到站</button>-->
                        <!--                <button class="item" onclick="bacOrigin()">回原点</button>-->
                        <!--                <button class="item" onclick="reverseOrigin()">反原点</button>-->
                        <!--                <button class="item" onclick="coorMove()">坐标移行</button>-->
                        <button class="item" onclick="taskComplete()">任务完成</button>
<!--                        <button class="item" onclick="taskComplete()">任务完成</button>-->
<!--                        <button class="item" onclick="lock()">解锁</button>-->
                        <!--                <button class="item" onclick="pause()">暂停</button>-->
                        <!--                <button class="item" onclick="boot()">启动</button>-->
<!--                        <button class="item" onclick="clearCommand()">清除命令</button>-->
                        <button class="item" onclick="handleReset()">复位</button>
                        <button class="item" onclick="clearCommand()">清除命令</button>
<!--                        <button class="item" onclick="handleReset()">复位</button>-->
                    </div>
                </fieldset>
            </div>
@@ -301,7 +327,7 @@
            headers: {'token': localStorage.getItem('token')},
            method: 'POST',
            success: function (res) {
                console.log(res)
                // console.log(res);
                if (res.code === 200){
                    var table = res.data;
                    if (table.length > rgvStateTableBlankRows && table.length !== rgvStateTableFullRows) {
@@ -312,17 +338,21 @@
                        var tr = tableEl.find("tr").eq(i);
                        setVal(tr.children("td").eq(0), table[i-1].rgvNo);
                        setVal(tr.children("td").eq(1), table[i-1].statusType);
                        setVal(tr.children("td").eq(2), table[i-1].status);
                        setVal(tr.children("td").eq(3), table[i-1].workNo1);
                        setVal(tr.children("td").eq(4), table[i-1].status1);
                        setVal(tr.children("td").eq(5), table[i-1].loading1);
                        setVal(tr.children("td").eq(6), table[i-1].rgvPos1);
                        setVal(tr.children("td").eq(7), table[i-1].walkPos);
                        setVal(tr.children("td").eq(2), table[i-1].workNo1);
                        setVal(tr.children("td").eq(3), table[i-1].status1);
                        setVal(tr.children("td").eq(4), table[i-1].loading1);
                        setVal(tr.children("td").eq(5), table[i-1].rgvPos1);
                        // setVal(tr.children("td").eq(6), table[i-1].walkPos);
                        // setVal(tr.children("td").eq(8), table[i-1].workNo2);
                        // setVal(tr.children("td").eq(9), table[i-1].status2);
                        // setVal(tr.children("td").eq(10), table[i-1].loading2);
                        setVal(tr.children("td").eq(8), table[i-1].warnCode);
                        setVal(tr.children("td").eq(9), table[i-1].alarm);
                        setVal(tr.children("td").eq(6), table[i-1].warnCode);
                        setVal(tr.children("td").eq(7), table[i-1].alarm);
                        setVal(tr.children("td").eq(8), table[i-1].pakIn);
                        setVal(tr.children("td").eq(9), table[i-1].pakOut);
                        setVal(tr.children("td").eq(10), table[i-1].pakRgv);
                        setVal(tr.children("td").eq(11), table[i-1].pakAll);
                    }
                } else if (res.code === 403){
                    window.location.href = baseUrl+"/login";
@@ -350,12 +380,10 @@
                    for (var i=1;i<=table.length;i++){
                        var tr = tableEl.find("tr").eq(i);
                        setVal(tr.children("td").eq(0), table[i-1].rgvNo);
                        setVal(tr.children("td").eq(1), table[i-1].workNo);
                        setVal(tr.children("td").eq(2), table[i-1].status);
                        setVal(tr.children("td").eq(3), table[i-1].sourceStaNo);
                        setVal(tr.children("td").eq(1), table[i-1].workNo1);
                        setVal(tr.children("td").eq(2), table[i-1].workNo2);
                        setVal(tr.children("td").eq(3), table[i-1].status);
                        setVal(tr.children("td").eq(4), table[i-1].staNo);
                        setVal(tr.children("td").eq(5), table[i-1].sourceLocNo);
                        setVal(tr.children("td").eq(6), table[i-1].locNo);
                        // setVal(tr.children("td").eq(7), table[i-1].xspeed);
                        // setVal(tr.children("td").eq(8), table[i-1].yspeed);
                        // setVal(tr.children("td").eq(9), table[i-1].zspeed);
@@ -381,6 +409,8 @@
        var sourceRow = $('#sourceRow').val();
        var sourceBay = $('#sourceBay').val();
        var sourceLev = $('#sourceLev').val();
        var workSta = $('#workSta').val();
        var workNo = $('#workNo').val();
        var staNo = $('#staNo').val();
        var row = $('#row').val();
        var bay = $('#bay').val();
@@ -392,6 +422,8 @@
            sourceBay: sourceBay,
            sourceLev: sourceLev,
            staNo: staNo,
            workSta: workSta,
            workNo: workNo,
            row: row,
            bay: bay,
            lev: lev
@@ -405,14 +437,14 @@
        });
    }
    // 出库
    // 取货
    function take() {
        http.post(baseUrl+"/rgv/operator/take", getReqParam(), function (res) {
            layer.msg(res.msg);
        });
    }
    // 库位转移
    // 放货
    function stockMove() {
        http.post(baseUrl+"/rgv/operator/stockMove", getReqParam(), function (res) {
            layer.msg(res.msg);
@@ -454,6 +486,12 @@
        });
    }
    function lock() {
        http.post(baseUrl+"/rgv/lock", getReqParam(), function (res) {
            layer.msg(res.msg);
        });
    }
    // 暂停
    function pause() {
        http.post(baseUrl+"/rgv/operator/pause", getReqParam(), function (res) {
@@ -489,7 +527,7 @@
            headers: {'token': localStorage.getItem('token')},
            method: 'POST',
            success: function (res) {
                console.log(res)
                // console.log(res)
                if (res.code === 200) {
                    rgvOutput(res.data);
                } else if (res.code === 403) {