feat: 报废交接时固定recive
This commit is contained in:
parent
2b9ec6d01c
commit
308fa4c7ad
|
|
@ -20,7 +20,6 @@ from django.utils.timezone import localdate
|
|||
from apps.qm.models import NotOkOption
|
||||
from apps.wf.serializers import TicketSimpleSerializer
|
||||
|
||||
|
||||
class OtherLogSerializer(CustomModelSerializer):
|
||||
class Meta:
|
||||
model = OtherLog
|
||||
|
|
@ -602,6 +601,10 @@ class HandoverSerializer(CustomModelSerializer):
|
|||
raise ParseError(f'第{ind+1}物料不合格,不能进行正常/检验交接')
|
||||
if wm.count_xtest is not None:
|
||||
raise ParseError(f'第{ind+1}物料检验中,不能进行交接')
|
||||
if attrs['type'] == Handover.H_SCRAP:
|
||||
attrs['recive_mgroup'] = attrs['send_mgroup']
|
||||
attrs['recive_dept'] = attrs['send_dept']
|
||||
attrs['recive_user'] = attrs['send_user']
|
||||
return attrs
|
||||
|
||||
class Meta:
|
||||
|
|
|
|||
Loading…
Reference in New Issue