| | |
| | | <h2>执行中的命令</h2> |
| | | <div class="crn-command-item"> |
| | | <label>1#</label> |
| | | <button id="demoBtn-1" class="demoBtn" onclick="demoSwitch(this.id)">演示</button> |
| | | <!-- <span> </span>--> |
| | | <!-- <button id="demoBtn-1" class="demoBtn" onclick="demoSwitch(this.id)">演示</button>--> |
| | | <span> </span> |
| | | <input id="crn1" disabled="disabled"> |
| | | </div> |
| | | <div class="crn-command-item"> |
| | | <label>2#</label> |
| | | <!-- <button id="demoBtn-2" class="demoBtn" onclick="demoSwitch(this.id)">演示</button>--> |
| | | <span> </span> |
| | | <input id="crn2" disabled="disabled"> |
| | | </div> |
| | | </div> |
| | | <!-- 堆垛机状态位信息 --> |
| | |
| | | <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="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>--> |
| | |
| | | crnOutputDom.scrollTop = crnOutputDom.scrollHeight; |
| | | } |
| | | |
| | | // function demoSwitch(el) { |
| | | // var crnId = el.split("-")[1]; |
| | | // layer.prompt({title: '请输入口令,并开始'+crnId+"号堆垛机演示", formType: 1, shadeClose: true}, function (pass, idx) { |
| | | // layer.close(idx); |
| | | // doDemo(crnId, pass); // 停止wcs系统 |
| | | // }); |
| | | // } |
| | | |
| | | function demoSwitch(el) { |
| | | var crnId = el.split("-")[1]; |
| | | layer.prompt({title: '请输入口令,并开始'+crnId+"号堆垛机演示", formType: 1, shadeClose: true}, function (pass, idx) { |
| | | layer.close(idx); |
| | | doDemo(crnId, pass); // 停止wcs系统 |
| | | layer.confirm(crnId + ' 号堆垛机确定开始演示吗?', function(){ |
| | | doDemo(crnId, 'root'); // 停止wcs系统 |
| | | }); |
| | | } |
| | | |