feat: miodo 所属部门可不编辑

This commit is contained in:
caoqianming 2025-03-13 09:56:15 +08:00
parent c0ffb175a9
commit 71b67b7210
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ class MIODoSerializer(CustomModelSerializer):
fields = ['id', 'number', 'note', 'do_user',
'belong_dept', 'type', 'inout_date', 'mgroup', 'mio_user']
extra_kwargs = {'inout_date': {'required': True},
'do_user': {'required': True}}
'do_user': {'required': True}, 'belong_dept': {'required': False}}
read_only_fields = ["number"]
def validate(self, attrs):