优化工件配送
This commit is contained in:
@@ -446,9 +446,6 @@ class Manufacturing_Connect(http.Controller):
|
||||
if next_workpiece:
|
||||
logging.info('next_workpiece:%s' % next_workpiece.delivery_num)
|
||||
next_workpiece.write({'status': '待下发'})
|
||||
|
||||
|
||||
|
||||
else:
|
||||
res = {'Succeed': False, 'ErrorCode': 203, 'Error': '该DeviceId没有对应的已配送工件数据'}
|
||||
else:
|
||||
@@ -507,7 +504,7 @@ class Manufacturing_Connect(http.Controller):
|
||||
if delivery_workpiece:
|
||||
logging.info('开始向agv下发下产线任务')
|
||||
delivery_workpiece._delivery_avg()
|
||||
logging.info('agv下发下产线任务已配送')
|
||||
logging.info('agv下发下产线任务下发完成')
|
||||
except Exception as e:
|
||||
res = {'Succeed': False, 'ErrorCode': 202, 'Error': e}
|
||||
logging.info('AGVDownProduct error:%s' % e)
|
||||
|
||||
Reference in New Issue
Block a user