POST/business/{uniacid}/plugin/CrmDashboard/getCustomerData

参数:

参数名 是否必须 类型 说明
date_type string "day"或者"month"或者"week"
date_time int 时间戳
department_id int 部门id(如果切换成团队需要传)
subordinate_id int 选择了指定成员需要传

返回示例:

正确时返回:

  {
    "result": 1,
    "msg": "成功",
    "data": {
        "crm": {
            "total": 1,
            "loss": {
                "value": 0,
                "old_value": 2,
                "is_up": false
            },
            "new": {
                "value": 0,
                "old_value": 5,
                "is_up": false
            }
        },
        "wechat": {
            "total": 0,
            "loss": {
                "value": 0,
                "old_value": 0,
                "is_up": true
            },
            "new": {
                "value": 0,
                "old_value": 0,
                "is_up": true
            }
        },
        "graph": {
            "crm": {
                "name": "CRM客户",
                "series": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    5,
                    0
                ],
                "x_axis": [
                    "2025/46",
                    "2025/47",
                    "2025/48",
                    "2025/49",
                    "2025/50",
                    "2025/51",
                    "2025/52"
                ]
            },
            "wechat": {
                "name": "企微客户",
                "series": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    0
                ],
                "x_axis": [
                    "2025/46",
                    "2025/47",
                    "2025/48",
                    "2025/49",
                    "2025/50",
                    "2025/51",
                    "2025/52"
                ]
            }
        },
        "old_name": "上周",
        "soon_loss_total": 1
    }
}

返回参数说明:

参数名 类型 说明
crm.total int crm客户总数
wechat.total int 企微客户总数
crm.new array crm新增数据
wechat.new int 企微新增数据
crm.loss array crm流失数据
wechat.loss int 企微流失数据
graph array 折线图
soon_loss_total int 还有一天流入公海的客户数量