| | |
| | | <link rel="stylesheet" type="text/css" href="../static/css/common.css"> |
| | | <link rel="stylesheet" type="text/css" href="../static/css/console.css"> |
| | | <script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script> |
| | | <script type="text/javascript" src="../static/js/common.js"></script> |
| | | <script type="text/javascript" src="../static/js/layer/layer.js"></script> |
| | | <script type="text/javascript" src="../static/js/common.js"></script> |
| | | <style> |
| | | /* layer 深蓝色按钮修改 */ |
| | | /*.layui-layer-lan .layui-layer-btn {*/ |
| | |
| | | <div class="tips-item"> |
| | | <label>堆垛机状态颜色: </label> |
| | | <div class="item-group"> |
| | | <span class="machine-put">入库</span> |
| | | <span class="machine-take">出库</span> |
| | | <span class="machine-stock-move">库到库</span> |
| | | <span class="machine-site-move">站到站</span> |
| | | <span class="machine-p-move">PToP</span> |
| | | <span class="machine-error">异常</span> |
| | | <span class="machine-auto">自动</span> |
| | | <span class="machine-unauto">非自动/手动</span> |
| | | <span class="machine-put-flag">入库</span> |
| | | <span class="machine-take-flag">出库</span> |
| | | <span class="machine-stock-move-flag">库到库</span> |
| | | <span class="machine-site-move-flag">站到站</span> |
| | | <span class="machine-p-move-flag">PToP</span> |
| | | <span class="machine-error-flag">异常</span> |
| | | <span class="machine-auto-flag">自动</span> |
| | | <span class="machine-unauto-flag">非自动/手动</span> |
| | | </div> |
| | | </div> |
| | | <div class="tips-item"> |
| | |
| | | <!----------- 工具栏 ----------> |
| | | <!-- 入库口 --> |
| | | <div class="cargo-put"></div> |
| | | <!-- 扫码器 --> |
| | | <div id="code-decoder-1" class="code-decoder"> |
| | | <span id="code-decoder-data-1" class="code-decoder-data">0</span> |
| | | </div> |
| | | |
| | | <!-- <!– 扫码器 1–>--> |
| | | <!-- <div id="code-decoder-1" class="code-decoder">--> |
| | | <!-- <span id="code-decoder-data-1" class="code-decoder-data">0</span>--> |
| | | <!-- </div>--> |
| | | |
| | | <!-- <!– 扫码器 2–>--> |
| | | <!-- <div id="code-decoder-2" class="code-decoder">--> |
| | | <!-- <span id="code-decoder-data-2" class="code-decoder-data">0</span>--> |
| | | <!-- </div>--> |
| | | |
| | | |
| | | <!-- 左输送线 --> |
| | | <!----------- 左输送线 ----------> |
| | | |
| | | <!-- 第一列(宽度 100px) --> |
| | | <div class="site-row site-row-1"> |
| | | <div id="site-7" class="site" style="height: 40px;line-height: 40px">7</div> |
| | | <div id="site-4" class="site" style="height: 40px;line-height: 40px">4</div> |
| | | <div id="site-3" class="site" style="height: 40px;line-height: 40px;">3</div> |
| | | <div id="site-2" class="site" style="height: 40px;line-height: 40px">2</div> |
| | | <div id="site-1" class="site" style="height: 40px;line-height: 40px">1</div> |
| | | <div id="site-1" class="site" style="height: 20px;line-height: 20px;">1</div> |
| | | <div id="site-3" class="site" style="height: 20px;line-height: 20px; margin-top: 20px">3</div> |
| | | <div id="site-5" class="site" style="height: 20px;line-height: 20px; margin-top: 0px">5</div> |
| | | <div id="site-7" class="site" style="height: 20px;line-height: 20px; margin-top: 20px">7</div> |
| | | </div> |
| | | |
| | | <!-- 货架 + 堆垛机 + 入库站点 + 出库站点 --> |
| | |
| | | <span class="row-no">1#</span> |
| | | <!-- 货架 --> |
| | | <div class="stock-group"> |
| | | <div id="site-6" class="site" style="">6</div> |
| | | <button class="item">1</button> |
| | | <div id="site-2" class="site" style="">2</div> |
| | | <button class="item">2</button> |
| | | <button class="item">3</button> |
| | | <button class="item">4</button> |
| | |
| | | <button class="item">32</button> |
| | | <button class="item">33</button> |
| | | <button class="item">34</button> |
| | | <button class="item">35</button> |
| | | <button class="item">36</button> |
| | | <button class="item">37</button> |
| | | <button class="item">38</button> |
| | | <button class="item">39</button> |
| | | <button class="item">40</button> |
| | | <button class="item">41</button> |
| | | <button class="item">42</button> |
| | | <button class="item">43</button> |
| | | <button class="item">44</button> |
| | | <button class="item">45</button> |
| | | <button class="item">46</button> |
| | | <button class="item">47</button> |
| | | <button class="item">48</button> |
| | | <button class="item">49</button> |
| | | <button class="item">50</button> |
| | | <button class="item">51</button> |
| | | <div class="site site-none"> </div> |
| | | </div> |
| | | <!-- 堆垛机 --> |
| | |
| | | </div> |
| | | <!-- 货架 --> |
| | | <div class="stock-group"> |
| | | <div id="site-5" class="site" style="">5</div> |
| | | <button class="item">1</button> |
| | | <div id="site-4" class="site" style="">4</div> |
| | | <button class="item">2</button> |
| | | <button class="item">3</button> |
| | | <button class="item">4</button> |
| | |
| | | <button class="item">32</button> |
| | | <button class="item">33</button> |
| | | <button class="item">34</button> |
| | | <button class="item">35</button> |
| | | <button class="item">36</button> |
| | | <button class="item">37</button> |
| | | <button class="item">38</button> |
| | | <button class="item">39</button> |
| | | <button class="item">40</button> |
| | | <button class="item">41</button> |
| | | <button class="item">42</button> |
| | | <button class="item">43</button> |
| | | <button class="item">44</button> |
| | | <button class="item">45</button> |
| | | <button class="item">46</button> |
| | | <button class="item">47</button> |
| | | <button class="item">48</button> |
| | | <button class="item">49</button> |
| | | <button class="item">50</button> |
| | | <button class="item">51</button> |
| | | <div class="site site-none"> </div> |
| | | </div> |
| | | <span class="row-no">2#</span> |
| | | </div> |
| | | <div class="lane"> |
| | | <!-- 货架 --> |
| | | <div class="stock-group"> |
| | | <div id="site-6" class="site" style="">6</div> |
| | | <button class="item">2</button> |
| | | <button class="item">3</button> |
| | | <button class="item">4</button> |
| | | <button class="item">5</button> |
| | | <button class="item">6</button> |
| | | <button class="item">7</button> |
| | | <button class="item">8</button> |
| | | <button class="item">9</button> |
| | | <button class="item">10</button> |
| | | <button class="item">11</button> |
| | | <button class="item">12</button> |
| | | <button class="item">13</button> |
| | | <button class="item">14</button> |
| | | <button class="item">15</button> |
| | | <button class="item">16</button> |
| | | <button class="item">17</button> |
| | | <button class="item">18</button> |
| | | <button class="item">19</button> |
| | | <button class="item">20</button> |
| | | <button class="item">21</button> |
| | | <button class="item">22</button> |
| | | <button class="item">23</button> |
| | | <button class="item">24</button> |
| | | <button class="item">25</button> |
| | | <button class="item">26</button> |
| | | <button class="item">27</button> |
| | | <button class="item">28</button> |
| | | <button class="item">29</button> |
| | | <button class="item">30</button> |
| | | <button class="item">31</button> |
| | | <button class="item">32</button> |
| | | <button class="item">33</button> |
| | | <button class="item">34</button> |
| | | <button class="item">35</button> |
| | | <button class="item">36</button> |
| | | <button class="item">37</button> |
| | | <button class="item">38</button> |
| | | <button class="item">39</button> |
| | | <button class="item">40</button> |
| | | <button class="item">41</button> |
| | | <button class="item">42</button> |
| | | <button class="item">43</button> |
| | | <button class="item">44</button> |
| | | <button class="item">45</button> |
| | | <button class="item">46</button> |
| | | <button class="item">47</button> |
| | | <button class="item">48</button> |
| | | <button class="item">49</button> |
| | | <button class="item">50</button> |
| | | <button class="item">51</button> |
| | | <div class="site site-none"> </div> |
| | | </div> |
| | | <!-- 堆垛机 --> |
| | | <div class="crn"> |
| | | <hr class="pathway"> |
| | | <div id="crn-2" class="machine"></div> |
| | | </div> |
| | | <!-- 货架 --> |
| | | <div class="stock-group"> |
| | | <div id="site-8" class="site" style="">8</div> |
| | | <button class="item">2</button> |
| | | <button class="item">3</button> |
| | | <button class="item">4</button> |
| | | <button class="item">5</button> |
| | | <button class="item">6</button> |
| | | <button class="item">7</button> |
| | | <button class="item">8</button> |
| | | <button class="item">9</button> |
| | | <button class="item">10</button> |
| | | <button class="item">11</button> |
| | | <button class="item">12</button> |
| | | <button class="item">13</button> |
| | | <button class="item">14</button> |
| | | <button class="item">15</button> |
| | | <button class="item">16</button> |
| | | <button class="item">17</button> |
| | | <button class="item">18</button> |
| | | <button class="item">19</button> |
| | | <button class="item">20</button> |
| | | <button class="item">21</button> |
| | | <button class="item">22</button> |
| | | <button class="item">23</button> |
| | | <button class="item">24</button> |
| | | <button class="item">25</button> |
| | | <button class="item">26</button> |
| | | <button class="item">27</button> |
| | | <button class="item">28</button> |
| | | <button class="item">29</button> |
| | | <button class="item">30</button> |
| | | <button class="item">31</button> |
| | | <button class="item">32</button> |
| | | <button class="item">33</button> |
| | | <button class="item">34</button> |
| | | <button class="item">35</button> |
| | | <button class="item">36</button> |
| | | <button class="item">37</button> |
| | | <button class="item">38</button> |
| | | <button class="item">39</button> |
| | | <button class="item">40</button> |
| | | <button class="item">41</button> |
| | | <button class="item">42</button> |
| | | <button class="item">43</button> |
| | | <button class="item">44</button> |
| | | <button class="item">45</button> |
| | | <button class="item">46</button> |
| | | <button class="item">47</button> |
| | | <button class="item">48</button> |
| | | <button class="item">49</button> |
| | | <button class="item">50</button> |
| | | <button class="item">51</button> |
| | | <div class="site site-none"> </div> |
| | | </div> |
| | | <span class="row-no">4#</span> |
| | | </div> |
| | | </div> |
| | | </main> |
| | |
| | | <span>设备号</span> |
| | | </div> |
| | | <div class="form-item-input"> |
| | | <input type="text" name="devpNo" value="" disabled="disabled" style="width: 4rem"> |
| | | <input type="text" name="siteId" value="" disabled="disabled" style="width: 4rem"> |
| | | </div> |
| | | </div> |
| | | <div class="form-item" style="width: 25%"> |
| | |
| | | <span>工作状态</span> |
| | | </div> |
| | | <div class="form-item-input"> |
| | | <input type="text" name="workStatus" value="" disabled="disabled" style="width: 10rem"> |
| | | <input type="text" name="wrkSts" value="" disabled="disabled" style="width: 10rem"> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <span>源库位</span> |
| | | </div> |
| | | <div class="form-item-input"> |
| | | <input type="text" name="sourceStock" value="" disabled="disabled" style="width: 8rem"> |
| | | <input type="text" name="sourceLocNo" value="" disabled="disabled" style="width: 8rem"> |
| | | </div> |
| | | </div> |
| | | <div class="form-item" style="width: 40%"> |
| | |
| | | <span>目标库位</span> |
| | | </div> |
| | | <div class="form-item-input"> |
| | | <input type="text" name="stock" value="" disabled="disabled" style="width: 8rem"> |
| | | <input type="text" name="locNo" value="" disabled="disabled" style="width: 8rem"> |
| | | </div> |
| | | </div> |
| | | </form> |
| | |
| | | <span>工作状态</span> |
| | | </div> |
| | | <div class="form-item-input"> |
| | | <input type="text" name="workStatus" value="" disabled="disabled" style="width: 10rem"> |
| | | <input type="text" name="wrkSts" value="" disabled="disabled" style="width: 10rem"> |
| | | </div> |
| | | </div> |
| | | <div class="form-item" style="width: 45%"> |
| | |
| | | <span>源库位</span> |
| | | </div> |
| | | <div class="form-item-input"> |
| | | <input type="text" name="sourceStock" value="" disabled="disabled" style="width: 10rem"> |
| | | <input type="text" name="sourceLocNo" value="" disabled="disabled" style="width: 10rem"> |
| | | </div> |
| | | </div> |
| | | <div class="form-item" style="width: 45%"> |
| | |
| | | <span>目标库位</span> |
| | | </div> |
| | | <div class="form-item-input"> |
| | | <input type="text" name="stock" value="" disabled="disabled" style="width: 10rem"> |
| | | <input type="text" name="locNo" value="" disabled="disabled" style="width: 10rem"> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | getCrnInfo(); |
| | | getSystemRunningStatus(); |
| | | getBarcodeInfo() |
| | | }, 500); |
| | | }, 1000); |
| | | setInterval(function () { |
| | | getSitesInfo(); |
| | | }, 3000); |
| | |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |
| | | } else { |
| | | alert(res.msg); |
| | | console.log(res.msg); |
| | | } |
| | | } |
| | | }); |
| | |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |
| | | } else { |
| | | alert(res.msg); |
| | | console.log(res.msg); |
| | | } |
| | | } |
| | | }); |
| | |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |
| | | } else { |
| | | alert(res.msg); |
| | | console.log(res.msg); |
| | | } |
| | | } |
| | | }); |
| | |
| | | if (res.code === 200){ |
| | | var crns = res.data; |
| | | for (var i = 0; i < crns.length; i++){ |
| | | crnAnimate(crns[i].crnId, crns[i].offset); |
| | | var crnEl = $("#crn-"+crns[i].crnId); |
| | | crnEl.attr("class", "machine " + crns[i].crnStatus); |
| | | // crnAnimate(crns[i].crnId, crns[i].offset); |
| | | var unit = $('.item').eq(0).width()+4; |
| | | crnEl.animate({left: (crns[i].bay * unit + 20) +'px'}, 1000); |
| | | } |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |
| | | } else { |
| | | alert(res.msg); |
| | | console.log(res.msg); |
| | | } |
| | | } |
| | | }); |
| | |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |
| | | } else { |
| | | alert(res.msg); |
| | | console.log(res.msg); |
| | | } |
| | | } |
| | | }); |
| | |
| | | }); |
| | | }); |
| | | |
| | | |
| | | // 小车偏移动画 |
| | | function carAnimate(id, target) { |
| | | var targetTop = 122; |
| | | if (id === 8) { |
| | | switch (target) { |
| | | case 1: |
| | | targetTop += 160; |
| | | break; |
| | | case 2: |
| | | targetTop += 120; |
| | | break; |
| | | case 3: |
| | | targetTop += 80; |
| | | break; |
| | | case 4: |
| | | targetTop += 40; |
| | | break; |
| | | case 7: |
| | | targetTop += 0; |
| | | break; |
| | | default: |
| | | return; |
| | | } |
| | | } else { |
| | | return; |
| | | } |
| | | $("#site-" + id).animate({top: targetTop+'px'}, 1000); |
| | | } |
| | | |
| | | |
| | | // 台车点击事件 |
| | | $(document).on("click", ".item", function () { |
| | | var value = prompt('目标站:', "1"); |
| | | if (value == null) { |
| | | alert('不能为空!'); |
| | | } else if (value === '') { |
| | | alert('不能为空!'); |
| | | } else { |
| | | carAnimate(8, Number(value)); |
| | | } |
| | | }) |
| | | |
| | | </script> |
| | | </html> |