diff --git a/inventory-backend/app/services/inbound/repair_service.py b/inventory-backend/app/services/inbound/repair_service.py index 47ce4a3..7b57f4b 100644 --- a/inventory-backend/app/services/inbound/repair_service.py +++ b/inventory-backend/app/services/inbound/repair_service.py @@ -205,6 +205,10 @@ class RepairInboundService: """ 专门用于更新维修状态和追加维修日志 """ + # 禁止手动变更为已出库状态,必须通过扫码出库模块进行 + if status == '已出库': + raise ValueError("禁止手动变更为已出库状态,请通过扫码出库模块进行操作") + repair = TransRepair.query.get(id) if not repair: return None diff --git a/inventory-web/src/views/stock/inbound/repair.vue b/inventory-web/src/views/stock/inbound/repair.vue index 16ea6fa..2c5b48b 100644 --- a/inventory-web/src/views/stock/inbound/repair.vue +++ b/inventory-web/src/views/stock/inbound/repair.vue @@ -187,7 +187,6 @@ -