From 2cdbad409e82d4354e4eca5cffa65c6bef7a4d20 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期一, 16 三月 2026 13:36:37 +0800
Subject: [PATCH] bom添加产品编码
---
src/views/productionManagement/processRoute/index.vue | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/views/productionManagement/processRoute/index.vue b/src/views/productionManagement/processRoute/index.vue
index e971c9b..afdd542 100644
--- a/src/views/productionManagement/processRoute/index.vue
+++ b/src/views/productionManagement/processRoute/index.vue
@@ -783,7 +783,7 @@
const product = products[0];
// 鍏堟煡璇OM鍒楄〃锛堝繀閫夛級
try {
- const res = await getByModel(product.skuId);
+ const res = await getByModel(product.id);
// 澶勭悊杩斿洖鐨凚OM鏁版嵁锛氬彲鑳芥槸鏁扮粍銆佸璞℃垨鍖呭惈data瀛楁
let bomList = [];
if (Array.isArray(res)) {
@@ -795,9 +795,9 @@
}
if (bomList.length > 0) {
- routeForm.productModelId = product.skuId;
- routeForm.productName = product.materialName;
- routeForm.productModelName = product.specification;
+ routeForm.productModelId = product.id;
+ routeForm.productName = product.productName;
+ routeForm.productModelName = product.model;
routeForm.bomId = undefined; // 閲嶇疆BOM閫夋嫨
bomOptions.value = bomList;
showProductSelectDialog.value = false;
--
Gitblit v1.9.3