This commit is contained in:
lidg
2026-10-19 11:17:12 +08:00
parent 8f9a89a61e
commit 23674e0ede
20 changed files with 1509 additions and 333 deletions
+3 -5
View File
@@ -6,7 +6,6 @@
#include <QWidget>
#include <QVector>
class QComboBox;
class QTableWidget;
class QGroupBox;
class QResizeEvent;
@@ -43,7 +42,6 @@ private slots:
void stopProduction();
void resetProduction();
void clearAlarm();
void onOrderChanged(int index);
void onProductionStateChanged(ProductionService::State state,
const QString &name);
void onCurrentWorkpieceChanged(int workpieceId, const QString &barcode);
@@ -63,8 +61,7 @@ protected:
void resizeEvent(QResizeEvent *event) override;
private:
void loadOrderOptions();
void updateOrderSummary();
void loadCurrentOrder();
void updateProductionStats();
void updateRackSummary();
void updateRackSize();
@@ -74,7 +71,6 @@ private:
static QString formatDuration(int elapsedMs);
Ui::DashboardPage *ui;
QComboBox *orderCombo;
QGroupBox *rackBox;
QVector<QLabel *> rackTrayCells;
QLabel *deviceStatusLabel;
@@ -100,6 +96,8 @@ private:
QThread *productionThread;
ProductionWorker *productionWorker;
ProductionService::State productionState;
int currentOrderId;
bool currentOrderStartable;
Workpiece productionWorkpiece;
int productionTrayNo;
int productionSlotNo;