feat(@vben/web-antd): erp-移除重复接口

-移除了 stock API 中的 getStockCountByProductId 函数
-将 getStockCount 函数的使用范围从 product 模块扩展到 purchase 模块
- 更新了 PurchaseOrderItemForm 组件中的库存查询逻辑
This commit is contained in:
nehc
2025-07-28 14:45:47 +08:00
parent b3a2d29a3b
commit b3942bb8ff
2 changed files with 2 additions and 11 deletions

View File

@@ -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
*/