cangku/frontend/src/api/binReplenish.js
lunanting d74b4b649a
All checks were successful
[Do] try bracketed context
Do auto-pass for待发订单 PR
fix: 缺货补货监控改为只统计待发订单(排除已发/取消/拆单/合单),不限日期
2026-10-22 15:07:29 +08:00

21 lines
559 B
JavaScript

import request from './request';
const LONG_TIMEOUT_MS = 10 * 60 * 1000;
// 缺货补货监控(订单驱动版)
// 判断口径:待发订单量 > 拣货位库存 的超出部分 = 需从存储位补到拣货位的量
export const getBinReplenishList = (params = {}) => request.get(
'/api/bin-replenish/list',
{ params, timeout: LONG_TIMEOUT_MS }
);
export const exportBinReplenish = (params = {}) => request.get(
'/api/bin-replenish/export',
{
params,
responseType: 'blob',
timeout: LONG_TIMEOUT_MS,
silentError: true,
}
);