超市报表
This commit is contained in:
1 parent
af636ecea4
commit
0dd4757a3a
21 files changed
+2145
-11
No files matched your search
@@ -0,0 +1,44 @@
|
||||
import request from "/@/utils/request"
|
||||
import type {
|
||||
InventoryInOutQueryParams,
|
||||
InventoryInOutPageApiResponse,
|
||||
InventoryInOutListApiResponse,
|
||||
InventoryInOutSummaryApiResponse,
|
||||
} from "./types/inventoryInOutReport"
|
||||
|
||||
// 分页查询进销存报表
|
||||
export function getInventoryInOutPage(params?: InventoryInOutQueryParams): Promise<InventoryInOutPageApiResponse> {
|
||||
return request({
|
||||
url: "/supermarket/report/inventory-inout/page",
|
||||
method: "get",
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
// 列表查询进销存报表(用于导出)
|
||||
export function getInventoryInOutList(params?: InventoryInOutQueryParams): Promise<InventoryInOutListApiResponse> {
|
||||
return request({
|
||||
url: "/supermarket/report/inventory-inout/list",
|
||||
method: "get",
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
// 获取进销存汇总统计
|
||||
export function getInventoryInOutSummary(params?: InventoryInOutQueryParams): Promise<InventoryInOutSummaryApiResponse> {
|
||||
return request({
|
||||
url: "/supermarket/report/inventory-inout/summary",
|
||||
method: "get",
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
// 导出Excel(后端直接导出)
|
||||
export function exportInventoryInOutExcel(params?: InventoryInOutQueryParams): Promise<Blob> {
|
||||
return request({
|
||||
url: "/supermarket/report/inventory-inout/export",
|
||||
method: "get",
|
||||
params,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
@@ -17,3 +17,100 @@ export function getInventoryPageSum(params?: object) {
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
// 导出出入库明细 orderType: 1入库 2出库
|
||||
export function exportInventory(params?: object) {
|
||||
return request({
|
||||
url: "/supermarket/smErpInventoryRecords/inventoryType/export",
|
||||
method: "get",
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
// ==================== 新增报表接口 ====================
|
||||
|
||||
// 1. 进货单明细
|
||||
export function getPurchaseDetailPage(params?: object) {
|
||||
return request({
|
||||
url: "/supermarket/superMarketReport/purchaseDetail/page",
|
||||
method: "get",
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
// 2. 退货单明细
|
||||
export function getReturnDetailPage(params?: object) {
|
||||
return request({
|
||||
url: "/supermarket/superMarketReport/returnDetail/page",
|
||||
method: "get",
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
// 3. 进销存报表
|
||||
export function getInventoryReportPage(params?: object) {
|
||||
return request({
|
||||
url: "/supermarket/superMarketReport/inventory/page",
|
||||
method: "get",
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
export function getInventoryReportList(params?: object) {
|
||||
return request({
|
||||
url: "/supermarket/superMarketReport/inventory/list",
|
||||
method: "get",
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
// 4. 毛利报表
|
||||
export function getProfitReportPage(params?: object) {
|
||||
return request({
|
||||
url: "/supermarket/superMarketReport/profit/page",
|
||||
method: "get",
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
export function getProfitReportList(params?: object) {
|
||||
return request({
|
||||
url: "/supermarket/superMarketReport/profit/list",
|
||||
method: "get",
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
// 5. 销售报表
|
||||
export function getSalesReportPage(params?: object) {
|
||||
return request({
|
||||
url: "/supermarket/superMarketReport/sales/page",
|
||||
method: "get",
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
export function getSalesReportList(params?: object) {
|
||||
return request({
|
||||
url: "/supermarket/superMarketReport/sales/list",
|
||||
method: "get",
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
// 6. 盘存报表
|
||||
export function getStocktakeReportPage(params?: object) {
|
||||
return request({
|
||||
url: "/supermarket/superMarketReport/stocktake/page",
|
||||
method: "get",
|
||||
params,
|
||||
})
|
||||
}
|
||||
|
||||
export function getStocktakeReportList(params?: object) {
|
||||
return request({
|
||||
url: "/supermarket/superMarketReport/stocktake/list",
|
||||
method: "get",
|
||||
params,
|
||||
})
|
||||
}
|
||||
@@ -39,3 +39,13 @@ export function putObj(obj?: Object) {
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 下拉
|
||||
*/
|
||||
export function getSimpleCategoryAll() {
|
||||
return request({
|
||||
url: '/supermarket/supermarketCategory/simpleAll',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user