42 lines
689 B
JavaScript
42 lines
689 B
JavaScript
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'
|
|
})
|
|
}
|