From 61a07fff05fbaf6ea85e48af0eed43f379011a45 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期四, 05 六月 2025 21:48:35 +0800
Subject: [PATCH] 11

---
 pages/QC/LLJ/List.vue |   33 ++++++++++++++++++++++++++++++---
 1 files changed, 30 insertions(+), 3 deletions(-)

diff --git a/pages/QC/LLJ/List.vue b/pages/QC/LLJ/List.vue
index 24ee681..73ab441 100644
--- a/pages/QC/LLJ/List.vue
+++ b/pages/QC/LLJ/List.vue
@@ -12,6 +12,14 @@
 			</view>
 			
 			<view class="filter-controls" style="margin-bottom: 5px;">
+				<view class="status-tabs" style="margin-right: 10px;">
+					<button :class="['tab-button', arrivalFilter === -1 ? 'active' : '']"
+						@click="switchArrivalFilter(-1)">鍏ㄩ儴</button>
+					<button :class="['tab-button', arrivalFilter === 1 ? 'active' : '']"
+						@click="switchArrivalFilter(1)">宸插埌杈�</button>
+					<button :class="['tab-button', arrivalFilter === 0 ? 'active' : '']"
+						@click="switchArrivalFilter(0)">鏈埌杈�</button>
+				</view>
 				
 			<view class="dropdown-filter">
 				<picker @change="onProjectChange" :value="projectIndex" :range="projects">
@@ -68,6 +76,8 @@
 					<text class="badge normal" v-if="item.ftype == 1">濮斿</text>
 					<text class="badge normal" v-if="item.first == 1">棣栨鏉ユ枡</text>
 					<text class="card-title">妫�楠屽崟鍙�: {{item.releaseNo}}</text>
+					<text class="status arrived" v-if="item.isArrival == 1">宸插埌杈�</text>
+					<text class="status not-arrived" v-if="item.isArrival == 0">鏈埌杈�</text>
 					<text class="status pending" v-if="item.userName==null && item.activeTab==0">寰呭垎閰�</text>
 					<text class="status assigned" v-if="item.userName!=null && item.activeTab==0">宸插垎閰�</text>
 					<text class="status pass" v-if="item.fcheckResu=='鍚堟牸' && item.activeTab==1">鍚堟牸</text>
@@ -165,8 +175,7 @@
 				searchValue: '',
 				startDate:new Date().toISOString().slice(0, 10),
 				endDate:new Date().toISOString().slice(0, 10),
-				
-
+				arrivalFilter: -1,
 			}
 		},
 		onLoad() {
@@ -227,7 +236,8 @@
 						userIndex: this.projectIndex,
 						startDate:this.startDate,
 						endDate:this.endDate,
-						state:this.state[this.stateIndex]
+						state:this.state[this.stateIndex],
+						arrivalFilter: this.arrivalFilter
 					}
 				}).then(res => {
 					if (this.pageIndex === 1) {
@@ -364,6 +374,12 @@
 				}
 				await this.init(); // 鑷畾涔夌殑鍒锋柊鍑芥暟
 
+			},
+			switchArrivalFilter(filter) {
+				this.arrivalFilter = filter;
+				this.pageIndex = 1;
+				this.inspectionList = [];
+				this.init();
 			}
 		}
 	}
@@ -533,6 +549,7 @@
 		padding: 4px 8px;
 		border-radius: 4px;
 		font-weight: 500;
+		margin-left: 8px;
 	}
 
 	.status.pending {
@@ -545,6 +562,16 @@
 		color: white;
 	}
 
+	.status.arrived {
+		background-color: #00cd00;
+		color: white;
+	}
+
+	.status.not-arrived {
+		background-color: #95a5a6;
+		color: white;
+	}
+
 	.status.pass {
 		background-color: #00cd00;
 		color: white;

--
Gitblit v1.9.3