Files
shzg_projectManage/src/api/index.js

70 lines
1.3 KiB
JavaScript
Raw Normal View History

2026-02-04 15:28:28 +08:00
import request from "@/utils/request";
// 获取月统计、当前入库类型统计、物资类型统计接口
export const getHomeState = (data) => {
return request({
url: "/stat/home",
method: "post",
data: data,
});
};
// 入库类型统计 - 时间查询
export const getInTypeByTime = (data) => {
return request({
url: "/stat/inTypeByTime",
method: "post",
data: data,
});
};
// 出库类型统计 - 时间查询
export const getOutTypeByTime = (data) => {
2026-01-20 16:56:01 +08:00
return request({
2026-02-04 15:28:28 +08:00
url: "/stat/outTypeByTime",
method: "post",
data: data,
});
};
// 通知公告展示
export const getNoticeList= () => {
return request({
url: "/system/notice/list",
method: "get",
});
};
2026-01-20 16:56:01 +08:00
2026-02-03 11:40:02 +08:00
// 预警 + 库龄统计(库龄超过30/60天统计)
2026-01-20 16:56:01 +08:00
export const getAgeLong = () => {
return request({
2026-02-04 15:28:28 +08:00
url: "/stat/stockAge/stat",
method: "get",
});
};
2026-01-20 16:56:01 +08:00
// 仓库使用率
export const getInventoryReview = () => {
return request({
2026-02-04 15:28:28 +08:00
url: "/stat/warehouse/slot",
method: "get",
});
};
2026-01-20 16:56:01 +08:00
// 待办事项(应到未到统计)
2026-02-03 11:40:02 +08:00
export const getWait = (params) => {
2026-01-20 16:56:01 +08:00
return request({
2026-02-04 15:28:28 +08:00
url: "/stat/todo",
method: "get",
params,
});
};
2026-01-20 16:56:01 +08:00
// 入/出库指标统计(天级出入库统计)
export const getDailyInventory = (params) => {
return request({
2026-02-04 15:28:28 +08:00
url: "/stat/week/daily",
method: "get",
params,
});
};
2026-01-20 16:56:01 +08:00