fix: 批次号追加设备编号

This commit is contained in:
caoqianming 2024-07-31 14:30:53 +08:00
parent 9ad0cf6498
commit bea83f93d5
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ class MlogbInViewSet(CreateModelMixin, UpdateModelMixin, DestroyModelMixin, Cust
new_batch = ins.batch
number = mlog.equipment.number if mlog.equipment else ''
if number:
new_batch = f'{number}{new_batch}'
new_batch = f'{new_batch}{number}'
m_dict['batch'] = new_batch
Mlogb.objects.get_or_create(**m_dict, defaults=m_dict)