feat: 移除PDI和订单号字段,新增设备巡检模块

- 从物料跟踪页面移除订单号列和表单字段
- 从导航菜单移除PDI管理,添加设备巡检
- 新增InspectionLocation和InspectionRecord后端模型和API
- 新增设备巡检前端页面(左侧点位列表,右侧设备和历史记录)
This commit is contained in:
2026-05-27 16:38:40 +08:00
commit 193da0018f
86 changed files with 11379 additions and 0 deletions

23
backend/.env.example Normal file
View File

@@ -0,0 +1,23 @@
# 数据库配置
DATABASE_URL=postgresql+asyncpg://postgres:password@localhost:5432/pickling_mes
DATABASE_SYNC_URL=postgresql://postgres:password@localhost:5432/pickling_mes
# Redis配置
REDIS_URL=redis://localhost:6379/0
# JWT配置
SECRET_KEY=your-secret-key-change-in-production
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=480
# 服务配置
APP_HOST=0.0.0.0
APP_PORT=8000
DEBUG=true
# L1报文接收配置UDP本机监听
L1_HOST=0.0.0.0
L1_PORT=9000
# 跨域配置
CORS_ORIGINS=["http://localhost:8080","http://127.0.0.1:8080"]