feat(production): 修改订单加工位置不一致问题

-创建订单时解除所有占用
-修改数据库位置唯一约束
-严格按照订单起始位置分配
-订单启动时重新初始化位置
This commit is contained in:
lidg
2026-11-09 15:04:11 +08:00
parent 0ed952f917
commit 47627b07f0
13 changed files with 511 additions and 102 deletions
+2
View File
@@ -15,6 +15,8 @@ public:
QString *error = nullptr);
bool assignSlot(int trayId, int rowNo, int columnNo, int workpieceId,
const QString &state, QString *error = nullptr);
bool clearAllSlots(int *releasedCount = nullptr,
QString *error = nullptr);
bool refreshStats(int trayId, QString *error = nullptr);
bool upsertTray(const Tray &tray, QString *error = nullptr);
bool updateSlotState(int trayId, int rowNo, int columnNo, const QString &state,