diff --git a/src/api/wms/balance/index.ts b/src/api/wms/balance/index.ts index af60eb822..5199e941b 100644 --- a/src/api/wms/balance/index.ts +++ b/src/api/wms/balance/index.ts @@ -234,3 +234,15 @@ export const getBanchBomPage = async (params) => { export const getAllBalancePage = async (params) => { return await request.get({ url: `/wms/balance/getBalancePageAll `, params }) } + + +// 查询库存余额列表根据库位 +export const getBalanceByLocation = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/balance/balanceSeniorByLocation', data }) + } else { + return await request.get({ url: `/wms/balance/balancePageByLocation`, params }) + } +} \ No newline at end of file