项目初始化

This commit is contained in:
刘汗青
2026-06-10 10:03:08 +08:00
commit a3c023a8d3
1255 changed files with 194055 additions and 0 deletions

41
ruoyi-ui/src/api/home.js Normal file
View 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'
})
}