refactor(cupang): 입고센터 이름 수정 기능 제거

이름을 바꾸면 그 센터를 쓰던 기존 출고 건과 어긋날 수 있어 수정 경로를
막는다. 잘못 등록한 센터는 삭제 후 새로 등록.

- 목록 행: 이름 input+저장 버튼 → 읽기 전용 텍스트
- center_edit 라우터에서 name 폼 파라미터 제거(활성/정렬만 수정)
- 행이 좁아져 그리드 최소폭 340px → 240px

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-31 12:02:57 +09:00
parent 026a9ab526
commit 7b358b0189
9 changed files with 28 additions and 26 deletions
+1 -3
View File
@@ -453,7 +453,6 @@ async def center_create(
async def center_edit(
request: Request,
center_id: int,
name: str = Form(""),
active: str = Form(""),
sort_order: str = Form(""),
user: dict[str, Any] = Depends(_require_user),
@@ -461,9 +460,8 @@ async def center_edit(
store = _store(request)
if store is None:
raise HTTPException(status_code=503, detail="cupang_db 미설정")
# 이름 변경은 지원하지 않는다(기존 출고 이력과 어긋날 수 있음). 활성/정렬만 수정.
kwargs: dict[str, Any] = {"center_id": center_id}
if name.strip():
kwargs["name"] = name
if active != "":
kwargs["active"] = active in ("1", "true", "on", "True")
if sort_order.strip():