feat: AGV点位锁与缓存迁移 + 工位终端去离线队列 + WMS出入库增强
【MES】 - AGV点位/线路点位/AGV任务/工单 ent schema 重构(全量重生成 ent 代码) - 新增派车锁 agv_point_lock.go:目标点位占用即拒车,JBT21 库房接驳台卸货后保持锁定待库管手动解锁 - 新增进程内 TTL 缓存 cache.go,由 Redis 看板缓存迁移至内存(singleflight 防击穿,去除外部依赖) - AGV 三段链安全机制、车辆状态/接驳台左右互换、补料损耗闭环完善 - 来料检/工序卡/工单/质检/日排产/AGV 前端与帮助文档更新 - 新增 migrations/、sql/ 目录 【WMS】 - 出库、Excel 导出、物料、路由处理增强 - 配置与 DB 初始化调整;基础数据/成品入库/入库前端调整 【工位终端】 - 移除离线同步队列(syncer 包、sync.go、SyncQueueDialog.vue),改为实时直连上报 MES(断网即失败报错),以本人身份操作 - 本地 SQLite 仅保留操作日志 + 内置账号 + 登录态;保留空闲自动登出 【文档】 - 删除 AGV海康litev1.5.md;案例.md 更新
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"bj_power_mes/common/logx"
|
||||
"bj_power_mes/internal/db"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/stores/redis"
|
||||
"github.com/zeromicro/go-zero/rest"
|
||||
)
|
||||
|
||||
@@ -12,7 +11,6 @@ import (
|
||||
type Config struct {
|
||||
rest.RestConf // 自带 Host/Port 等
|
||||
Database db.DatabaseConf
|
||||
Redis RedisConfWrapper
|
||||
Auth AuthConf
|
||||
Internal InternalConf
|
||||
Cli CliConf
|
||||
@@ -30,10 +28,6 @@ type ScannerConf struct {
|
||||
Enabled bool `json:",default=false"`
|
||||
}
|
||||
|
||||
type RedisConfWrapper struct {
|
||||
redis.RedisConf
|
||||
}
|
||||
|
||||
// AuthConf 鉴权配置:JWT Secret / 有效期
|
||||
// 只保留滑动续签:AccessExpire = 会话闲置窗口
|
||||
type AuthConf struct {
|
||||
@@ -83,6 +77,11 @@ type AgvConf struct {
|
||||
CarrierCode string `json:",default=DEFAULT"` // 默认载具/托盘编号(选填,下发时作为 podCode)
|
||||
MapCode string `json:",default="` // 地图编号(选填,RCS-Lite 多地图场景使用)
|
||||
Priority string `json:",default=1"` // 任务优先级(字符串 1-127,默认 1)
|
||||
// 任务类型编号 = RCS-Lite 任务模板载体(接口文档 2.1.1 taskTyp:与 RCS 端配置的主任务类型编号一致,
|
||||
// 模板绑定在该编号上,错误码 1005/1044 即模板读取/配置失败)。模板跟着任务段走(2026-11-05 拍板):
|
||||
// 段起点或终点涉及接驳台 → 举升模板,纯停靠段 → 非举升模板;由 MES 自动推导,不留给人工选。
|
||||
TaskTypLift string `json:",default=F01"` // 举升模板任务类型编号(默认 F01 厂内货架搬运=迁移前固定行为)
|
||||
TaskTypPlain string `json:",default=F01"` // 非举升模板任务类型编号(现场 RCS 配置出编号后在 yaml 修改;默认与举升同值=迁移前行为)
|
||||
}
|
||||
|
||||
// UploadConf 附件统一存储配置。
|
||||
|
||||
Reference in New Issue
Block a user