Dockerfile 部署

This commit is contained in:
hjq
2026-06-22 14:34:23 +08:00
parent 2b461c2aea
commit e751d53362
4 changed files with 299 additions and 73 deletions

View File

@@ -375,15 +375,11 @@ def get_bom_reconciliation():
try:
start_date = request.args.get('start')
end_date = request.args.get('end')
match_type = request.args.get('match_type', 'official')
sys.path.insert(0, str(BROWSER_LOGIN_DIR))
from analysis_service import MaterialReconciliationService
service = MaterialReconciliationService()
data = service.step3_bom_reconciliation(start_date, end_date)
# 支持前端筛选
status_filter = request.args.get('status', '')
if status_filter:
data = [r for r in data if r['status'] == status_filter]
data = service.step3_bom_reconciliation(start_date, end_date, match_type)
return jsonify({"total": len(data), "rows": data})
except Exception as e: