| | |
| | | <!-- 日志监控板 --> |
| | | <div class="log-board"> |
| | | <div class="command-log"> |
| | | <div class="ste-command-item" style="margin-top: 30px"> |
| | | <div data-steNo="1" class="ste-command-item" style="margin-top: 30px"> |
| | | <label>1#</label> |
| | | <div class="dropdown-menu"> |
| | | <button id="steBtn-1" class="demoBtn" onclick="changePosition(this.id)">修改位置</button> |
| | | <ul class="dropdown-menu-nav dark" > |
| | | <div class="dropdown-anchor"></div> |
| | | <div class="form-item"><span>当前穿梭机:</span><input type="text"></div> |
| | | <div class="form-item"><span>排:</span><input type="text"></div> |
| | | <div class="form-item"><span>列:</span><input type="text"></div> |
| | | <div class="form-item"><span>层:</span><input type="text"></div> |
| | | </ul> |
| | | </div> |
| | | <div class="dropdown-menu"> |
| | | <button class="demoBtn" onclick="">所属堆垛机</button> |
| | | <ul class="dropdown-menu-nav dark"> |
| | | <div class="dropdown-anchor"></div> |
| | | <div class="form-item"><span>堆垛机号:</span><input type="text"></div> |
| | | </ul> |
| | | </div> |
| | | <button class="demoBtn pos-btn">修改位置</button> |
| | | <button class="demoBtn crn-btn">关联堆垛机</button> |
| | | </div> |
| | | <div class="ste-command-item" style="margin-top: 30px"> |
| | | <div data-steNo="2" class="ste-command-item" style="margin-top: 30px"> |
| | | <label>2#</label> |
| | | <div class="dropdown-menu"> |
| | | <button id="steBtn-2" class="demoBtn" onclick="changePosition(this.id)">修改位置</button> |
| | | <ul class="dropdown-menu-nav dark" > |
| | | <div class="dropdown-anchor"></div> |
| | | <div class="form-item"><span>当前穿梭机:</span><input type="text"></div> |
| | | <div class="form-item"><span>排:</span><input type="text"></div> |
| | | <div class="form-item"><span>列:</span><input type="text"></div> |
| | | <div class="form-item"><span>层:</span><input type="text"></div> |
| | | </ul> |
| | | </div> |
| | | <div class="dropdown-menu"> |
| | | <button class="demoBtn" onclick="">所属堆垛机</button> |
| | | <ul class="dropdown-menu-nav dark"> |
| | | <div class="dropdown-anchor"></div> |
| | | <div class="form-item"><span>堆垛机号:</span><input type="text"></div> |
| | | </ul> |
| | | </div> |
| | | <button class="demoBtn pos-btn">修改位置</button> |
| | | <button class="demoBtn crn-btn">关联堆垛机</button> |
| | | </div> |
| | | <div class="ste-command-item" style="margin-top: 30px"> |
| | | <div data-steNo="3" class="ste-command-item" style="margin-top: 30px"> |
| | | <label>3#</label> |
| | | <div class="dropdown-menu"> |
| | | <button id="steBtn-3" class="demoBtn" onclick="changePosition(this.id)">修改位置</button> |
| | | <ul class="dropdown-menu-nav dark" > |
| | | <div class="dropdown-anchor"></div> |
| | | <div class="form-item"><span>当前穿梭机:</span><input type="text"></div> |
| | | <div class="form-item"><span>排:</span><input type="text"></div> |
| | | <div class="form-item"><span>列:</span><input type="text"></div> |
| | | <div class="form-item"><span>层:</span><input type="text"></div> |
| | | </ul> |
| | | </div> |
| | | <div class="dropdown-menu"> |
| | | <button class="demoBtn" onclick="">所属堆垛机</button> |
| | | <ul class="dropdown-menu-nav dark"> |
| | | <div class="dropdown-anchor"></div> |
| | | <div class="form-item"><span>堆垛机号:</span><input type="text"></div> |
| | | </ul> |
| | | </div> |
| | | <button class="demoBtn pos-btn">修改位置</button> |
| | | <button class="demoBtn crn-btn">关联堆垛机</button> |
| | | </div> |
| | | </div> |
| | | <!-- 堆垛机状态位信息 --> |
| | |
| | | <fieldset> |
| | | <legend>手动操作</legend> |
| | | <div class="button-group"> |
| | | <button class="item" onclick="leftTake()">左出库</button> |
| | | <button class="item" onclick="rightTake()">右出库</button> |
| | | <button class="item" onclick="leftPut()">左入库</button> |
| | | <button class="item" onclick="rightPut()">右入库</button> |
| | | <button class="item" onclick="leftStockMove()">左移库</button> |
| | | <button class="item" onclick="rightStockMove()">右移库</button> |
| | | <button class="item" onclick="oOrigin()">原点</button> |
| | | <button class="item" onclick="farPoint()">远点</button> |
| | | <button class="item" onclick="aPoint()">A 点</button> |
| | | <button class="item" onclick="bPoint()">B 点</button> |
| | | <button class="item" onclick="moveLift()">左搬移</button> |
| | | <button class="item" onclick="moveRight()">右搬移</button> |
| | | <button class="item" onclick="charging()">充电</button> |
| | | <button class="item" onclick="pause()">左盘点</button> |
| | | <button class="item" onclick="boot()">右盘点</button> |
| | | <button class="item" onclick="boot()">任务完成</button> |
| | | <button class="item" onclick="clearCommand()">清除命令</button> |
| | | <button class="item" onclick="handleReset()">复位</button> |
| | | <button class="item" onclick="steOperator(1)">左出库</button> |
| | | <button class="item" onclick="steOperator(2)">右出库</button> |
| | | <button class="item" onclick="steOperator(3)">左入库</button> |
| | | <button class="item" onclick="steOperator(4)">右入库</button> |
| | | <button class="item" onclick="steOperator(5)">左移库</button> |
| | | <button class="item" onclick="steOperator(6)">右移库</button> |
| | | <button class="item" onclick="steOperator(7)">原点</button> |
| | | <button class="item" onclick="steOperator(8)">远点</button> |
| | | <button class="item" onclick="steOperator(9)">A 点</button> |
| | | <button class="item" onclick="steOperator(10)">B 点</button> |
| | | <button class="item" onclick="steOperator(11)">左搬移</button> |
| | | <button class="item" onclick="steOperator(12)">右搬移</button> |
| | | <button class="item" onclick="steOperator(13)">充电</button> |
| | | <button class="item" onclick="steOperator(14)">左盘点</button> |
| | | <button class="item" onclick="steOperator(15)">右盘点</button> |
| | | <button class="item" onclick="steOperator(16)">任务完成</button> |
| | | </div> |
| | | </fieldset> |
| | | </div> |
| | |
| | | <textarea id="ste-output"></textarea> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div id="ste-detl" style="display: none"> |
| | | <form> |
| | | <div class="form-item"> |
| | | <label class="form-label">站号:</label> |
| | | <div class="form-input"> |
| | | <input id="siteId" name="siteId" class="layui-input" lay-verify="required|number" autocomplete="off" disabled="disabled"> |
| | | </div> |
| | | </div> |
| | | <div class="form-item"> |
| | | <label class="form-label">工作号:</label> |
| | | <div class="form-input"> |
| | | <input id="workNo" name="workNo" type="number" class="layui-input" lay-verify="number" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="form-item"> |
| | | <label class="form-label">目标站:</label> |
| | | <div class="form-input"> |
| | | <input id="staNo" name="staNo" type="number" class="layui-input" lay-verify="number" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="form-item"> |
| | | <label class="form-label">入库标记:</label> |
| | | <div class="form-input"> |
| | | <input id="pakMk" name="pakMk" type="text" class="layui-input" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="form-item form-button-container"> |
| | | <button class="form-button" id="save">保存</button> |
| | | <button class="form-button" id="cancel" style="background-color: #D0D0D0">取消</button> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </body> |
| | | </html> |
| | |
| | | } |
| | | } |
| | | |
| | | // 修改穿梭车位置 |
| | | function changePosition(id) { |
| | | $(document).on('click ','.pos-btn', function () { |
| | | let steNo = Number($(this).parent().attr("data-steNo")); |
| | | layerDetl = layer.open({ |
| | | type: 1, |
| | | title: false, |
| | | shadeClose: true, |
| | | offset: [$(this).offset().top + 30 + 'px', $(this).offset().left + 'px'], |
| | | anim: 5, |
| | | shade: [0], |
| | | area: ['340px', '255px'], |
| | | closeBtn: 0, |
| | | content: $("#ste-detl"), |
| | | success: function(layero, index){ |
| | | // http.get(baseUrl+ "/site/detl/"+siteId, null, function (res) { |
| | | // $('#siteId').val(siteId); |
| | | // $('#workNo').val(res.data.workNo); |
| | | // $('#staNo').val(res.data.staNo); |
| | | // $('#pakMk').val(res.data.pakMk); |
| | | // }) |
| | | }, |
| | | end: function () { |
| | | $('#siteId').val(""); |
| | | $('#workNo').val(""); |
| | | $('#staNo').val(""); |
| | | $('#pakMk').val(""); |
| | | } |
| | | }) |
| | | }) |
| | | |
| | | } |
| | | $(document).on('click ','.crn-btn', function () { |
| | | let steNo = Number($(this).parent().attr("data-steNo")); |
| | | console.log(steNo) |
| | | }) |
| | | |
| | | // 穿梭车信息表获取 ---- 表一 |
| | | function getSteStateInfo() { |
| | |
| | | }) |
| | | } |
| | | |
| | | // 任务指令下发 |
| | | function steOperator(steTaskMode) { |
| | | http.post(baseUrl+"/ste/operator/ste", { |
| | | steNo: $('input[name="steSelect"]:checked').val(), |
| | | steTaskMode: steTaskMode |
| | | }, function (res) { |
| | | layer.msg(res.msg, {icon: 1}); |
| | | }); |
| | | } |
| | | |
| | | |
| | | // ------------------------------------------------------------------------------------------------ |
| | | |
| | | // 穿梭车信息表获取 ----- 表一 |
| | |
| | | steOutputDom.value += content; |
| | | steOutputDom.scrollTop = steOutputDom.scrollHeight; |
| | | } |
| | | |
| | | |
| | | |
| | | </script> |