fix: 通过指定mat_in/mat_out复制工艺路线 bug2
This commit is contained in:
parent
885d932fc8
commit
9f0a9fc699
|
@ -245,7 +245,7 @@ class RoutePackViewSet(CustomModelViewSet):
|
||||||
user = request.user
|
user = request.user
|
||||||
now = timezone.now()
|
now = timezone.now()
|
||||||
new_name = vdata["new_name"]
|
new_name = vdata["new_name"]
|
||||||
rp = RoutePack.objects.get(id=vdata["id"])
|
rp = RoutePack.objects.get(id=vdata["routepack"])
|
||||||
matin = Material.objects.get(id=vdata["material_in"])
|
matin = Material.objects.get(id=vdata["material_in"])
|
||||||
matout = Material.objects.get(id=vdata["material_out"])
|
matout = Material.objects.get(id=vdata["material_out"])
|
||||||
obj_c = RoutePack()
|
obj_c = RoutePack()
|
||||||
|
|
Loading…
Reference in New Issue