feat: support off-shelf location registration

This commit is contained in:
Misaka_Company
2026-05-13 12:43:17 +08:00
parent 905988bed8
commit afc540005c
6 changed files with 123 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ router = APIRouter()
"model": ErrorResponse,
},
409: {
"description": "该总排号已存在货位记录",
"description": "重复上架或已下架",
"model": ErrorResponse,
},
},
@@ -29,4 +29,5 @@ def create_location(req: LocationRequest, db: Session = Depends(get_db)):
zongpai_no=record.zongpai_no,
location_code=record.location_code,
created_at=record.created_at.isoformat(),
previous_location=getattr(record, "previous_location", None),
)