feat: 去除handover send强校验
This commit is contained in:
parent
89d9a987f4
commit
cb36aac9ca
|
@ -671,8 +671,10 @@ class HandoverSerializer(CustomModelSerializer):
|
|||
for ind, item in enumerate(attrs['handoverb']):
|
||||
wm = item["wm"]
|
||||
t_count += item["count"]
|
||||
if wm.mgroup != attrs['send_mgroup']:
|
||||
raise ParseError(f'第{ind+1}物料与交接工段不一致')
|
||||
# if wm.mgroup and wm.mgroup != attrs['send_mgroup']:
|
||||
# raise ParseError(f'第{ind+1}物料与交接工段不一致')
|
||||
# if wm.belong_dept and wm.belong_dept != attrs['send_dept']:
|
||||
# raise ParseError(f'第{ind+1}物料与交接部门不一致')
|
||||
if attrs["material"] != wm.material:
|
||||
raise ParseError(f'第{ind+1}物料与交接物料不一致')
|
||||
if wm.notok_sign is not None and attrs['type'] in [Handover.H_NORMAL, Handover.H_TEST]:
|
||||
|
|
Loading…
Reference in New Issue