From 4649d692d04dc385a15f1712e11963747eaf6f17 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Tue, 15 Oct 2024 16:13:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/balance/index.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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