medical-store-performance-report.js 1.39 KB
import request from '@/utils/request'

/**
 * 获取医美门店业绩报表
 * @param {{ startDate: string, endDate: string, sectionType: string, teacherId?: string }} data
 */
export function getMedicalStorePerformanceReport(data) {
  return request({
    url: '/api/Extend/LqMedicalStorePerformanceReport/GetReport',
    method: 'post',
    data
  })
}

/**
 * 获取医美门店业绩报表筛选选项(部门 + 老师)
 */
export function getMedicalStorePerformanceFilterOptions() {
  return request({
    url: '/api/Extend/LqMedicalStorePerformanceReport/GetFilterOptions',
    method: 'get'
  })
}

/**
 * 获取医美门店业绩报表成交明细
 * @param {{
 *   startDate: string,
 *   endDate: string,
 *   storeId: string,
 *   sectionType: string,
 *   teacherId?: string,
 *   dealScope: 'All' | 'PreSales' | 'AfterSales',
 *   currentPage: number,
 *   pageSize: number
 * }} data
 */
export function getMedicalStorePerformanceDealDetail(data) {
  return request({
    url: '/api/Extend/LqMedicalStorePerformanceReport/GetDealDetail',
    method: 'post',
    data
  })
}

/**
 * 导出医美门店业绩报表门店明细
 * @param {{ startDate: string, endDate: string, sectionType: string, teacherId?: string }} data
 */
export function exportMedicalStorePerformanceReport(data) {
  return request({
    url: '/api/Extend/LqMedicalStorePerformanceReport/ExportReport',
    method: 'post',
    data
  })
}