feat: handover 报废处理

This commit is contained in:
caoqianming 2024-09-06 09:31:00 +08:00
parent fbaf4b5767
commit ee89b0bded
1 changed files with 0 additions and 4 deletions

View File

@ -646,10 +646,6 @@ class HandoverSerializer(CustomModelSerializer):
if wm.count_xtest is not None:
raise ParseError(f'{ind+1}物料检验中,不能进行交接')
attrs["count"] = t_count
if attrs['type'] == Handover.H_SCRAP:
attrs['recive_mgroup'] = attrs['send_mgroup']
attrs['recive_dept'] = attrs['send_dept']
attrs['recive_user'] = attrs['send_user']
if attrs['type'] == Handover.H_REPAIR:
recive_mgroup = attrs.get("recive_mgroup", None)
if recive_mgroup is None: