From 533d1e4ae9ffeafdd9ff65ddcefd7bd005f7d78c Mon Sep 17 00:00:00 2001
From: ZN <zhang_12370@163.com>
Date: 星期三, 01 四月 2026 15:13:33 +0800
Subject: [PATCH] feat(生产管理): 增强BOM信息展示并调整工序配置

---
 src/views/productionManagement/processRoute/processRouteItem/index.vue |   31 ++++++++++++++++++++++++++++++-
 1 files changed, 30 insertions(+), 1 deletions(-)

diff --git a/src/views/productionManagement/processRoute/processRouteItem/index.vue b/src/views/productionManagement/processRoute/processRouteItem/index.vue
index 99d89a9..51271b2 100644
--- a/src/views/productionManagement/processRoute/processRouteItem/index.vue
+++ b/src/views/productionManagement/processRoute/processRouteItem/index.vue
@@ -37,6 +37,14 @@
             <span class="info-value">{{ routeInfo.bomNo || '-' }}</span>
           </div>
         </div>
+        <div class="info-item">
+          <div class="info-label-wrapper">
+            <span class="info-label">BOM鍚嶇О</span>
+          </div>
+          <div class="info-value-wrapper">
+            <span class="info-value">{{ routeInfo.bomName || '-' }}</span>
+          </div>
+        </div>
         <div class="info-item full-width" v-if="routeInfo.description">
           <div class="info-label-wrapper">
             <span class="info-label">鎻忚堪</span>
@@ -82,6 +90,11 @@
       <el-table-column label="浜у搧鍚嶇О" prop="productName" min-width="160" />
       <el-table-column label="瑙勬牸鍚嶇О" prop="model" min-width="140" />
       <el-table-column label="鍗曚綅" prop="unit" width="100" />
+      <el-table-column label="鏄惁璐ㄦ" prop="isQuality" width="100">
+        <template #default="scope">
+          {{scope.row.isQuality ? "鏄�" : "鍚�"}}
+        </template>
+      </el-table-column>
       <el-table-column label="鎿嶄綔" align="center" fixed="right" width="150">
         <template #default="scope">
           <el-button type="primary" link size="small" @click="handleEdit(scope.row)" :disabled="scope.row.isComplete">缂栬緫</el-button>
@@ -130,6 +143,7 @@
                 {{ item.model }}
                 <!-- <span v-if="item.unit" class="product-unit">{{ item.unit }}</span> -->
               </div>
+              <el-tag type="primary" class="product-tag" v-if="item.isQuality">璐ㄦ</el-tag>
             </div>
             <div v-else class="product-info empty">鏆傛棤浜у搧淇℃伅</div>
           </div>
@@ -189,11 +203,15 @@
               :disabled="true" 
           />
         </el-form-item>
+
+        <el-form-item label="鏄惁璐ㄦ" prop="isQuality">
+          <el-switch v-model="form.isQuality" :active-value="true" inactive-value="false"/>
+        </el-form-item>
       </el-form>
 
       <template #footer>
-        <el-button @click="closeDialog">鍙栨秷</el-button>
         <el-button type="primary" @click="handleSubmit" :loading="submitLoading">纭畾</el-button>
+        <el-button @click="closeDialog">鍙栨秷</el-button>
       </template>
     </el-dialog>
 
@@ -262,6 +280,7 @@
   productName: "",
   model: "",
   unit: "",
+  isQuality: false,
 });
 
 const rules = {
@@ -318,6 +337,7 @@
     productName: route.query.productName || '',
     model: route.query.model || '',
     bomNo: route.query.bomNo || '',
+    bomName: route.query.bomName || '',
     description: route.query.description || ''
   };
 };
@@ -340,6 +360,7 @@
     productName: row.productName || "",
     model: row.model || "",
     unit: row.unit || "",
+    isQuality: row.isQuality,
   };
   dialogVisible.value = true;
 };
@@ -402,12 +423,14 @@
               productRouteId: routeId.value,
               processId: form.value.processId,
               productModelId: form.value.productModelId,
+              isQuality: form.value.isQuality,
               dragSort,
             })
           : addOrUpdateProcessRouteItem({
               routeId: routeId.value,
               processId: form.value.processId,
               productModelId: form.value.productModelId,
+              isQuality: form.value.isQuality,
               dragSort,
             });
 
@@ -432,12 +455,14 @@
               id: form.value.id,
               processId: form.value.processId,
               productModelId: form.value.productModelId,
+              isQuality: form.value.isQuality,
             })
           : addOrUpdateProcessRouteItem({
               routeId: routeId.value,
               processId: form.value.processId,
               productModelId: form.value.productModelId,
               id: form.value.id,
+              isQuality: form.value.isQuality,
             });
 
         updatePromise
@@ -733,6 +758,10 @@
   color: #409eff;
 }
 
+.product-tag {
+  margin: 10px 0;
+}
+
 .card-footer {
   display: flex;
   justify-content: space-around;

--
Gitblit v1.9.3