style:产品BOM模块-产品下拉框添加产品筛选

main
黄伟杰 2 months ago
parent f887843d41
commit 057df9cdb9

@ -49,8 +49,8 @@ export const ProductApi = {
return await request.get({ url: `/erp/product/simple-list-order` }) return await request.get({ url: `/erp/product/simple-list-order` })
}, },
// 查询所有商品精简列表 // 查询所有商品精简列表
getMesProductSimpleList: async () => { getMesProductSimpleList: async (params?: { categoryType?: number }) => {
return await request.get({ url: `/erp/product/simple-list-product` }) return await request.get({ url: `/erp/product/simple-list-product`, params })
}, },
// 查询备件精简列表 // 查询备件精简列表
getComponentSimpleList: async () => { getComponentSimpleList: async () => {

@ -117,7 +117,7 @@ const open = async (type: string, id?: number) => {
} }
} }
unitList.value = await ProductUnitApi.getProductUnitSimpleList() unitList.value = await ProductUnitApi.getProductUnitSimpleList()
productList.value = await ProductApi.getMesProductSimpleList() productList.value = await ProductApi.getMesProductSimpleList({ categoryType: 1 })
} }
defineExpose({ open }) defineExpose({ open })

@ -256,6 +256,6 @@ const handleExport = async () => {
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
await getList() await getList()
productList.value = await ProductApi.getMesProductSimpleList() productList.value = await ProductApi.getMesProductSimpleList({ categoryType: 1 })
}) })
</script> </script>

Loading…
Cancel
Save