| | |
| | | </div> |
| | | <!-- 第4列 --> |
| | | <div class="site-row site-row-4"> |
| | | <!-- <div id="barcode-103" class="barcode" style="height: 36px;line-height: 36px;">80004175</div>--> |
| | | <div id="site-103" class="site" style="height: 36px;line-height: 36px;">103</div> |
| | | <div id="site-203" class="site" style="height: 30px;line-height: 30px;margin-top: 96px;">203</div> |
| | | <!-- <div id="barcode-203" class="barcode" style="height: 30px;line-height: 30px;margin-top: 96px;">80003736</div>--> |
| | | </div> |
| | | <!-- 第5列 --> |
| | | <div class="site-row site-row-5"> |
| | |
| | | getSystemRunningStatus(); |
| | | getBarcodeInfo(); |
| | | getScaleInfo(); |
| | | getInStaBarcodeInfo(1); |
| | | }, 1000); |
| | | setInterval(function () { |
| | | getSitesInfo(); |
| | |
| | | } |
| | | }); |
| | | } |
| | | // 入库站扫码器数据实时获取 |
| | | function getInStaBarcodeInfo(barcodeId) { |
| | | $.ajax({ |
| | | url: baseUrl + "/latest/inSta/data/barcode", |
| | | data: {barcodeId:barcodeId}, |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | console.log(res) |
| | | if (res.code === 200){ |
| | | |
| | | } else if (res.code === 403){ |
| | | parent.location.href = baseUrl+"/login"; |
| | | } else { |
| | | console.log(res.msg); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // 扫码器实时数据获取 |
| | | function getBarcodeInfo(){ |