后端实现基于EF Core的库区/库位/容器/物料/关系/历史等模型、服务与RESTful接口,支持多数据库Provider。前端新增类型、API与聚合页面,支持主数据及容器位置/物料关系的增删改查、绑定/解绑、装料/卸料、历史追溯。完善权限、菜单与文档,平台具备完整WMS能力。
64 lines
1.4 KiB
JSON
64 lines
1.4 KiB
JSON
{
|
|
"section": "device",
|
|
"version": 1,
|
|
"updatedAt": "2026-06-08T09:43:37.5034914+00:00",
|
|
"payload": {
|
|
"drivers": [
|
|
{
|
|
"id": "drv-elev",
|
|
"deviceType": "\u7535\u68AF",
|
|
"driverName": "OpcUaElevatorDriver",
|
|
"version": "1.2.0"
|
|
},
|
|
{
|
|
"id": "drv-chrg",
|
|
"deviceType": "\u5145\u7535\u6869",
|
|
"driverName": "ModbusChargerDriver",
|
|
"version": "1.0.5"
|
|
},
|
|
{
|
|
"id": "drv-cam",
|
|
"deviceType": "\u6444\u50CF\u5934",
|
|
"driverName": "OnvifCameraDriver",
|
|
"version": "2.1.0"
|
|
}
|
|
],
|
|
"devices": [
|
|
{
|
|
"id": "dev-elev-1",
|
|
"name": "#1 \u7535\u68AF",
|
|
"deviceType": "\u7535\u68AF",
|
|
"protocol": "opc-ua",
|
|
"address": "opc.tcp://10.0.2.20:4840",
|
|
"driverId": "drv-elev",
|
|
"enabled": true
|
|
},
|
|
{
|
|
"id": "dev-chrg-1",
|
|
"name": "\u5145\u7535\u6869-A1",
|
|
"deviceType": "\u5145\u7535\u6869",
|
|
"protocol": "modbus-tcp",
|
|
"address": "10.0.2.30:502",
|
|
"driverId": "drv-chrg",
|
|
"enabled": true
|
|
}
|
|
],
|
|
"healthPolicy": {
|
|
"heartbeatSec": 5,
|
|
"offlineSec": 30
|
|
},
|
|
"alarmPolicy": {
|
|
"enabled": true,
|
|
"rules": [
|
|
{
|
|
"level": "warn",
|
|
"condition": "offline\u003E30s"
|
|
},
|
|
{
|
|
"level": "error",
|
|
"condition": "driverException"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |