feat(dispatch): 검색 결과 가독성 — 송장 조회 링크·택배사 배지·줄분리

- api_search: 결과에 courier_tracking_url 주입(송장 클릭 시 조회 페이지)
- batches.html: Order/Pkg/송장 한 줄씩, 글자 확대, 송장번호·날짜·쇼핑몰
  굵게, 송장 오른쪽 배송사 배지, 송장번호 클릭 → 배송사 조회 새 탭

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-26 17:17:04 +09:00
parent 718b5e6d8f
commit 77ce86f5ed
2 changed files with 49 additions and 16 deletions
+7 -1
View File
@@ -726,7 +726,13 @@ async def api_search(
query = (q or "").strip()
if len(query) < 2:
return JSONResponse({"query": query, "results": []})
return JSONResponse({"query": query, "results": st.search_parcels(query=query)})
results = st.search_parcels(query=query)
# 송장 조회 딥링크는 배송사 맵(store)에서 만든다 — 프런트엔 맵이 없다.
for r in results:
r["tracking_url"] = store.courier_tracking_url(
r.get("tracking_id", ""), r.get("shipping_provider", "")
)
return JSONResponse({"query": query, "results": results})
@router.get("/health")