salesreport.js 1.24 KB
Newer Older
lanbaoming's avatar
lanbaoming committed
1 2
import request from '@/utils/request'

lanbaoming's avatar
lanbaoming committed
3
//2024-05-01合并
lanbaoming's avatar
lanbaoming committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//查询运输方式体积货重量 lanbm 2024-04-01 add
export function SalesReportCount(data) {
  return request({
    url: '/Report/SalesReport/SalesReportCount',
    method: 'post',
    data: data
  })
}

//查询首次成交客户数量 lanbm 2024-04-01 add
export function FirstCustomerCount(data) {
  return request({
    url: '/Report/SalesReport/FirstCustomerCount',
    method: 'post',
    data: data
  })
}

lanbaoming's avatar
lanbaoming committed
22 23 24 25 26 27 28 29 30
//获取一段时间客户成交数目
export function CustomerTargetCount(query) {
  return request({
    url: '/Report/SalesReport/CustomerTargetCount',
    method: 'get',
    params: query
  })
}

lanbaoming's avatar
lanbaoming committed
31 32 33 34 35 36 37 38 39
//销售分析统计列表 lanbm 2024-04-01 add
export function SalesReportList(data) {
  return request({
    url: '/Report/SalesReport/SalesReportList',
    method: 'post',
    data: data
  })
}

lanbaoming's avatar
lanbaoming committed
40 41


lanbaoming's avatar
lanbaoming committed
42 43 44 45 46 47 48 49 50
//获取销售分析图表数据
export function getEChartData(query) {
  return request({
    url: '/Report/SalesReport/getEChartData',
    method: 'get',
    params: query
  })
}

51
// 导出测试 Excel 2024-04-27
lanbaoming's avatar
lanbaoming committed
52 53 54 55 56 57 58 59
export function exportTestExcel(query) {
  return request({
    url: '/SalesReport/test/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}