Merge branch 'develop' of https://e.coding.net/jikimo-hn/jikimo_sfs/jikimo_sf into develop
This commit is contained in:
@@ -667,7 +667,7 @@ class Manufacturing_Connect(http.Controller):
|
|||||||
logging.info('AGVDownProduct error:%s' % e)
|
logging.info('AGVDownProduct error:%s' % e)
|
||||||
return json.JSONEncoder().encode(res)
|
return json.JSONEncoder().encode(res)
|
||||||
|
|
||||||
@http.route('/AutoDeviceApi/GetAgvStationState', type='json', auth='none', methods=['GET', 'POST'], csrf=False,
|
@http.route('/AutoDeviceApi/AgvStationState', type='json', auth='none', methods=['GET', 'POST'], csrf=False,
|
||||||
cors="*")
|
cors="*")
|
||||||
def AGVStationState(self, **kw):
|
def AGVStationState(self, **kw):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ class AgvScheduling(models.Model):
|
|||||||
if rec.state != '待下发':
|
if rec.state != '待下发':
|
||||||
return False
|
return False
|
||||||
_logger.info('AGV任务调度:下发调度任务,路线为%s' % agv_task_route)
|
_logger.info('AGV任务调度:下发调度任务,路线为%s' % agv_task_route)
|
||||||
# rec._delivery_avg()
|
rec._delivery_avg()
|
||||||
rec.state = '配送中'
|
rec.state = '配送中'
|
||||||
rec.task_delivery_time = fields.Datetime.now()
|
rec.task_delivery_time = fields.Datetime.now()
|
||||||
rec.site_state = '空闲'
|
rec.site_state = '空闲'
|
||||||
|
|||||||
Reference in New Issue
Block a user