| | |
| | | <span> </span> |
| | | <input id="crn1" disabled="disabled"> |
| | | </div> |
| | | <div class="crn-command-item"> |
| | | <label>2#</label> |
| | | <span> </span> |
| | | <input id="crn2" disabled="disabled"> |
| | | </div> |
| | | <!-- <div class="crn-command-item">--> |
| | | <!-- <label>2#</label>--> |
| | | <!-- <span> </span>--> |
| | | <!-- <input id="crn2" disabled="disabled">--> |
| | | <!-- </div>--> |
| | | </div> |
| | | <!-- 堆垛机状态位信息 --> |
| | | <div class="crn-state"> |
| | |
| | | <span class="select-title">堆垛机号</span> |
| | | <div class="select-container"> |
| | | <label><input type="radio" name="crnSelect" value="1" checked> 1号堆垛机</label> |
| | | <label><input type="radio" name="crnSelect" value="2"> 2号堆垛机</label> |
| | | <!-- <label><input type="radio" name="crnSelect" value="2"> 2号堆垛机</label>--> |
| | | </div> |
| | | </div> |
| | | <!-- 源站/源库位 选择 --> |
| | |
| | | <button class="item" onclick="take()">出库</button> |
| | | <button class="item" onclick="stockMove()">库位转移</button> |
| | | <button class="item" onclick="siteMove()">站到站</button> |
| | | <button class="item" onclick="coorMove()">坐标移动</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="pause()">暂停</button> |
| | | <button class="item" onclick="boot()">启动</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> |
| | | </div> |
| | | </fieldset> |
| | | </div> |
| | |
| | | getCommandLog(); |
| | | },1000); |
| | | setInterval(function () { |
| | | getSiteOutput(); |
| | | getCrnOutput(); |
| | | operatorBlockShow(); |
| | | },500); |
| | | |
| | |
| | | }); |
| | | } |
| | | |
| | | // 回原点 |
| | | function reverseOrigin() { |
| | | http.post(baseUrl+"/crn/operator/reverseOrigin", getReqParam(), function (res) { |
| | | layer.msg(res.msg); |
| | | }); |
| | | } |
| | | |
| | | // 任务完成 |
| | | function taskComplete() { |
| | | http.post(baseUrl+"/crn/operator/taskComplete", getReqParam(), function (res) { |
| | |
| | | }); |
| | | } |
| | | |
| | | // 手动复位 |
| | | function handleReset() { |
| | | http.post(baseUrl+"/crn/operator/clearCommand", getReqParam(), function (res) { |
| | | layer.msg(res.msg); |
| | | }); |
| | | } |
| | | |
| | | // 输送设备日志输出 ----------------------------------------------------------------------- |
| | | function getSiteOutput() { |
| | | function getCrnOutput() { |
| | | $.ajax({ |
| | | url: baseUrl + "/crn/output/site", |
| | | headers: {'token': localStorage.getItem('token')}, |