fix: 分配任务的get_routes 参数bug
This commit is contained in:
parent
ce38115255
commit
40370b876f
|
@ -171,9 +171,10 @@ class PmService:
|
||||||
gjson_item = utask.routepack.get_gjson(final_material_id=product.id)
|
gjson_item = utask.routepack.get_gjson(final_material_id=product.id)
|
||||||
if not gjson_item:
|
if not gjson_item:
|
||||||
raise ParseError("缺少该产品的生产子图")
|
raise ParseError("缺少该产品的生产子图")
|
||||||
rqs = Route.get_routes(gjson_item["routes"])
|
rqs = Route.get_routes(routeIds=gjson_item["routes"])
|
||||||
else:
|
else:
|
||||||
rqs = Route.get_routes(material=product)
|
rqs = Route.get_routes(material=product)
|
||||||
|
|
||||||
if not rqs.exists():
|
if not rqs.exists():
|
||||||
raise ParseError('未配置工艺路线')
|
raise ParseError('未配置工艺路线')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue