feat(scrap): integrate repair items into physical scrap scanning flow and lock manual status

This commit is contained in:
DXC
2026-04-09 09:53:20 +08:00
parent d3a143288b
commit 454f9b1184
3 changed files with 52 additions and 2 deletions

View File

@ -209,6 +209,10 @@ class RepairInboundService:
if status == '已出库':
raise ValueError("禁止手动变更为已出库状态,请通过扫码出库模块进行操作")
# 禁止手动变更为报废转出状态,必须通过扫码报废模块进行
if status == '报废转出':
raise ValueError("禁止手动变更为报废状态,请前往报废管理进行扫码操作")
repair = TransRepair.query.get(id)
if not repair:
return None