1.新增检测报告链接地址字段

2.优化rfid码扫描
3.优化工单页面
This commit is contained in:
jinling.yang
2024-02-23 10:17:20 +08:00
parent 01c4e13198
commit ad0b9983bf
3 changed files with 27 additions and 16 deletions

View File

@@ -325,6 +325,7 @@ class Manufacturing_Connect(http.Controller):
workpiece_delivery = request.env['sf.workpiece.delivery'].sudo().search(
[('feeder_station_destination', '=', ret['DeviceId'])])
if workpiece_delivery:
logging.info('workpiece_delivery.production_id:%s' % workpiece_delivery.production_id.id)
workpiece_delivery.production_id.write({'production_line_state': '已上产线'})
else:
res = {'Succeed': False, 'ErrorCode': 203, 'Error': '该DeviceId没有对应的工件配送数据'}
@@ -354,6 +355,7 @@ class Manufacturing_Connect(http.Controller):
workpiece_delivery = request.env['sf.workpiece.delivery'].sudo().search(
[('feeder_station_destination', '=', ret['DeviceId'])])
if workpiece_delivery:
logging.info('workpiece_delivery.production_id:%s' % workpiece_delivery.production_id.id)
workpiece_delivery.production_id.write({'production_line_state': '已下产线'})
else:
res = {'Succeed': False, 'ErrorCode': 203, 'Error': '该DeviceId没有对应的工件配送数据'}