CRM业务流程

业务流程:
eseller = bd cs (我们公司的管理);
client = 代理商;()

我们的代理商不是代理商(代理商管理员) 就是 = reseller(bd cs it ) client是真正的代理商

1mso.test.com(reseller) -----(创建)----> 666 [email protected] (client=客户) 创建client 使用reseller
2创建项目 使用角色(,reseller) 任务管理->项目管理 进入高级->坐席组权限 权限(这个列全选)
3添加任务 使用角色(reseller) 任务管理->任务管理 添加任务时,这里就可以使用我们上面创建的client 666 @test.astercc.com 添加任务以后有就有了任务
4审核 使用角色([email protected]) 任务管理->任务管理 (点击设置进行设置) 审核的时候选择 上面创建的client 666 [email protected]
5添加坐席 使用角色 (上面创建的client) 例:[email protected]
6添加坐席组 使用角色 用户->(上面创建的client) 例:[email protected]
7给坐席分配任务 使用角色 client 任务管理->任务管理 (选择任务挂在坐席组上);
8然后就可以拨打了 使用角色 以坐席登录 我的档案->新增客户 销售漏斗(点击新增联络备注 ) 选择成功 然后就成单了,需要刷新一次 在客户数据查看时候好了
9销售漏斗为5 或者 成功提交客户表示成单

注释:使用角色([email protected])如果没有外显号码和费率 到 计费(添加费率) 语音设置->外显号码(添加外显号码)
质检 (reseller) 1到质检任务添加计划质检比

  1. 找自定义字段相关的界面:
    前端:
    (1) webroot/l10n/roles "customizeFeild": "自定义字段",
    http://192.168.134.130:3000/index.html#/roles/ roles相关模块

(2) webroot/l10n/projects "Custom Fields": "自定义字段", "customize": "自定义字段","Customize field can not include special characters, besides < > # . /": "自定义字段不能包含特殊字符,包括 < > # . / ? 等",
http://192.168.134.130:3000/index.html#/projects/ projects 相关的模块
(2.1) webroot/app/components/projects var regForName = /.[><.#/?!@$%^&*(){}[];:"'|\,~`=+]./;//自定义字段不能包含

 (2.1)  webroot/app/components/projects     customers_fields.html 页面有

(3) webroot/10n/default "Failed to create customized field, duplicated name existed.": "添加失败, 已经存在相同名称的自定义字段.",
这个就找不到了

(6) webroot/app/components/agetdesk agentdesk.js

后端:
(7) server.js Project Customer 配置项目客户自定义字段=
(8) customer_field.json 自定义字段表
(9) projects_mos_fields.json "comment": "平台需要的自定义字段模板"
(10) project.js function(returnResult, cb) // 克隆项目的自定义字段
(11) customize_field.js 自定义字段不存在$ref属性, 应该直接跳过
(12) mos_busibbss.js 删除旧的自定义字段,增加新的自定义字段

  1. 自定义字段相关模块。
    [email protected] 身份
    客户数据 + 任务管理

    (1) -客户数据: 连接:http://192.168.134.130:3000/index.html#/customers/
    --新增
    --导入csv文件
    --数据导入
    --字段导入
    --- 新增
    --- 编辑
    --- 删除
    (2)-任务管理 连接:http://192.168.134.130:3000/index.html#/positive_customers/
    --成功提交客户
    ---导出字段
    ---导入csv文件
    --- 克隆

    (3)-质检 连接:http://192.168.134.130:3000/index.html#/qc/
    -- 质检
    --- 质检

    注:不影响可以忽略
    (4)-用户 连接:http://192.168.134.130:3000/index.html#/roles/
    -- 角色和权限
    --- 编辑/权限设置

  2. 相关的表:
    json_schema_definitions
    schemas
    projects
    projects_customer_XXXX

  3. 自定义字段相关的前后端模块。

    -客户数据:
    相关url:
    --新增
    --导出csv文件
    --数据导入
    --字段导入
    --- 新增
    注:新增的字段会进入projects表,新增,编辑,删除皆是对此表进行操作,为客户数据表创建是做字段填写规范。
    --- 编辑
    --- 删除

    ------------------- 新增:
    url:
    http://192.168.134.130:3000/api/customers/preference?preferences=yes&transfers=yes //没有自定义字段
    http://192.168.134.130:3000/api/customers/preference?preferences=no&project_id=58afa2554e6b565b30997033&transfers=no //有自字
    前端:
    customers.js : $scope.afterPreferences = function (data) {} 587 行
    controller层:
    controller: Customers.prototype.preference =function(){} 33行
    model.js 层:
    model.js ccModel.prototype.preference = function(realm, callback) {} 527 行

------------------ 导出csv文件
前端:
customers.js层: $scope.beforeExportFields = function (fields) {} 678层

------------------数据导入:
前端:
使用$scope.fields = data.field;下拉列表的内容
clusterccHttp.get('imports/fields', params).success(function (data, status, headers, config) {}
后端:
controller: imports.js
Imports.prototype.checkCampaignDialer = function (req,res,next){} 29 行
Imports.prototype.listFields = function (req, res, next){} 138行
model层:
campaigns.json: 任务表 //外连接7张表
campaign_reports.json: 任务报表
campaigns.js 303 行
--------------字段导入

前端:
get请求:clusterccHttp.get('customers/projects/' + pjid + '/schema') 922行

后端:
Customers.prototype.preference = function (req, res, next) {} 33 行
接口出全部数据。

-任务管理 连接:http://192.168.134.130:3000/index.html#/positive_customers/
--成功提交客户
---导出字段
---导入csv文件

前端:
http://192.168.134.130:3000/api/positive_customers/preference?preferences=yes&transfers=yes
http://192.168.134.130:3000/api/positive_customers/preference?preferences=no&project_id=58afa2554e6b565b30997033&transfers=no    //包含自定义字段的。
$scope.afterPreferences = function (data) {}   

后端: 
controller:    positive_customers.js   
PositiveCustomer.prototype.preference = function (req, res, next) {}   23
model层:
model.js ccModel.prototype.preference = function(realm, callback) {} 527 行

--- 导入csv文件
前端:
positive_customers.js : $scope.beforeExportFields = function (fields) {}  678层



克隆:
后端: Projects.prototype.clone = function(id, el, realm, callback) {}


(3)-质检     连接:http://192.168.134.130:3000/index.html#/qc/
      -- 质检
         --- 质检

前端:
相关连接:http://192.168.134.130:3000/api/qc/preference?preferences=no&project_id=58afa2554e6b565b30997033&transfers=no

//***************************************************************************
dictionary_category(自定义字段基本信息字典表)

描述:
自定义字段分默认的自定义字段和平台传过来的自定义字段
字段:
project_id 项目ID
customer_id 客户数据ID
key 对应数据库字段
value 字段实际值
action 动作(增add、删delete、改edit)
status 是否启用(1启用、0停用)
operator 当前操作员(用户表主键)

//***************************************************************************

平台传过来的全部自定义字段 :mso_busubess.js 操作:1. 删除旧的自定义字段,增加新的自定义字段。

  1. 更新项目自定义字段。 3. 循环所有现有的自定义字段,并删除。 4. 循环所有平台传过来的自定义字段,并创建
  2. 生成自定义字段。

表:项目的projects.json
fields:[] // 里面存储项目的自定义字段
campaigns.json
fields:[] // 里面存储项目的自定义字段
project_mso_fields.json
"comment": "平台需要的自定义字段模板"
project_customers_XXXXXX
key:value
schemas
key:value //自由存

for(var i=1;i<=500000;i++){
db.project_customers_storage.insert({
city:"上海",
project_id:"58afa2554e6b565b30997032",
area:"",
phone:(parseInt("15404299371")+i)+"",
mark:NumberInt(0),
level:"1",
bigdata_batch_no:"2017",
create_time:"2017-07-22 14:10:26",
expired_time:"2018-09-30",
update_time:"2017-07-22 14:10:26",
unique:true
})
}
sudo /usr/share/code/code --unity-lanuch

晚上看看
free -h
mongod --dbpath /var/lib/mongod --logpath /var/log/mongodb/mongod.log

mongod -port 27017 ---dbpath /var/lib/mongod --logpath /var/log/mongodb/mongod.log

{
"_id" : ObjectId("63f3cb2be5fb12db48699d17"),
"proejct_customer_id" : "0f628ffd905c30f628ffd905c3",
"project_id" : ObjectId("5a3cdfedbe680a7c75ae0849"),
"campaign_id" : ObjectId("5a5dc4250be91c8c67f1d493"),
"mobile" : "15221306407",
"city_id" : "呼和浩特",
"area_id" : "内蒙古",
"level_id" : "0",
"is_inpdlist" : 0,
"priority" : null,
"schedule_time" : null,
"sourcetime" : "2023-02-21 03:34:02",
"bigdata_batch_no" : "2018136548866",
"bigdata_label" : "2018新气象",
"called" : 0,
"answered" : 0,
"operator_id" : ObjectId("5a3772211cc4890000bf02d0"),
"operator_type" : 1,
"create_time" : ISODate("2023-02-20T19:34:03.000Z"),
"update_time" : ISODate("2023-02-20T19:34:03.000Z")
}

project_customers_dialers

"user_defined" : {
"姓名" : "张飞",
"电话号码" : "13636985214",
"电子邮件" : "[email protected]",
"性别" : "1",
"年龄" : "23",
"城市" : "北京",
"区域" : "订单",
"备注" : "没有",
"mobile" : "13636985214"
},

你可能感兴趣的:(CRM业务流程)