changes
This commit is contained in:
@@ -208,8 +208,17 @@ class FpShopfloorController(http.Controller):
|
||||
'name': step.name,
|
||||
'state': step.state,
|
||||
'duration_actual': step.duration_actual,
|
||||
'duration_expected': step.duration_expected,
|
||||
'job_name': step.job_id.name or '',
|
||||
'product_name': step.job_id.product_id.display_name or '',
|
||||
# Recipe-author instructions surfaced to the operator on
|
||||
# scan. Without this the operator never sees bake
|
||||
# setpoints, masking patterns, dwell times, etc.
|
||||
'instructions': step.instructions or '',
|
||||
'thickness_target': step.thickness_target or 0,
|
||||
'thickness_uom': step.thickness_uom or '',
|
||||
'dwell_time_minutes': step.dwell_time_minutes or 0,
|
||||
'bake_setpoint_temp': step.bake_setpoint_temp or 0,
|
||||
}
|
||||
|
||||
# FP-QC:<ref> → directly into the mobile checklist screen
|
||||
@@ -1083,6 +1092,15 @@ class FpShopfloorController(http.Controller):
|
||||
'duration_display': _dur_disp(step.duration_actual or 0),
|
||||
'duration_expected_display': _dur_disp(step.duration_expected or 0),
|
||||
'missing_for_release': '',
|
||||
# Operator-facing recipe guidance — without this the
|
||||
# tablet UI has no way to surface bake setpoints,
|
||||
# masking patterns, dwell times, etc.
|
||||
'instructions': step.instructions or '',
|
||||
'thickness_target': step.thickness_target or 0,
|
||||
'thickness_uom': step.thickness_uom or '',
|
||||
'dwell_time_minutes': step.dwell_time_minutes or 0,
|
||||
'bake_setpoint_temp': step.bake_setpoint_temp or 0,
|
||||
'requires_signoff': bool(step.requires_signoff),
|
||||
}
|
||||
|
||||
attached_step_ids = set()
|
||||
|
||||
Reference in New Issue
Block a user