From 72780bc3f7a4b47ebba49f28f4ffe219c14349ba Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 01 七月 2026 11:16:01 +0800
Subject: [PATCH] 不合格处理调整&合格率统计调整

---
 src/views/business/unpass/components/OAProcess.vue |   91 +++++++++++++++++++++++++++++++++------------
 1 files changed, 67 insertions(+), 24 deletions(-)

diff --git a/src/views/business/unpass/components/OAProcess.vue b/src/views/business/unpass/components/OAProcess.vue
index 7b4e8e6..4f31879 100644
--- a/src/views/business/unpass/components/OAProcess.vue
+++ b/src/views/business/unpass/components/OAProcess.vue
@@ -12,6 +12,7 @@
         <el-timeline-item
           placement="top"
           v-for="node in isOldData?oldNodes:newNodes"
+          v-if="(node.classType && node.classType===classType) || node.classType==='-1'"
           :key="node.id"
           :timestamp="node.name"
           :icon="node.hasData ? 'el-icon-check' : 'el-icon-time'"
@@ -29,7 +30,7 @@
                 <span class="value">{{ node.time || "-" }}</span>
               </div>
               <div class="detail-item">
-                <span class="label">{{node.name && node.name==='1妫�楠屽憳'?'涓嶅悎鏍兼弿杩帮細':'澶勭悊鎰忚锛�'}}</span>
+                <span class="label">{{node.infoTitle}}</span>
                 <span class="value">{{ node.info || "-" }}</span>
               </div>
             </div>
@@ -66,7 +67,9 @@
         {
           id: 1,
           name: "1妫�楠屽憳",
+          classType: '-1',
           info: "",
+          infoTitle:"涓嶅悎鏍兼儏鍐垫弿杩�:",
           time: "",
           operator: "",
           operation: "",
@@ -75,6 +78,8 @@
         {
           id: 2,
           name: "2妫�娴嬩富绠$‘璁�",
+          classType: '-1',
+          infoTitle:"澶勭悊鎰忚:",
           info: "",
           time: "",
           operator: "",
@@ -84,6 +89,8 @@
         {
           id: 3,
           name: "3鐗╂祦閮ㄧ‘璁�",
+          classType: '-1',
+          infoTitle:"澶勭悊鎰忚:",
           info: "",
           time: "",
           operator: "",
@@ -93,6 +100,8 @@
         {
           id: 4,
           name: "4浜у搧宸ョ▼甯堝鐞嗘剰瑙�",
+          classType: '-1',
+          infoTitle:"澶勭悊鎰忚:",
           info: "",
           time: "",
           operator: "",
@@ -102,6 +111,8 @@
         {
           id: 5,
           name: "5.鎬诲伐鎴栬�呭壇缁忕悊鐨勫鐞嗘剰瑙�",
+          classType: '-1',
+          infoTitle:"澶勭悊鎰忚:",
           info: "",
           time: "",
           operator: "",
@@ -111,6 +122,8 @@
         {
           id: 6,
           name: "6璐ㄩ噺閮ㄥ鐞嗘剰瑙�",
+          classType: '-1',
+          infoTitle:"澶勭悊鎰忚:",
           info: "",
           time: "",
           operator: "",
@@ -120,6 +133,8 @@
         {
           id: 7,
           name: "7璐ㄩ噺閮ㄧ粡鐞�",
+          classType: '-1',
+          infoTitle:"澶勭悊鎰忚:",
           info: "",
           time: "",
           operator: "",
@@ -129,6 +144,8 @@
         {
           id: 8,
           name: "8鏍哥畻鍛�",
+          classType: '-1',
+          infoTitle:"澶勭悊鎰忚:",
           info: "",
           time: "",
           operator: "",
@@ -138,6 +155,8 @@
         {
           id: 9,
           name: "9鐗╂祦閮ㄧ储璧旂粨鏋�",
+          classType: '-1',
+          infoTitle:"澶勭悊鎰忚:",
           info: "",
           time: "",
           operator: "",
@@ -149,8 +168,10 @@
       newNodes:[
         {
           id: 1,
+          classType: "-1",
           name: "1鐢宠",
           info: "",
+          infoTitle:"涓嶅悎鏍兼儏鍐垫弿杩�:",
           time: "",
           operator: "",
           operation: "",
@@ -158,8 +179,10 @@
         },
         {
           id: 2,
-          name: "2璐ㄩ噺閮ㄧ粡鐞�",
+          classType: "-1",
+          name: "2璐ㄩ噺缁忕悊",
           info: "",
+          infoTitle:"瀵逛笉鍚堟牸浜у搧鐨勫鐞嗚姹�:",
           time: "",
           operator: "",
           operation: "",
@@ -167,7 +190,9 @@
         },
         {
           id: 3,
+          classType: "0",
           name: "3宸ヨ壓锛堜竴绫讳笉鍚堟牸锛�",
+          infoTitle:"鏀硅繘瑕佹眰:",
           info: "",
           time: "",
           operator: "",
@@ -176,7 +201,9 @@
         },
         {
           id: 4,
+          classType: "1",
           name: "3宸ヨ壓锛堜簩绫讳笉鍚堟牸锛�",
+          infoTitle:"鏀硅繘瑕佹眰:",
           info: "",
           time: "",
           operator: "",
@@ -185,8 +212,10 @@
         },
         {
           id: 5,
+          classType: "0",
           name: "4鎶�鏈粡鐞嗭紙涓�绫讳笉鍚堟牸锛�",
           info: "",
+          infoTitle:"鎺柦瑕佹眰:",
           time: "",
           operator: "",
           operation: "",
@@ -194,8 +223,10 @@
         },
         {
           id: 6,
+          classType: "1",
           name: "4鎶�鏈粡鐞嗭紙浜岀被涓嶅悎鏍硷級",
           info: "",
+          infoTitle:"鎺柦瑕佹眰:",
           time: "",
           operator: "",
           operation: "",
@@ -203,8 +234,10 @@
         },
         {
           id: 7,
+          classType: "0",
           name: "5鏍哥畻锛堜竴绫讳笉鍚堟牸锛�",
           info: "",
+          infoTitle:"绱㈣禂瑕佹眰(浜烘皯甯丷MB锟�):",
           time: "",
           operator: "",
           operation: "",
@@ -212,46 +245,56 @@
         },
         {
           id: 8,
+          classType: "1",
           name: "5鎬荤粡鐞嗭紙浜岀被涓嶅悎鏍硷級",
           info: "",
+          infoTitle:"鏈�缁堝鐞嗘剰瑙�:",
           time: "",
           operator: "",
           operation: "",
           hasData: false,
         },
-        {
-          id: 9,
-          name: "6褰掓。锛堜竴绫讳笉鍚堟牸锛�",
-          info: "",
-          time: "",
-          operator: "",
-          operation: "",
-          hasData: false,
-        },
+        // {
+        //   id: 9,
+        //   classType: "0",
+        //   name: "6褰掓。锛堜竴绫讳笉鍚堟牸锛�",
+        //   info: "",
+        //   infoTitle:"澶勭悊鎰忚:",
+        //   time: "",
+        //   operator: "",
+        //   operation: "",
+        //   hasData: false,
+        // },
         {
           id: 10,
+          classType: "1",
           name: "6鏍哥畻锛堜簩绫讳笉鍚堟牸锛�",
           info: "",
+          infoTitle:"绱㈣禂瑕佹眰(浜烘皯甯丷MB锟�):",
           time: "",
           operator: "",
           operation: "",
           hasData: false,
         },
-        {
-          id: 11,
-          name: "7褰掓。锛堜簩绫讳笉鍚堟牸锛�",
-          info: "",
-          time: "",
-          operator: "",
-          operation: "",
-          hasData: false,
-        },
-      ]
+        // {
+        //   id: 11,
+        //   classType: "1",
+        //   name: "7褰掓。锛堜簩绫讳笉鍚堟牸锛�",
+        //   info: "",
+        //   infoTitle:"澶勭悊鎰忚:",
+        //   time: "",
+        //   operator: "",
+        //   operation: "",
+        //   hasData: false,
+        // },
+      ],
+      classType:null,
     };
   },
   // 鏂规硶闆嗗悎
   methods: {
-    getInfo(id,unqualifiedDesc) {
+    getInfo(id,unqualifiedDesc,classType) {
+      if(classType)this.classType = classType;
       getOaFlow({
         id: id,
       })
@@ -264,7 +307,7 @@
                 const node = nodes.find((n) => n.name === item.nodeName);
                 if (node) {
                   node.time = item.approvalDate + " " + item.approvalTime;
-                  if(item.nodeName && item.nodeName==="1妫�楠屽憳"){
+                  if(item.nodeName && ['1妫�楠屽憳','1鐢宠'].includes(item.nodeName)){
                     node.info=unqualifiedDesc;
                   }else{
                     node.info = item.approvalOpinion;
@@ -318,7 +361,7 @@
   font-weight: 500;
   color: #606266;
   margin-right: 8px;
-  min-width: 90px;
+  min-width: 110px;
 }
 
 .value {

--
Gitblit v1.9.3