feat: restructure basic info menu, add kitting monitor table, and implement user preferences api

This commit is contained in:
DXC
2026-03-24 09:29:20 +08:00
parent 706d7e551c
commit b5610de1f1
9 changed files with 775 additions and 457 deletions

View File

@ -375,11 +375,11 @@ def calculate_kitting():
if not entries or not isinstance(entries, list):
return jsonify({'code': 400, 'msg': '参数格式错误,需要数组'}), 400
results = BomService.calculate_kitting(entries)
result = BomService.calculate_kitting(entries)
return jsonify({
'code': 200,
'msg': '计算成功',
'data': results
'data': result
})
except Exception as e:
current_app.logger.error(f'MRP齐套计算失败: {str(e)}')