feat(dispatch): 작업 2단계로 축소 + J&T 조회 URL 수정 + Order ID 확대

- 택배스캔 단계 제거 → 라벨부착 / Kagayaku 전달 2단계
- 버튼 라벨에서 '완료' 제거(라벨부착 / Kagayaku 전달)
- 완료 판정/배치목록 완료수를 label_attached AND handed_to_kagayaku 기준으로
- J&T 송장 조회 딥링크를 gzquery.html?bills= 로 교체(billcode 미입력 문제)
- Order ID 27px 로 확대, 송장 링크 밑줄 강조(굵기/오프셋)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-19 19:09:16 +09:00
parent 1c14c748dd
commit 4a07ef139d
4 changed files with 17 additions and 17 deletions
+5 -3
View File
@@ -126,8 +126,10 @@ class DispatchStore:
rows = conn.execute(
"""
SELECT b.*,
COUNT(p.id) AS parcel_count,
COUNT(p.id) FILTER (WHERE p.courier_scanned) AS scanned_count
COUNT(p.id) AS parcel_count,
COUNT(p.id) FILTER (
WHERE p.label_attached AND p.handed_to_kagayaku
) AS done_count
FROM dispatch_batches b
LEFT JOIN dispatch_parcels p ON p.batch_id = b.id
GROUP BY b.id
@@ -301,7 +303,7 @@ class DispatchStore:
elif isinstance(v, date):
out[k] = v.isoformat()
for k in ("id", "batch_id", "parcel_id", "seq", "quantity",
"parcel_count", "scanned_count", "total_qty", "box_count"):
"parcel_count", "done_count", "total_qty", "box_count"):
if k in out and out[k] is not None:
try:
out[k] = int(out[k])