From 1d312fd64674b43ed3489d05f6704e4cdbdfc5b7 Mon Sep 17 00:00:00 2001 From: hwj Date: Mon, 20 Apr 2026 16:24:08 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E4=BA=A7=E5=93=81BOM-=E4=BA=A7?= =?UTF-8?q?=E5=93=81BOM=E6=98=8E=E7=BB=86-=E5=8D=95=E4=BD=8D=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=B8=A6=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/bom/components/BomDetailForm.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/views/mes/bom/components/BomDetailForm.vue b/src/views/mes/bom/components/BomDetailForm.vue index 66de58bf..012910db 100644 --- a/src/views/mes/bom/components/BomDetailForm.vue +++ b/src/views/mes/bom/components/BomDetailForm.vue @@ -17,6 +17,7 @@ clearable filterable :placeholder="t('FactoryModeling.ProductBOM.detailMaterialPlaceholder')" + @change="(val) => handleProductChange(val, row)" > { + if (productId) { + const product = productList.value.find((item) => item.id === productId) + row.unitId = product?.unitId ?? undefined + } else { + row.unitId = undefined + } +} + /** 新增按钮操作 */ const handleAdd = () => { const row = {