feat(borrow,outbound): 库管(WAREHOUSE_MGR)代建申请强制审批

- submit/create 新增 force_approval:库管建单无视物料是否需审批,一律走审批
- 路由按当前角色为 WAREHOUSE_MGR 传 true;未选审批人返回明确业务错误
This commit is contained in:
yueli
2026-09-09 16:19:38 +08:00
parent cd600f9fc2
commit 044e6dbd98
4 changed files with 16 additions and 6 deletions

View File

@ -427,7 +427,8 @@ def create_outbound_request():
allowed_approvers=allowed_approvers,
remark=data.get('remark'),
approver_id=approver_id,
outbound_type=data.get('outbound_type') # 出库类型(申请时确定)
outbound_type=data.get('outbound_type'), # 出库类型(申请时确定)
force_approval=((user_role or '').upper() == 'WAREHOUSE_MGR') # 库管代建 → 强制审批
)
return jsonify({