Dockerfile 部署
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user