This commit is contained in:
zlwu committed 2026-05-22 16:25:04 +08:00
1 parent 53d3b21f57
commit 1f5de9030e
54 files changed
+10954 -4322

No files matched your search

+14
View File
@@ -1368,6 +1368,20 @@ async def update_production_task(
return error_response(400, str(e))
@router.delete("/production-tasks/{task_id}")
async def delete_production_task(
task_id: str,
user: dict = Depends(require_admin_or_super_admin),
db: Session = Depends(get_db),
):
try:
tenant_no = _get_tenant_no(db, user)
production_task_svc.delete_production_task(db, task_id, tenant_no, user.get("user_id"))
return success_response(None, message="删除成功")
except ValueError as e:
return error_response(400, str(e))
@router.put("/production-tasks/{task_id}/status")
async def update_production_task_status(
task_id: str,