diff --git a/src/api/wms/balance/index.ts b/src/api/wms/balance/index.ts index 1db740b2a..012f7c534 100644 --- a/src/api/wms/balance/index.ts +++ b/src/api/wms/balance/index.ts @@ -71,6 +71,16 @@ export const getBalanceItemPage = async (params) => { return await request.get({ url: `/wms/balance/pageItems`, params }) } } +// 查询库存余额列表根据业务类型 +export const getBalancePageByBusinessType = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/balance/seniorBusinessType', data }) + } else { + return await request.get({ url: `/wms/balance/pageBusinessType`, params }) + } +} // 查询库存余额详情 export const getBalance = async (id: number) => {