机台状态
<h5>接口描述</h5>
<ul>
<li>机台状态</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://erp.konmeit.com/erp/index.php/board/device</code></li>
</ul>
<h5>请求方式</h5>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"code": 1000,
"msg": "操作成功",
"data": {
"list": [
{
"id": "13",
"DeviceId": "000001",
"DeviceStatus": "999",
"DeviceCode": "0"
},
{
"id": "48",
"DeviceId": "000021",
"DeviceStatus": "999",
"DeviceCode": "0"
},
{
"id": "46",
"DeviceId": "000034",
"DeviceStatus": "999",
"DeviceCode": "0"
},
{
"id": "47",
"DeviceId": "000039",
"DeviceStatus": "999",
"DeviceCode": "0"
},
{
"id": "8",
"DeviceId": "F00001",
"DeviceStatus": "999",
"DeviceCode": "0"
},
{
"id": "6",
"DeviceId": "K00001",
"DeviceStatus": "999",
"DeviceCode": "1"
},
{
"id": "45",
"DeviceId": "KMT001",
"DeviceStatus": "999",
"DeviceCode": "0"
},
{
"id": "11",
"DeviceId": "L00001",
"DeviceStatus": "999",
"DeviceCode": "1"
},
{
"id": "12",
"DeviceId": "S00001",
"DeviceStatus": "999",
"DeviceCode": "2"
},
{
"id": "10",
"DeviceId": "S00002",
"DeviceStatus": "999",
"DeviceCode": "2"
},
{
"id": "9",
"DeviceId": "Y00002",
"DeviceStatus": "999",
"DeviceCode": "2"
},
{
"id": "7",
"DeviceId": "Y00003",
"DeviceStatus": "999",
"DeviceCode": "2"
}
],
"status": {
"count": 12,
"offline": 12,
"online": 0,
"work": 0,
"free": 0,
"breakdown": 0,
"adjustment": 0
}
}
}</code></pre>
<h5>返回参数 data 说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<table>
<thead>
<tr>
<th>list</th>
<th>array</th>
<th>机台列表部分</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>int</td>
<td>列表ID</td>
</tr>
<tr>
<td>DeviceId</td>
<td>string</td>
<td>设备编号</td>
</tr>
<tr>
<td>DeviceStatus</td>
<td>int</td>
<td>设备状态代码</td>
</tr>
<tr>
<td>DeviceCode</td>
<td>int</td>
<td>0离线 1停止 2运转 3调机</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>status</th>
<th>array</th>
<th>机台状态部分</th>
</tr>
</thead>
<tbody>
<tr>
<td>count</td>
<td>int</td>
<td>机台总数</td>
</tr>
<tr>
<td>offline</td>
<td>int</td>
<td>离线数量</td>
</tr>
<tr>
<td>online</td>
<td>int</td>
<td>在线数量</td>
</tr>
<tr>
<td>work</td>
<td>int</td>
<td>运转数量</td>
</tr>
<tr>
<td>free</td>
<td>int</td>
<td>空闲数量</td>
</tr>
<tr>
<td>breakdown</td>
<td>int</td>
<td>故障数量</td>
</tr>
<tr>
<td>adjustment</td>
<td>int</td>
<td>调机数量</td>
</tr>
</tbody>
</table>
<h5><code>备注</code></h5>
<ul>
<li>参考 MES 大屏看板
<img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/b38f818ff313fe96bca9726885e22d0d" alt="" /></li>
</ul>
<p><br/><br/></p>