fix: mlogsubmit bug

This commit is contained in:
caoqianming 2023-12-16 11:46:57 +08:00
parent bd6b4a5f82
commit 4f1ae6ddc6
1 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ class MlogViewSet(CustomModelViewSet):
@action(methods=['post'], detail=True, perms_map={'post': 'mlog.submit'}, serializer_class=Serializer)
@transaction.atomic
def submit(self, request):
def submit(self, request, *args, **kwargs):
"""日志提交(变动车间库存)
日志提交
@ -176,7 +176,7 @@ class MlogViewSet(CustomModelViewSet):
@action(methods=['post'], detail=False, perms_map={'post': '*'}, serializer_class=MlogRelatedSerializer)
@transaction.atomic
def related_first(self, request):
def related_first(self, request, *args, **kwargs):
"""获取相关任务的第一道工序日志
获取相关任务的第一道工序日志