From cdc6decaadbc0abbe46167a0796fa7f701443d7f Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期五, 05 九月 2025 13:14:35 +0800
Subject: [PATCH] llj优化

---
 pages/QC/LLJ/List.vue |   70 +++++++++++++++++++++--------------
 1 files changed, 42 insertions(+), 28 deletions(-)

diff --git a/pages/QC/LLJ/List.vue b/pages/QC/LLJ/List.vue
index b4ad25c..27c565e 100644
--- a/pages/QC/LLJ/List.vue
+++ b/pages/QC/LLJ/List.vue
@@ -78,10 +78,7 @@
 							<text class="info-label">鏁伴噺</text>
 							<text class="info-content highlight">{{item.fcovertQty}}</text>
 						</view>
-						<view class="info-item" v-if="item.jyxm !== null && item.jyxm !== undefined">
-							<text class="info-label">妫�楠岄」鐩�</text>
-							<text class="info-content">{{item.jyxm}}</text>
-						</view>
+
 					</view>
 					<view class="info-row">
 						<view class="info-item">
@@ -368,18 +365,18 @@
 			
 			// 鏍规嵁妫�楠岄」鐩暟閲忚幏鍙栫姸鎬佹枃鏈�
 			getStatusText(item) {
-				// 濡傛灉娌℃湁妫�楠岄」鐩紝鏄剧ず"鏈淮鎶�"
-				if (!item.inspectionItemCount || item.inspectionItemCount === 0) {
+				// 浣跨敤JYXM瀛楁鍒ゆ柇鏄惁缁存姢浜嗘楠岄」鐩�
+				if (item.jyxm === 0 || item.jyxm === '0') {
 					return '鏈淮鎶�';
 				}
-				// 濡傛灉鏈夋楠岄」鐩紝鏄剧ず"寰呮楠�"
+				// 濡傛灉缁存姢浜嗘楠岄」鐩紝鏄剧ず"寰呮楠�"
 				return '寰呮楠�';
 			},
 			
 			// 鍒ゆ柇鏄惁涓烘湭缁存姢涓旈潪绱ф�ユ斁琛�
 			isUnmaintainedAndNotEmergency(item) {
-				// 妫�鏌ユ槸鍚︿负鏈淮鎶わ紙娌℃湁妫�楠岄」鐩級
-				const isUnmaintained = !item.inspectionItemCount || item.inspectionItemCount === 0;
+				// 浣跨敤JYXM瀛楁妫�鏌ユ槸鍚︿负鏈淮鎶わ紙0琛ㄧず鏈淮鎶わ級
+				const isUnmaintained = item.jyxm === 0 || item.jyxm === '0';
 				// 妫�鏌ユ槸鍚︿负闈炵揣鎬ユ斁琛�
 				const isNotEmergency = item.lotNo1 !== '绱ф�ユ斁琛岋紝璇峰嬁楠岄��!';
 				return isUnmaintained && isNotEmergency;
@@ -396,32 +393,44 @@
 			// 瀵规楠屽崟鍒楄〃杩涜鎺掑簭
 			sortInspectionList(list) {
 				return list.sort((a, b) => {
-					// 绗竴浼樺厛绾э細鏈彁浜ゆ牎楠岀殑绱ф�ユ斁琛�
-					const aIsEmergencyPending = a.lotNo1 === '绱ф�ユ斁琛岋紝璇峰嬁楠岄��!' && this.activeTab === 0;
-					const bIsEmergencyPending = b.lotNo1 === '绱ф�ユ斁琛岋紝璇峰嬁楠岄��!' && this.activeTab === 0;
+					// 绗竴浼樺厛绾э細鐘舵�佸垎缁勶紙鏈彁浜� vs 宸叉彁浜わ級
+					const aIsSubmitted = a.status === '宸叉彁浜�';
+					const bIsSubmitted = b.status === '宸叉彁浜�';
 					
-					if (aIsEmergencyPending && !bIsEmergencyPending) return -1;
-					if (!aIsEmergencyPending && bIsEmergencyPending) return 1;
+					if (aIsSubmitted && !bIsSubmitted) return 1; // 宸叉彁浜ょ殑鎺掑湪鍚庨潰
+					if (!aIsSubmitted && bIsSubmitted) return -1; // 鏈彁浜ょ殑鎺掑湪鍓嶉潰
 					
-					// 绗簩浼樺厛绾э細鏈淮鎶ゆ楠岄」鐩紙闈炵揣鎬ユ斁琛岋級
-					const aIsUnmaintained = this.isUnmaintainedAndNotEmergency(a);
-					const bIsUnmaintained = this.isUnmaintainedAndNotEmergency(b);
-					
-					if (aIsUnmaintained && !bIsUnmaintained) return -1;
-					if (!aIsUnmaintained && bIsUnmaintained) return 1;
-					
-					// 绗笁浼樺厛绾э細鍒涘缓鏃堕棿锛堟湭鎻愪氦鐨勬寜鍒涘缓鏃堕棿鍗囧簭锛屽凡鎻愪氦鐨勬寜鎻愪氦鏃堕棿闄嶅簭锛�
-					if (this.activeTab === 0) {
-						// 鏈楠岋細鎸夊垱寤烘椂闂村崌搴忥紙瓒婃棭瓒婇潬鍓嶏級
+					// 鏈彁浜ゅ崟鎹殑鎺掑簭閫昏緫
+					if (!aIsSubmitted && !bIsSubmitted) {
+						// 绗竴浼樺厛绾э細绱ф�ユ斁琛�
+						const aIsEmergency = a.lotNo1 === '绱ф�ユ斁琛岋紝璇峰嬁楠岄��!';
+						const bIsEmergency = b.lotNo1 === '绱ф�ユ斁琛岋紝璇峰嬁楠岄��!';
+						
+						if (aIsEmergency && !bIsEmergency) return -1;
+						if (!aIsEmergency && bIsEmergency) return 1;
+						
+						// 绗簩浼樺厛绾э細鏈淮鎶ゆ楠岄」鐩紙浣跨敤JYXM瀛楁锛�
+						const aIsUnmaintained = a.jyxm === 0 || a.jyxm === '0';
+						const bIsUnmaintained = b.jyxm === 0 || b.jyxm === '0';
+						
+						if (aIsUnmaintained && !bIsUnmaintained) return -1;
+						if (!aIsUnmaintained && bIsUnmaintained) return 1;
+						
+						// 绗笁浼樺厛绾э細鍒涘缓鏃堕棿锛堝垱寤烘椂闂磋秺鏅氳秺闈犲悗锛�
 						const aCreateTime = new Date(a.createDate || 0);
 						const bCreateTime = new Date(b.createDate || 0);
-						return aCreateTime - bCreateTime;
-					} else {
-						// 宸叉楠岋細鎸夋彁浜ゆ椂闂撮檷搴忥紙瓒婃櫄瓒婇潬鍓嶏級
+						return aCreateTime - bCreateTime; // 鍗囧簭锛氭棭鐨勫湪鍓嶏紝鏅氱殑鍦ㄥ悗
+					}
+					
+					// 宸叉彁浜ゅ崟鎹殑鎺掑簭閫昏緫
+					if (aIsSubmitted && bIsSubmitted) {
+						// 鎸夋彁浜ゆ椂闂存帓搴忥紙鎻愪氦鐨勮秺鏅氳秺闈犲墠锛�
 						const aIqcTime = new Date(a.iqcDate || 0);
 						const bIqcTime = new Date(b.iqcDate || 0);
-						return bIqcTime - aIqcTime;
+						return bIqcTime - aIqcTime; // 闄嶅簭锛氭櫄鐨勫湪鍓嶏紝鏃╃殑鍦ㄥ悗
 					}
+					
+					return 0;
 				});
 			}
 		}
@@ -653,6 +662,11 @@
 		color: #2c3e50;
 		line-height: 1.5;
 	}
+	
+	.info-content.unmaintained {
+		color: #e74c3c;
+		font-weight: 600;
+	}
 
 	.highlight {
 		font-weight: 600;

--
Gitblit v1.9.3