Merge branch 'feature/制造订单状态优化_1' into feature/坯料制造序号优化

This commit is contained in:
yuxianghui
2024-11-28 17:51:22 +08:00

View File

@@ -424,6 +424,8 @@ class ProductionLot(models.Model):
"""Generate `lot_names` from a string."""
if first_lot.__contains__(display_name):
first_lot = first_lot[(len(display_name) + 1):]
else:
first_lot = first_lot[-3:]
# We look if the first lot contains at least one digit.
caught_initial_number = regex_findall(r"\d+", first_lot)