即时销售报表,毛利润报表
This commit is contained in:
1 parent
6fdc05c396
commit
c17731dd86
13 files changed
+2665
-329
No files matched your search
@@ -0,0 +1,90 @@
|
||||
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'
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user