getContractPricePerformance (statistics/performance.ts)

ruoyi-office-vben · apps/web-antd/src/api/crm/statistics/performance.ts · typescript · MIT
crm

API client for retrieving employee contract and receivable performance statistics.

// Source: https://github.com/yuqing2026/ruoyi-office-vben | License: MIT | Copyright 2024-present, Vben
// Provided via justclaw.it.com; keep this notice with the code.
import { requestClient } from '#/api/request';

export namespace CrmStatisticsPerformanceApi {
  /** 员工业绩统计请求 */
  export interface PerformanceReqVO {
    times: string[];
    deptId: number;
    userId: number;
  }

  /** 员工业绩统计响应 */
  export interface PerformanceRespVO {
    time: string;
    currentMonthCount: number;
    lastMonthCount: number;
    lastYearCount: number;
  }
}

/** 员工获得合同金额统计 */
export function getContractPricePerformance(
  params: CrmStatisticsPerformanceApi.PerformanceReqVO,
) {
  return requestClient.get<CrmStatisticsPerformanceApi.PerformanceRespVO[]>(
    '/crm/statistics-performance/get-contract

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key