feat: 交接查询可查询子批次号
This commit is contained in:
parent
ced7515d80
commit
5cab0d018b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue