项目初始化
This commit is contained in:
41
ruoyi-ui/src/api/home.js
Normal file
41
ruoyi-ui/src/api/home.js
Normal file
@@ -0,0 +1,41 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 获取首页统计数据
|
||||
*/
|
||||
export function getHomeStatistics() {
|
||||
return request({
|
||||
url: '/system/index/statistics',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取近7日入库/出库趋势
|
||||
*/
|
||||
export function getInOutTrend() {
|
||||
return request({
|
||||
url: '/system/index/inOutTrend',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取库区占用率
|
||||
*/
|
||||
export function getWarehouseOccupancy() {
|
||||
return request({
|
||||
url: '/system/index/warehouseOccupancy',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取最近入库单据
|
||||
*/
|
||||
export function getRecentInboundOrders() {
|
||||
return request({
|
||||
url: '/system/index/recentInboundOrders',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user