From 3d15065e1a1b5297033cebb87165dd6298706705 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期六, 09 五月 2026 16:30:12 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_NEW_pro' into dev_NEW_pro

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

diff --git a/src/views/productionManagement/processRoute/processRouteItem/index.vue b/src/views/productionManagement/processRoute/processRouteItem/index.vue
index 6d64c30..99d4ab1 100644
--- a/src/views/productionManagement/processRoute/processRouteItem/index.vue
+++ b/src/views/productionManagement/processRoute/processRouteItem/index.vue
@@ -111,6 +111,13 @@
       <el-table-column label="鍗曚綅"
                        prop="unit"
                        width="100" />
+      <el-table-column label="璁¤垂绫诲瀷"
+                       prop="type"
+                       width="100">
+        <template #default="scope">
+          {{scope.row.type==0 ? "璁℃椂" : "璁′欢"}}
+        </template>
+      </el-table-column>
       <el-table-column label="鏄惁璐ㄦ"
                        prop="isQuality"
                        width="100">
@@ -181,12 +188,16 @@
                   {{ item.model }}
                   <!-- <span v-if="item.unit" class="product-unit">{{ item.unit }}</span> -->
                 </div>
+                <el-tag class="product-tag"
+                        :type="item.type == 1 ? 'primary' : 'success'"
+                        style="margin-left: 8px;">{{ item.type==0?'璁℃椂':'璁′欢' }}</el-tag>
                 <el-tag type="primary"
                         class="product-tag"
+                        style="margin-left: 8px;"
                         v-if="item.isQuality">璐ㄦ</el-tag>
                 <el-tag type="primary"
                         class="product-tag"
-                        :style="item.isQuality?'margin-left:8px':''"
+                        style="margin-left: 8px;"
                         v-if="item.isProduction">鐢熶骇</el-tag>
               </div>
               <div v-else
@@ -424,6 +435,13 @@
                       v-else>
           <span>{{ form.unit }}</span>
         </el-form-item>
+        <el-form-item label="璁¤垂绫诲瀷"
+                      prop="type">
+          <el-radio-group v-model="form.type">
+            <el-radio :label="0">璁℃椂</el-radio>
+            <el-radio :label="1">璁′欢</el-radio>
+          </el-radio-group>
+        </el-form-item>
         <el-form-item label="鏄惁璐ㄦ"
                       prop="isQuality">
           <el-switch v-model="form.isQuality"
@@ -558,6 +576,7 @@
     model: "",
     unit: "",
     isQuality: false,
+    type: 0,
     isProduction: false,
   });
 
@@ -687,6 +706,7 @@
       model: row.model || "",
       unit: row.unit || "",
       isQuality: row.isQuality,
+      type: row.type || 0,
       isProduction: row.isProduction,
     };
     dialogVisible.value = true;
@@ -758,6 +778,7 @@
                 operationName: getProcessName(form.value.technologyOperationId),
                 productModelId: form.value.productModelId,
                 isQuality: form.value.isQuality,
+                type: form.value.type,
                 isProduction: form.value.isProduction,
                 dragSort,
               })
@@ -766,6 +787,7 @@
                 technologyOperationId: form.value.technologyOperationId,
                 productModelId: form.value.productModelId,
                 isQuality: form.value.isQuality,
+                type: form.value.type,
                 isProduction: form.value.isProduction,
                 dragSort,
               });
@@ -793,6 +815,7 @@
                 operationName: getProcessName(form.value.technologyOperationId),
                 productModelId: form.value.productModelId,
                 isQuality: form.value.isQuality,
+                type: form.value.type,
                 isProduction: form.value.isProduction,
               })
             : addOrUpdateProcessRouteItem1({
@@ -801,6 +824,7 @@
                 productModelId: form.value.productModelId,
                 id: form.value.id,
                 isQuality: form.value.isQuality,
+                type: form.value.type,
                 isProduction: form.value.isProduction,
               });
 
@@ -832,6 +856,7 @@
       model: "",
       unit: "",
       isQuality: false,
+      type: 0,
       isProduction: false,
     };
     formRef.value?.resetFields();
@@ -1068,6 +1093,7 @@
     processOptions.value.forEach(item => {
       if (item.id == value) {
         form.value.isQuality = item.isQuality;
+        form.value.type = item.type || 0;
         form.value.isProduction = item.isProduction;
       }
     });

--
Gitblit v1.9.3