!695 feat: 客户表的 crud

Merge pull request !695 from wanwan/feature/crm
This commit is contained in:
芋道源码
2023-10-27 14:41:38 +00:00
committed by Gitee
22 changed files with 1010 additions and 11 deletions

View File

@ -360,3 +360,63 @@ VALUES (
'回款计划导出', 'crm:receivable-plan:export', 3, 5, @parentId,
'', '', '', 0
);
-- ----------------------------
-- 客户管理菜单
-- ----------------------------
-- 菜单 SQL
INSERT INTO system_menu(
name, permission, type, sort, parent_id,
path, icon, component, status, component_name
)
VALUES (
'客户管理', '', 2, 0, 2375,
'customer', '', 'crm/customer/index', 0, 'CrmCustomer'
);
-- 按钮父菜单ID
-- 暂时只支持 MySQL如果你是 OraclePostgreSQLSQLServer 的话需要手动修改 @parentId 的部分的代码
SELECT @parentId := LAST_INSERT_ID();
-- 按钮 SQL
INSERT INTO system_menu(
name, permission, type, sort, parent_id,
path, icon, component, status
)
VALUES (
'客户查询', 'crm:customer:query', 3, 1, @parentId,
'', '', '', 0
);
INSERT INTO system_menu(
name, permission, type, sort, parent_id,
path, icon, component, status
)
VALUES (
'客户创建', 'crm:customer:create', 3, 2, @parentId,
'', '', '', 0
);
INSERT INTO system_menu(
name, permission, type, sort, parent_id,
path, icon, component, status
)
VALUES (
'客户更新', 'crm:customer:update', 3, 3, @parentId,
'', '', '', 0
);
INSERT INTO system_menu(
name, permission, type, sort, parent_id,
path, icon, component, status
)
VALUES (
'客户删除', 'crm:customer:delete', 3, 4, @parentId,
'', '', '', 0
);
INSERT INTO system_menu(
name, permission, type, sort, parent_id,
path, icon, component, status
)
VALUES (
'客户导出', 'crm:customer:export', 3, 5, @parentId,
'', '', '', 0
);