From c7eacb6595669c8de3465513b88590955e473900 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期四, 02 四月 2026 10:42:35 +0800
Subject: [PATCH] fix: 进行中状态的生产订单的工艺路线禁止增删改

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

diff --git a/src/views/productionManagement/processRoute/processRouteItem/index.vue b/src/views/productionManagement/processRoute/processRouteItem/index.vue
index a2c5ce5..5963998 100644
--- a/src/views/productionManagement/processRoute/processRouteItem/index.vue
+++ b/src/views/productionManagement/processRoute/processRouteItem/index.vue
@@ -177,7 +177,7 @@
       <div class="section-header">
         <div class="section-title">BOM</div>
         <div class="section-actions"
-             v-if="pageType === 'order'">
+             v-if="pageType === 'order' && !routeInfo.status">
           <el-button type="primary"
                      @click="toggleBomEdit">
             {{ bomDataValue.isEdit ? '鍙栨秷' : '缂栬緫' }}
@@ -383,7 +383,7 @@
     <ProcessParamListDialog v-model="showParamListDialog"
                             :title="`${currentProcess ? getProcessName(currentProcess.processId) : ''} - 鍙傛暟鍒楄〃`"
                             :route-id="routeId"
-                            :editable="editable"
+                            :editable="editable && !routeInfo.status"
                             :order-id="orderId"
                             :process="currentProcess"
                             :page-type="pageType"
@@ -548,7 +548,7 @@
       dictLabel: route.query.dictLabel || "",
       bomId: route.query.bomId || null,
       description: route.query.description || "",
-      status: route.query.status === "true" ? true : false,
+      status: route.query.status != 1,
     };
     if (pageType.value === "order") {
       queryList2(route.query.orderId)
@@ -1026,6 +1026,7 @@
 
   // 鍒濆鍖栨嫋鎷芥帓搴�
   const initSortable = () => {
+    if (routeInfo.value.status) return;
     destroySortable();
 
     if (viewMode.value === "table") {

--
Gitblit v1.9.3