简单版本CRM 客户管理系统设计

Posted 在奋斗的大道

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了简单版本CRM 客户管理系统设计相关的知识,希望对你有一定的参考价值。

思维导图:

 数据库设计

表结构设计+初始化设计 

DROP TABLE IF EXISTS `connect_info`;
CREATE TABLE `connect_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '联系编号',
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户编号',
  `customer_id` bigint(20) NULL DEFAULT NULL COMMENT '客户编号',
  `create_dt` datetime(0) NULL DEFAULT NULL COMMENT '联系时间',
  `context` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '内容',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `user_id`(`user_id`) USING BTREE,
  INDEX `customer_id`(`customer_id`) USING BTREE,
  CONSTRAINT `connect_info_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user_info` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `connect_info_ibfk_2` FOREIGN KEY (`customer_id`) REFERENCES `customer_info` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of connect_info
-- ----------------------------
INSERT INTO `connect_info` VALUES (1, 1, 1, '2020-01-10 08:00:00', '内容1');
INSERT INTO `connect_info` VALUES (2, 3, 2, '1998-09-03 08:00:00', '内容2');
INSERT INTO `connect_info` VALUES (3, 4, 3, '2021-09-03 08:00:00', '内容3');

DROP TABLE IF EXISTS `customer_info`;
CREATE TABLE `customer_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '客户编号',
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户编号',
  `level_id` bigint(20) NULL DEFAULT NULL COMMENT '级别编号',
  `state_id` bigint(20) NULL DEFAULT NULL COMMENT '状态编号',
  `name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户姓名',
  `gender` int(11) NULL DEFAULT NULL COMMENT '客户性别:1=男,2=女',
  `telphone` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户电话号码',
  `qq` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户QQ',
  `address` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户地址',
  `note` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户备注',
  `mark` int(11) NULL DEFAULT NULL COMMENT '客户标记',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `customer_info_ibfk_1`(`user_id`) USING BTREE,
  INDEX `level_id`(`level_id`) USING BTREE,
  INDEX `state_id`(`state_id`) USING BTREE,
  CONSTRAINT `customer_info_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user_info` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `customer_info_ibfk_2` FOREIGN KEY (`level_id`) REFERENCES `level_info` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `customer_info_ibfk_3` FOREIGN KEY (`state_id`) REFERENCES `state_info` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of customer_info
-- ----------------------------
INSERT INTO `customer_info` VALUES (1, 1, 1, 11, '张三', 1, '18819967811', '56473811', '广东.韶关', '无', 1);
INSERT INTO `customer_info` VALUES (2, 3, 1, 1, '李思思', 2, '18619967811', '58473811', '广东.东莞', '无', 1);
INSERT INTO `customer_info` VALUES (3, 3, 1, 1, '给狗蛋', 1, '13619967811', '110938', '广东.广州', '无', 1);

DROP TABLE IF EXISTS `level_info`;
CREATE TABLE `level_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '级别编号',
  `name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '级别名称',
  `introduction` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '级别描述',
  `mark` int(10) NULL DEFAULT NULL COMMENT '级别标记',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of level_info
-- ----------------------------
INSERT INTO `level_info` VALUES (1, 'A级', '90-100', 1);
INSERT INTO `level_info` VALUES (2, 'B级', '80-90', 1);
INSERT INTO `level_info` VALUES (3, 'C级', '70-80', 1);
INSERT INTO `level_info` VALUES (4, 'D级', '60-70', 1);
INSERT INTO `level_info` VALUES (5, 'E级', '50-60', 1);

DROP TABLE IF EXISTS `state_info`;
CREATE TABLE `state_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '状态编号',
  `name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '状态名称',
  `introduction` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '状态描述',
  `mark` int(10) NULL DEFAULT NULL COMMENT '状态标记',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of state_info
-- ----------------------------
INSERT INTO `state_info` VALUES (1, '停滞', '停滞', 1);
INSERT INTO `state_info` VALUES (2, '暂缓', '暂缓', 1);
INSERT INTO `state_info` VALUES (3, '已签约', '已签约', 1);
INSERT INTO `state_info` VALUES (4, '电话邀约', '电话邀约', 1);
INSERT INTO `state_info` VALUES (5, '客户拜访', '客户拜访', 1);
INSERT INTO `state_info` VALUES (6, '初步方案', '初步方案', 1);
INSERT INTO `state_info` VALUES (7, '技术交流', '技术交流', 1);
INSERT INTO `state_info` VALUES (8, '正式方案', '正式方案', 1);
INSERT INTO `state_info` VALUES (9, '项目评估', '项目评估', 1);
INSERT INTO `state_info` VALUES (10, '商务谈判', '商务谈判', 1);
INSERT INTO `state_info` VALUES (11, '签约成功', '签约成功', 1);

DROP TABLE IF EXISTS `user_info`;
CREATE TABLE `user_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户编号',
  `name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户姓名',
  `gender` int(11) NULL DEFAULT NULL COMMENT '用户性别: 1=男,2=女',
  `age` int(11) NULL DEFAULT NULL COMMENT '用户年龄',
  `account` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '账户',
  `passwd` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '密码',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of user_info
-- ----------------------------
INSERT INTO `user_info` VALUES (1, '周志刚', 1, 30, 'zzg', '123456789');
INSERT INTO `user_info` VALUES (3, '周晨曦', 1, 2, 'zcx', '123456');
INSERT INTO `user_info` VALUES (4, '周晨宇', 1, 1, 'zcy', '123456');

Spring Boot 后台源码:

百度网盘地址:

链接:https://pan.baidu.com/s/1CkPrhp-16psW9ZiBqDa8lw 
提取码:1234 
 

 后台服务接口postman 认证:

 Vue 简易CRM系统截图:

 前端框架(Vue+Element UI+Axios+Vue-Route+Vuex),前端项目完成级别检索组件、分页组件和表格组件的封住。完成对接的模块(客户管理、等级管理、拜访管理)。

前端下载地址:

链接:https://pan.baidu.com/s/1IJbPatlhCmas2MRIbJZpYg 
提取码:1234 

以上是关于简单版本CRM 客户管理系统设计的主要内容,如果未能解决你的问题,请参考以下文章

毕业设计java+mysql crm客户关系管理系统

C语言 项目 CRM系统(客户信息管理系统)

项目一:CRM(客户关系管理系统)--5

CRM客户关系管理系统商业项目

基于java的CRM客户关系管理系统的设计和实现

CRM客户关系管理系统商业项目视频课程