feat(shipping-notice): 新增发货通知重复检测与处理接口,支持重复决策保存与重新执行检测

This commit is contained in:
hugo committed 2026-07-14 21:12:36 +08:00
1 parent 729546a7b7
commit ceb49461e8
72 files changed
+14270 -460

No files matched your search

+2
View File
@@ -89,6 +89,8 @@ class User(Base):
"""返回当前角色自带的功能权限默认值。"""
return {
'training_hr_manage': self.role in {'admin', 'hr'},
# 发货通知强制新建重复单据:admin 默认开;其他角色默认关,可显式授予
'shipping_notice_force_create': self.role == 'admin',
}
def get_feature_permissions(self) -> dict[str, bool]: