94 lines
1.7 KiB
TypeScript
94 lines
1.7 KiB
TypeScript
import request from "/@/utils/request"
|
|
|
|
/**
|
|
* 获取毛利润报表
|
|
*/
|
|
export function getProfitMarginReport(params?: object) {
|
|
return request({
|
|
url: "/supermarket/profitMarginReport/report",
|
|
method: "get",
|
|
params,
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取商品毛利润排名
|
|
*/
|
|
export function getProductProfitRanking(params?: object) {
|
|
return request({
|
|
url: "/supermarket/profitMarginReport/productProfitRanking",
|
|
method: "get",
|
|
params,
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取分类毛利润分析
|
|
*/
|
|
export function getCategoryProfitAnalysis(params?: object) {
|
|
return request({
|
|
url: "/supermarket/profitMarginReport/categoryProfitAnalysis",
|
|
method: "get",
|
|
params,
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取时段毛利润趋势
|
|
*/
|
|
export function getTimePeriodProfitTrend(params?: object) {
|
|
return request({
|
|
url: "/supermarket/profitMarginReport/timePeriodProfitTrend",
|
|
method: "get",
|
|
params,
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取高毛利润商品
|
|
*/
|
|
export function getHighProfitProducts(params?: object) {
|
|
return request({
|
|
url: "/supermarket/profitMarginReport/highProfitProducts",
|
|
method: "get",
|
|
params,
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取低毛利润/亏损商品
|
|
*/
|
|
export function getLowProfitProducts(params?: object) {
|
|
return request({
|
|
url: "/supermarket/profitMarginReport/lowProfitProducts",
|
|
method: "get",
|
|
params,
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取毛利润汇总信息
|
|
*/
|
|
export function getProfitSummary(params?: object) {
|
|
return request({
|
|
url: "/supermarket/profitMarginReport/profitSummary",
|
|
method: "get",
|
|
params,
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 导出毛利润报表
|
|
*/
|
|
export function exportProfitMarginReport(params?: object) {
|
|
return request({
|
|
url: "/supermarket/profitMarginReport/export",
|
|
method: "post",
|
|
params,
|
|
responseType: 'blob'
|
|
})
|
|
}
|
|
|
|
|
|
|