diff --git a/crates/erp-plugin-crm/plugin.toml b/crates/erp-plugin-crm/plugin.toml index feff35a..e5813d5 100644 --- a/crates/erp-plugin-crm/plugin.toml +++ b/crates/erp-plugin-crm/plugin.toml @@ -12,11 +12,13 @@ min_platform_version = "0.1.0" code = "customer.list" name = "查看客户" description = "查看客户列表和详情" +data_scope_levels = ["self", "department", "department_tree", "all"] [[permissions]] code = "customer.manage" name = "管理客户" description = "创建、编辑、删除客户" +data_scope_levels = ["self", "department", "department_tree", "all"] [[permissions]] code = "contact.list" @@ -51,6 +53,7 @@ name = "管理客户关系" [[schema.entities]] name = "customer" display_name = "客户" +data_scope = true [[schema.entities.fields]] name = "code" @@ -163,6 +166,12 @@ display_name = "客户" display_name = "备注" ui_widget = "textarea" + [[schema.entities.fields]] + name = "owner_id" + field_type = "uuid" + display_name = "负责人" + scope_role = "owner" + [[schema.entities]] name = "contact" display_name = "联系人"