From 10f4c87b14ae85a65d28256774e13fed9d2b01ce Mon Sep 17 00:00:00 2001 From: yinq Date: Tue, 25 Feb 2025 09:01:09 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/materialBom/addBom.vue | 5 ++ src/views/mes/planInfo/index.vue | 104 ++++++++++++++++++++++----- 2 files changed, 90 insertions(+), 19 deletions(-) diff --git a/src/views/mes/materialBom/addBom.vue b/src/views/mes/materialBom/addBom.vue index 07c85f1..64f4f0a 100644 --- a/src/views/mes/materialBom/addBom.vue +++ b/src/views/mes/materialBom/addBom.vue @@ -118,6 +118,8 @@ const isExpandAll = ref(true); const loading = ref(false); const tableRef = ref() +const materialIdForm = defineProps(['materialIdForm']); + const queryFormRef = ref(); const materialBomFormRef = ref(); @@ -184,6 +186,9 @@ const { queryParams, form, rules } = toRefs(data); /** 查询物料BOM信息列表 */ const getList = async () => { loading.value = true; + if (materialIdForm.materialIdForm !== null){ + queryParams.value.materialId = materialIdForm.materialIdForm + } const res = await listMaterialBom(queryParams.value); materialBomList.value = res.data; loading.value = false; diff --git a/src/views/mes/planInfo/index.vue b/src/views/mes/planInfo/index.vue index 17f1041..3fe094a 100644 --- a/src/views/mes/planInfo/index.vue +++ b/src/views/mes/planInfo/index.vue @@ -361,7 +361,7 @@ - +