feat(borrow,outbound): 默认免审批改造——命中物料需审批才走原流程

- models/base.py 加 is_approval_required 列及 isApprovalRequired 序列化;field_permissions 登记
- 新增 POST /inbound/base/batch-approval(批量设需审批,仿批量质检)
- borrow_service.submit_approval / outbound_service.create_request:明细含需审批物料→须选审批人走原审批;否则创建即 status=1(待库管执行)、不发审批邮件
- 判定按 (name,spec_model) 反查启用物料
This commit is contained in:
yueli
2026-09-09 09:31:18 +08:00
parent e03c035ee0
commit 4cd3eefdf4
5 changed files with 164 additions and 25 deletions

View File

@ -14,6 +14,7 @@ STOCK_FIELD_RBAC_MAPPING = {
"category": "material_list:category", "type": "material_list:type",
"spec": "material_list:spec", "unit": "material_list:unit",
"companyName": "material_list:companyName", "isInspectionRequired": "material_list:isInspectionRequired",
"isApprovalRequired": "material_list:operation",
"generalImage": "material_list:files", "generalManual": "material_list:files",
"productImageRemark": "material_list:productImageRemark",
"manualLinkRemark": "material_list:manualLinkRemark",