diff --git a/src/api/erp/product/product/index.ts b/src/api/erp/product/product/index.ts index 3b8fbb3d..38eaa599 100644 --- a/src/api/erp/product/product/index.ts +++ b/src/api/erp/product/product/index.ts @@ -49,8 +49,8 @@ export const ProductApi = { return await request.get({ url: `/erp/product/simple-list-order` }) }, // 查询所有商品精简列表 - getMesProductSimpleList: async () => { - return await request.get({ url: `/erp/product/simple-list-product` }) + getMesProductSimpleList: async (params?: { categoryType?: number }) => { + return await request.get({ url: `/erp/product/simple-list-product`, params }) }, // 查询备件精简列表 getComponentSimpleList: async () => { diff --git a/src/views/mes/bom/BomForm.vue b/src/views/mes/bom/BomForm.vue index 98696afa..826d5c4e 100644 --- a/src/views/mes/bom/BomForm.vue +++ b/src/views/mes/bom/BomForm.vue @@ -117,7 +117,7 @@ const open = async (type: string, id?: number) => { } } unitList.value = await ProductUnitApi.getProductUnitSimpleList() - productList.value = await ProductApi.getMesProductSimpleList() + productList.value = await ProductApi.getMesProductSimpleList({ categoryType: 1 }) } defineExpose({ open }) diff --git a/src/views/mes/bom/index.vue b/src/views/mes/bom/index.vue index cfbdad2e..b6653035 100644 --- a/src/views/mes/bom/index.vue +++ b/src/views/mes/bom/index.vue @@ -256,6 +256,6 @@ const handleExport = async () => { /** 初始化 **/ onMounted(async () => { await getList() - productList.value = await ProductApi.getMesProductSimpleList() + productList.value = await ProductApi.getMesProductSimpleList({ categoryType: 1 }) })