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

参数:

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

返回示例:

正确时返回:

 {
    "result": 1,
    "msg": "成功",
    "data": {
        "total": 4,
        "new_total": 0,
        "old_name": "昨日",
        "is_up": true,
        "old_total": 0,
        "opportunitys": [
            {
                "name": "进行中",
                "value": 1
            },
            {
                "name": "收尾阶段",
                "value": 3
            }
        ]
    }
}

返回参数说明:

参数名 类型 说明
total int 商机总数
new_total int 新增商机总数
old_name int 日期名称
is_up bool true=增长,false=下降
old_total int 增长或者下降次数
opportunitys[].name string 商机状态
opportunitys[].value string 数量