Files
shzg_projectManage/src/api/index.js

111 lines
2.1 KiB
JavaScript
Raw Normal View History

2026-01-20 16:56:01 +08:00
import request from '@/utils/request'
// 入/出库数量
export const getMonthCount = () => {
return request({
url: '/stat/month/summary',
method: 'get'
})
}
// 预警
export const getInventoryAge = () => {
return request({
url: '/stat/age',
method: 'get'
})
}
// 库龄统计(库龄超过30/60天统计)
export const getAgeLong = () => {
return request({
url: '/stat/age/count',
method: 'get'
})
}
// 仓库使用率
export const getInventoryReview = () => {
return request({
url: '/stat/warehouseScene',
method: 'get'
})
}
// 待办事项(应到未到统计)
export const getWaitIn = (params) => {
return request({
url: '/stat/undelivered',
method: 'get',
params
})
}
// 待办事项(应出未出统计)
export const getWaitOut = (params) => {
return request({
url: '/stat/age/gt30',
method: 'get',
params
})
}
// 当前入库类型统计(根据入库类型统计项目数,条目数,总金额)
export const getInStorage = () => {
return request({
url: '/stat/type/summary',
method: 'get'
})
}
// 物资类型统计
export const getGoodsType = () => {
return request({
url: '/stat/stock/wlType',
method: 'get'
})
}
// 县局统计(根据县局统计项目数,条目数,总金额)
// export const getCounty = () => {
// return request({
// url: '/stat/county/summary',
// method: 'get'
// })
// }
// 入/出库指标统计(天级出入库统计)
export const getDailyInventory = (params) => {
return request({
url: '/stat/week/daily',
method: 'get',
params
})
}
// 根据出库类型,自定义时间筛选统计入库情况
export const getInventoryType = (params) => {
return request({
url: '/stat/type/range',
method: 'get',
params
})
}
// 根据入库类型,自定义时间筛选统计出库情况
export const getOutInventoryType = (params) => {
return request({
url: '/stat/type/out/range',
method: 'get',
params
})
}
// (每一种入库类型的统计)
// export const getEveryInventory = () => {
// return request({
// url: '/stat/type/pie',
// method: 'get'
// })
// }