针对于条形码生成进行修改

This commit is contained in:
dxc
2026-02-02 16:43:35 +08:00
parent cf6a4a8957
commit 11a4e5f48a
4 changed files with 364 additions and 134 deletions

View File

@ -79,7 +79,7 @@ class BuyInboundService:
# ------------------------------------------------------------------
# 2. 自动生成 SKU (格式: 00000001)
# ------------------------------------------------------------------
generated_sku = f"{next_global_id:08d}"
generated_sku = str(next_global_id).zfill(10)
# ------------------------------------------------------------------
# 3. 条码逻辑处理 (核心修改)