feat(@vben/web-antd): erp-移除重复接口
-移除了 stock API 中的 getStockCountByProductId 函数 -将 getStockCount 函数的使用范围从 product 模块扩展到 purchase 模块 - 更新了 PurchaseOrderItemForm 组件中的库存查询逻辑
This commit is contained in:
@@ -60,15 +60,6 @@ export function getStockCount(productId: number) {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据产品ID获得库存数量
|
||||
*/
|
||||
export function getStockCountByProductId(productId: number) {
|
||||
return requestClient.get<number>('/erp/stock/get-count', {
|
||||
params: { productId },
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出产品库存 Excel
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user