| | |
| | | <!----------- 左输送线 ----------> |
| | | |
| | | <!-- 台车轨道 --> |
| | | <div id="car-track-1" class="car-track"></div> |
| | | <div id="car-track-1" class="car-track"> |
| | | <div></div> |
| | | </div> |
| | | |
| | | <!-- 台车实例 --> |
| | | <div id="site-8" class="site car">8</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-7" class="site" style="height: 20px;line-height: 20px;margin-bottom: 20px">7</div> |
| | | <div id="site-4" class="site" style="height: 20px;line-height: 20px;margin-bottom: 20px">4</div> |
| | | <div id="site-3" class="site" style="height: 20px;line-height: 20px;margin-bottom: 40px">3</div> |
| | | <div id="site-2" class="site" style="height: 20px;line-height: 20px;margin-bottom: 0px">2</div> |
| | | <div id="site-1" class="site" style="height: 20px;line-height: 20px;margin-bottom: 20px">1</div> |
| | | </div> |
| | | |
| | | <!-- 货架 + 堆垛机 + 入库站点 + 出库站点 --> |
| | |
| | | parent.systemRunning = false; |
| | | } |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |
| | | parent.location.href = baseUrl+"/login"; |
| | | } else { |
| | | alert(res.msg); |
| | | console.log(res.msg); |
| | | |
| | | } |
| | | } |
| | | }); |
| | |
| | | parent.systemRunning = false; |
| | | } |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |
| | | parent.location.href = baseUrl+"/login"; |
| | | } else { |
| | | alert(res.msg); |
| | | console.log(res.msg); |
| | | } |
| | | } |
| | | }); |
| | |
| | | } else { |
| | | siteEl.html(sites[i].siteId); |
| | | } |
| | | if (i+1===8) { |
| | | carAnimate(i+1, Number(sites[i].nearbySta)); |
| | | } |
| | | } |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |
| | | parent.location.href = baseUrl+"/login"; |
| | | } else { |
| | | alert(res.msg); |
| | | console.log(res.msg); |
| | | } |
| | | } |
| | | }); |
| | |
| | | for (var i = 0; i < crns.length; i++){ |
| | | var crnEl = $("#crn-"+crns[i].crnId); |
| | | crnEl.attr("class", "machine " + crns[i].crnStatus); |
| | | // crnAnimate(crns[i].crnId, crns[i].offset); |
| | | crnEl.animate({left: (crns[i].bay * ($('.item').eq(0).width()+4)) +'px'}, 1000); |
| | | |
| | | 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); |
| | | } |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |
| | | parent.location.href = baseUrl+"/login"; |
| | | } else { |
| | | alert(res.msg); |
| | | console.log(res.msg); |
| | | } |
| | | } |
| | | }); |
| | |
| | | $("#code-decoder-data-"+barcodes[i].barcodeId).html(barcodes[i].codeValue); |
| | | } |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |
| | | parent.location.href = baseUrl+"/login"; |
| | | } else { |
| | | alert(res.msg); |
| | | console.log(res.msg); |
| | | } |
| | | } |
| | | }); |
| | |
| | | targetTop += 160; |
| | | break; |
| | | case 2: |
| | | targetTop += 120; |
| | | targetTop += 140; |
| | | break; |
| | | case 3: |
| | | targetTop += 80; |
| | |
| | | alert('不能为空!'); |
| | | } else { |
| | | carAnimate(8, Number(value)); |
| | | // $("#site-" + 8).animate({top: (Number(value) + 122) +'px'}, 1000); |
| | | } |
| | | }) |
| | | |