cangku/frontend/src/api/modularStockMonitoring.js
wangjie 51b9f9eeed feat: 新增模块化库存监控(全仓口径 + 实时库存)
- 新增库存监控页面、后端服务与 API,支持分页筛选与 CSV 导出
- 库存取值优先聚水潭实时库存(jst_inventoryInfo),取不到回退日报快照(pm_stockMonitor)
- 统计卡与预警分档统一全仓库口径,新增在库 SKU 款数
- 预留聚水潭加工单接入(jushuitanClient + 自检脚本),凭证到位后可算采购在途
2026-09-24 15:34:57 +08:00

17 lines
545 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from './request';
const LIST_TIMEOUT_MS = 3 * 60 * 1000;
const META_TIMEOUT_MS = 60 * 1000;
// 列表(默认只取「简尚-崔桥工厂品牌仓」仓库下的 SKU)
export const getModularStockList = (params = {}) => request.get(
'/api/modular-stock-monitoring/list',
{ params, timeout: LIST_TIMEOUT_MS }
);
// 仓库下拉选项(用于核对业务库里的实际仓库名)
export const getModularStockWarehouses = () => request.get(
'/api/modular-stock-monitoring/warehouses',
{ timeout: META_TIMEOUT_MS }
);