This commit is contained in:
TianyangZhang 2025-11-03 15:52:29 +08:00
commit b9f9527ff2
1 changed files with 5 additions and 4 deletions

View File

@ -949,6 +949,7 @@ class MlogbInViewSet(BulkCreateModelMixin, BulkUpdateModelMixin, BulkDestroyMode
c_year2 = str(c_year)[-2:]
c_month = handle_date.month
m_model = material_out.model
if 'm_model' in rule:
if m_model is None:
raise ParseError("生成编号出错:产品型号不能为空")
elif m_model and m_model.islower():