diff --git a/apps/web-antd/src/api/erp/stock/stock/index.ts b/apps/web-antd/src/api/erp/stock/stock/index.ts index 2d33726ae..57d4ec229 100644 --- a/apps/web-antd/src/api/erp/stock/stock/index.ts +++ b/apps/web-antd/src/api/erp/stock/stock/index.ts @@ -60,15 +60,6 @@ export function getStockCount(productId: number) { }); } -/** - * 根据产品ID获得库存数量 - */ -export function getStockCountByProductId(productId: number) { - return requestClient.get('/erp/stock/get-count', { - params: { productId }, - }); -} - /** * 导出产品库存 Excel */ diff --git a/apps/web-antd/src/views/erp/purchase/order/modules/PurchaseOrderItemForm.vue b/apps/web-antd/src/views/erp/purchase/order/modules/PurchaseOrderItemForm.vue index 03beaa534..7eae56d17 100644 --- a/apps/web-antd/src/views/erp/purchase/order/modules/PurchaseOrderItemForm.vue +++ b/apps/web-antd/src/views/erp/purchase/order/modules/PurchaseOrderItemForm.vue @@ -9,7 +9,7 @@ import { Input, InputNumber, Select } from 'ant-design-vue'; import { TableAction, useVbenVxeGrid } from '#/adapter/vxe-table'; import { getProductSimpleList } from '#/api/erp/product/product'; -import { getStockCountByProductId } from '#/api/erp/stock/stock'; +import { getStockCount } from '#/api/erp/stock/stock'; import { usePurchaseOrderItemTableColumns } from '../data'; @@ -142,7 +142,7 @@ async function handleProductChange(productId: any, row: any) { return; } - const stockCount = await getStockCountByProductId(productId); + const stockCount = await getStockCount(productId); row.productId = productId; row.productUnitId = product.unitId;