| | |
| | | |
| | | <!----------- 工具栏 ----------> |
| | | <!-- 入库口 --> |
| | | <div class="cargo-put"></div> |
| | | <div class="cargo-put-0"></div> |
| | | <div class="cargo-put-1"></div> |
| | | <!-- 扫码器 --> |
| | | <div id="code-decoder-1" class="code-decoder"> |
| | | <span id="code-decoder-data-1" class="code-decoder-data">0</span> |
| | | </div> |
| | | <!-- 扫码器 --> |
| | | <div id="code-decoder-2" class="code-decoder"> |
| | | <span id="code-decoder-data-2" class="code-decoder-data">0</span> |
| | | <!-- 磅秤 --> |
| | | <div class="scale" id="scale-1"> |
| | | <button id="scale-data-1">磅秤</button> |
| | | </div> |
| | | |
| | | |
| | |
| | | |
| | | <!-- 第3列(宽度 100px) --> |
| | | <div class="site-row site-row-3"> |
| | | <div id="site-129" class="site" style="height: 20px;line-height: 20px;width: 80px">129</div> |
| | | <div id="site-101" class="site" style="height: 20px;line-height: 20px">101</div> |
| | | <div id="site-125" class="site" style="height: 20px;line-height: 20px;width: 80px">125</div> |
| | | <div id="site-123" class="site" style="height: 20px;line-height: 20px">123</div> |
| | |
| | | <div id="site-204" class="site" style="height: 20px;line-height: 20px;">204</div> |
| | | </div> |
| | | |
| | | <!-- 第6列(宽度 100px) --> |
| | | <div class="site-row site-row-6"> |
| | | <div id="site-305" class="site" style="height: 20px;line-height: 20px;">305</div> |
| | | <div id="site-308" class="site" style="height: 21px;line-height: 21px;">308</div> |
| | | <div id="site-304" class="site" style="height: 20px;line-height: 20px;">304</div> |
| | | <div id="site-303" class="site" style="height: 44px;line-height: 44px;">303</div> |
| | | <div id="site-302" class="site" style="height: 20px;line-height: 20px;">302</div> |
| | | <div id="site-307" class="site" style="height: 21px;line-height: 21px;">307</div> |
| | | <div id="site-301" class="site" style="height: 20px;line-height: 20px;">301</div> |
| | | <div id="site-306" class="site" style="height: 20px;line-height: 20px;">306</div> |
| | | <div id="site-300" class="site" style="height: 20px;line-height: 20px;">300</div> |
| | | </div> |
| | | |
| | | <!-- 货架 + 堆垛机 + 入库站点 + 出库站点 --> |
| | | <div class="main-part"> |
| | | <!--第一组--> |
| | |
| | | <!-- 货架 --> |
| | | <div class="stock-group"> |
| | | <div id="site-100" class="site" style="">100</div> |
| | | <button class="item">1</button> |
| | | <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> |
| | | <div class="site site-none"> </div> |
| | | <button class="item">34</button> |
| | | <button class="item">36</button> |
| | | <button class="item">38</button> |
| | | <button class="item">40</button> |
| | | <button class="item">42</button> |
| | | <button class="item">44</button> |
| | | <button class="item">46</button> |
| | | <button class="item">48</button> |
| | | <button class="item">50</button> |
| | | <button class="item">52</button> |
| | | <button class="item">54</button> |
| | | <button class="item">56</button> |
| | | <button class="item">58</button> |
| | | <button class="item">60</button> |
| | | <button class="item">62</button> |
| | | <button class="item">64</button> |
| | | </div> |
| | | <!-- 堆垛机 --> |
| | | <div class="crn"> |
| | |
| | | <!-- 货架 --> |
| | | <div class="stock-group"> |
| | | <div id="site-124" class="site" style="">124</div> |
| | | <button class="item">1</button> |
| | | <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> |
| | | <div class="site site-none"> </div> |
| | | <button class="item">34</button> |
| | | <button class="item">36</button> |
| | | <button class="item">38</button> |
| | | <button class="item">40</button> |
| | | <button class="item">42</button> |
| | | <button class="item">44</button> |
| | | <button class="item">46</button> |
| | | <button class="item">48</button> |
| | | <button class="item">50</button> |
| | | <button class="item">52</button> |
| | | <button class="item">54</button> |
| | | <button class="item">56</button> |
| | | <button class="item">58</button> |
| | | <button class="item">60</button> |
| | | <button class="item">62</button> |
| | | <button class="item">64</button> |
| | | </div> |
| | | <span class="row-no">5#</span> |
| | | </div> |
| | |
| | | <!-- 货架 --> |
| | | <div class="stock-group"> |
| | | <div id="site-120" class="site" style="">120</div> |
| | | <button class="item">1</button> |
| | | <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> |
| | | <div class="site site-none"> </div> |
| | | <button class="item">34</button> |
| | | <button class="item">36</button> |
| | | <button class="item">38</button> |
| | | <button class="item">40</button> |
| | | <button class="item">42</button> |
| | | <button class="item">44</button> |
| | | <button class="item">46</button> |
| | | <button class="item">48</button> |
| | | <button class="item">50</button> |
| | | <button class="item">52</button> |
| | | <button class="item">54</button> |
| | | <button class="item">56</button> |
| | | <button class="item">58</button> |
| | | <button class="item">60</button> |
| | | <button class="item">62</button> |
| | | <button class="item">64</button> |
| | | </div> |
| | | <!-- 堆垛机 --> |
| | | <div class="crn"> |
| | |
| | | <!-- 货架 --> |
| | | <div class="stock-group"> |
| | | <div id="site-118" class="site" style="">118</div> |
| | | <button class="item">1</button> |
| | | <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> |
| | | <div class="site site-none"> </div> |
| | | <button class="item">34</button> |
| | | <button class="item">36</button> |
| | | <button class="item">38</button> |
| | | <button class="item">40</button> |
| | | <button class="item">42</button> |
| | | <button class="item">44</button> |
| | | <button class="item">46</button> |
| | | <button class="item">48</button> |
| | | <button class="item">50</button> |
| | | <button class="item">52</button> |
| | | <button class="item">54</button> |
| | | <button class="item">56</button> |
| | | <button class="item">58</button> |
| | | <button class="item">60</button> |
| | | <button class="item">62</button> |
| | | <button class="item">64</button> |
| | | </div> |
| | | <span class="row-no">1#</span> |
| | | </div> |
| | |
| | | getCrnInfo(); |
| | | getSystemRunningStatus(); |
| | | getBarcodeInfo(); |
| | | getScaleInfo(); |
| | | // 实时访问 |
| | | setInterval(function () { |
| | | getCrnInfo(); |
| | | getSystemRunningStatus(); |
| | | getBarcodeInfo() |
| | | getBarcodeInfo(); |
| | | getScaleInfo(); |
| | | }, 1000); |
| | | setInterval(function () { |
| | | getSitesInfo(); |
| | |
| | | for (var i = 0; i < crns.length; i++){ |
| | | var crnEl = $("#crn-"+crns[i].crnId); |
| | | crnEl.attr("class", "machine " + crns[i].crnStatus); |
| | | |
| | | var unit = $('.item').eq(0).width()+4; |
| | | crnEl.animate({left: (crns[i].bay * unit + 50) +'px'}, 1000); |
| | | // crnEl.animate({left: (crns[i].bay * ($('.item').eq(0).width()+4)) +'px'}, 1000); |
| | | var unit = ($('.item').eq(0).width()+4)/2; |
| | | crnEl.animate({left: (crns[i].bay * unit + 25) +'px'}, 1000); |
| | | } |
| | | } else if (res.code === 403){ |
| | | parent.location.href = baseUrl+"/login"; |
| | |
| | | }); |
| | | } |
| | | |
| | | // 磅秤实时数据获取 |
| | | function getScaleInfo(){ |
| | | $.ajax({ |
| | | url: baseUrl+ "/console/latest/data/scale", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | |
| | | if (res.code === 200){ |
| | | var sclaes = res.data; |
| | | for (var i = 0; i < sclaes.length; i++){ |
| | | console.log(sclaes[i].scaleId + ":" + sclaes[i].value) |
| | | $("#scale-data-"+sclaes[i].scaleId).text(sclaes[i].value); |
| | | } |
| | | } else if (res.code === 403){ |
| | | parent.location.href = baseUrl+"/login"; |
| | | } else { |
| | | console.log(res.msg); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // 堆垛机偏移动画 |
| | | function crnAnimate(id, leftVal) { |
| | | switch (id) { |