feat: 交接查询可查询子批次号

This commit is contained in:
caoqianming 2025-04-21 16:27:31 +08:00
parent ced7515d80
commit 5cab0d018b
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ class HandoverViewSet(CustomModelViewSet):
select_related_fields = ['send_user', 'send_mgroup', 'send_dept', 'recive_user', 'recive_mgroup', 'recive_dept', 'wm'] select_related_fields = ['send_user', 'send_mgroup', 'send_dept', 'recive_user', 'recive_mgroup', 'recive_dept', 'wm']
filterset_class = HandoverFilter filterset_class = HandoverFilter
search_fields = ['id', 'material__name', search_fields = ['id', 'material__name',
'material__number', 'material__specification', 'batch', 'material__model'] 'material__number', 'material__specification', 'batch', 'material__model', 'b_handover__batch', "new_batch"]
def perform_destroy(self, instance): def perform_destroy(self, instance):
user = self.request.user user = self.request.user