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

main
黄伟杰 1 week ago
parent f887843d41
commit 057df9cdb9

@ -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 () => {

@ -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 })

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

Loading…
Cancel
Save