feat(fulfillment): 区分普通代确认与人工强制确认
- 普通代确认走 refresh_binding + actBind,不填角色/备注 - 强制确认保留角色+依据,并校验账号当前角色一致 - 前端拆成“代客户确认”和红色“强制确认” - 补充普通代确认/角色不匹配回归测试与文档
This commit is contained in:
@@ -465,6 +465,29 @@ async def confirm_binding(
|
||||
return result
|
||||
|
||||
|
||||
@router.post("/tasks/{task_id}/bind/operator-confirm")
|
||||
def operator_confirm_binding(
|
||||
task_id: int,
|
||||
db: Session = Depends(get_db),
|
||||
current: User = Depends(require_permission("platform_fulfillment:use")),
|
||||
) -> dict[str, Any]:
|
||||
"""普通人工代确认:客户已扫码但没点确认,运营代为提交正常 actBind。"""
|
||||
result = service.operator_confirm_binding_sync(
|
||||
db,
|
||||
task_id=task_id,
|
||||
current=current,
|
||||
)
|
||||
record_audit(
|
||||
db,
|
||||
current,
|
||||
action="platform_fulfillment:binding:operator_confirm",
|
||||
target=f"platform_fulfillment_task:{task_id}",
|
||||
detail={"bindingStatus": result.get("task", {}).get("bindingStatus")},
|
||||
)
|
||||
db.commit()
|
||||
return result
|
||||
|
||||
|
||||
@router.post("/tasks/{task_id}/bind/manual-confirm")
|
||||
def manual_confirm_binding(
|
||||
task_id: int,
|
||||
|
||||
Reference in New Issue
Block a user