feat(production): 修改订单清除按钮功能---除了清除报警、也复位状态,让订单能继续执行
This commit is contained in:
@@ -58,6 +58,8 @@ public:
|
||||
QString stateName;
|
||||
bool terminationRequired = false;
|
||||
bool visionRecoveryRequired = false;
|
||||
bool resetInProgress = false;
|
||||
bool resetRequired = false;
|
||||
QString error;
|
||||
};
|
||||
Snapshot snapshot() const;
|
||||
@@ -79,6 +81,8 @@ public:
|
||||
bool stopOrder(int orderId, QString *error = nullptr);
|
||||
bool stopConfirmedOrder(int runId, int orderId, QString *error = nullptr);
|
||||
bool clearAlarm(QString *error = nullptr);
|
||||
QJsonObject resetContext(QString *error = nullptr);
|
||||
bool resetProduction(const QJsonObject &context, QString *error = nullptr);
|
||||
bool recover(QString *error = nullptr);
|
||||
bool submitRecoveryDecision(const QJsonObject &decision, QString *error = nullptr);
|
||||
bool markCurrentWorkpieceNg(QString *error = nullptr);
|
||||
@@ -109,6 +113,8 @@ signals:
|
||||
void recoveryCompleted(const QString &mode);
|
||||
void recoveryDecisionRequired(const QJsonObject &context);
|
||||
void recoveryBusyChanged(bool busy);
|
||||
void alarmOperationBusyChanged(bool busy);
|
||||
void alarmOperationFinished(bool resetRequested, bool success, const QString &message);
|
||||
void visionMeasureRequested(const QJsonObject &request);
|
||||
void visionCancelRequested(const QString &requestId);
|
||||
void visionCycleChanged(const QJsonObject &cycle);
|
||||
@@ -169,7 +175,9 @@ private:
|
||||
bool finishCurrentWorkpiece(const QString &state, const QString &processStep,
|
||||
QString *error);
|
||||
bool finishOrder(QString *error);
|
||||
bool finalizeRun(bool completed, bool finishOrder, QString *error);
|
||||
bool finalizeRun(bool completed, bool finishOrder, QString *error, bool resetting = false);
|
||||
void finishReset(bool success, const QString &error);
|
||||
void clearResetState();
|
||||
void tickSimulation();
|
||||
void tickProduction();
|
||||
bool processProductionStep(State state, QString *error);
|
||||
@@ -223,6 +231,11 @@ private:
|
||||
State m_state;
|
||||
bool m_initialized = false;
|
||||
bool m_terminationRequired = false;
|
||||
bool m_resetInProgress = false;
|
||||
bool m_resetRequired = false;
|
||||
bool m_alarmOperationBusy = false;
|
||||
bool m_destroying = false;
|
||||
QJsonObject m_resetContext;
|
||||
State m_timeoutState;
|
||||
int m_runId;
|
||||
int m_orderId;
|
||||
|
||||
Reference in New Issue
Block a user