feat(box): include work order numbers in box info

This commit is contained in:
Misaka_Company
2026-05-13 09:48:08 +08:00
parent 25982b12bf
commit 7fe1fe7ef5
3 changed files with 51 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ ZONGPAI_PATTERN = re.compile(r"^(\d{2}(B|C|T)\d+|\d{2}(BW|CW)\d{4})$")
class BoxItemDetail(BaseModel):
"""箱号下某个总排号的明细"""
zongpai_no: str
work_order_no: str | None = None
quantity: int
@@ -21,6 +22,7 @@ class BoxInfoResponse(BaseModel):
"""GET /box/info 响应"""
zongpai_no: str
paichan_no: str
work_order_no: str | None = None
quantity: int
existing_boxes: list[BoxDetail]
max_box_no: int