import request from '@/utils/request';
import {AxiosPromise} from 'axios';



/**
 * 查询头部
 * @param id
 */
export const getMonthlyOrderCount = (param) => {
    return request({
        url: '/customer/attribute/new-data',
        method: 'post',
        data: param
    });
};
/**
 * 查询头部
 * @param id
 */
export const uesrAllProgress = (param) => {
    return request({
        url: '/target-quota/uesr-all-progress',
        method: 'post',
        data: param
    });
};

/**
 * 查询日程
 * @param id
 */
export const totalTask = (param) : AxiosPromise<any>=> {
    return request({
        url: '/sys/task/total_task',
        method: 'post',
        data: param
    });
};

/**
 * 销售漏斗
 * @param id
 */
export const getAnalyzeSalesFunnel = (param) : AxiosPromise<any>=> {
    return request({
        url: '/process/analysis/get_analyze_sales_funnel',
        method: 'post',
        data: param
    });
};
///process/analysis/get_predictive_analytics_total
/**
 * 销售预测
 * @param id
 */
export const getPredictiveAnalyticsTotal = (param) : AxiosPromise<any>=> {
    return request({
        url: '/process/analysis/get_predictive_analytics_total',
        method: 'post',
        data: param
    });
};


/**
 * 数据简报
 * @param id
 */
export const dataSummary = (param) : AxiosPromise<any>=> {
    return request({
        url: '/customer/attribute/data-summary',
        method: 'post',
        data: param
    });
};

/**
 * 业绩排行
 * @param id
 */
export const targetRink = (param) : AxiosPromise<any>=> {
    return request({
        url: '/target-quota/amount-rink',
        method: 'post',
        data: param
    });
};

/**
 * 业绩排行
 * @param id
 */
export const uesrProgress = (param) : AxiosPromise<any>=> {
    return request({
        url: '/target-quota/uesr-progress',
        method: 'post',
        data: param
    });
};
