feat: get_from_mb 返回更多信息

This commit is contained in:
caoqianming 2024-10-11 15:54:19 +08:00
parent 0157daa0ab
commit ebf3bbe257
1 changed files with 3 additions and 1 deletions

View File

@ -34,4 +34,6 @@ class LableMatViewSet(CustomListModelMixin, RetrieveModelMixin, CustomGenericVie
"supplier": mb.supplier "supplier": mb.supplier
} }
) )
return Response({"label": f"mat:{obj.id}"}) rdata = LabelMatSerializer(obj).data
rdata["code_label"] = f"mat:{obj.id}"
return Response(rdata)