From 0293d4f776f88ebc307a750f38a16454f4553701 Mon Sep 17 00:00:00 2001
From: zjh <2207896513@qq.com>
Date: 星期二, 19 八月 2025 21:01:35 +0800
Subject: [PATCH] 首检、巡检一致性前端代码提交

---
 pages/QC/SJ/List.vue |   32 ++++++++++++++++++++++++++------
 1 files changed, 26 insertions(+), 6 deletions(-)

diff --git a/pages/QC/SJ/List.vue b/pages/QC/SJ/List.vue
index 0360664..6a25c8b 100644
--- a/pages/QC/SJ/List.vue
+++ b/pages/QC/SJ/List.vue
@@ -35,9 +35,15 @@
           <view v-if="item.urgent == 1" class="badge urgent">鎬ユ枡</view>
           <view v-if="item.isFirst == 1" class="badge normal">棣栨</view>
           <view class="card-title">妫�楠屽崟鍙�: {{ item.billNo }}</view>
-          <view :class="{'status-pending': current === 0, 'status-assigned': current === 0 && item.statusUser, 'status-pass': current === 1 && item.result === '鍚堟牸', 'status-fail': current === 1 && item.result === '涓嶅悎鏍�'}"
+          <view :class="{
+                  'status-pending': !item.result && current === 0,
+                  'status-assigned': current === 0 && item.statusUser && !item.result,
+                  'status-pass': item.result === '鍚堟牸',
+                  'status-fail': item.result === '涓嶅悎鏍�',
+                  'status-submitted': !item.result && current === 1
+                }"
                 class="status">
-            {{ current === 0 ? (item.statusUser ? '宸插垎閰�' : '鏈彁浜�') : (item.result ? item.result : '宸叉彁浜�') }}
+            {{ current === 0 ? (item.result ? item.result : '鏈彁浜�') : (item.result ? item.result : '宸叉彁浜�') }}
           </view>
         </view>
 
@@ -189,9 +195,18 @@
       this.init();
     },
     navigateToDetail(item) {
-      uni.navigateTo({
-        url: 'Add?id=' + item.id + '&billNo=' + item.billNo
-      });
+		if (this.current === 1) {
+		 uni.navigateTo({
+		   url: 'Add?id=' + item.id + '&billNo=' + item.billNo+
+							'&current=B'
+		 });
+		}else{
+			uni.navigateTo({
+			  url: 'Add?id=' + item.id + '&billNo=' + item.billNo+
+										'&current=A'
+			});
+		}
+    
     }
   },
   /**
@@ -460,7 +475,12 @@
 }
 
 .status-fail {
-  background: linear-gradient(135deg, #e74c3c, #c0392b);
+  background: linear-gradient(135deg, #3498db, #2980b9);
+  color: white;
+}
+
+.status-submitted {
+  background: linear-gradient(135deg, #95a5a6, #7f8c8d);
   color: white;
 }
 

--
Gitblit v1.9.3