From 4a9c0f7ddb5eae77b1f833bd2223e33fe6bb2918 Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期四, 30 十月 2025 12:41:24 +0800
Subject: [PATCH] XJ,SJ,RKJ序号排序,LLJ单个检验项目FTP附件

---
 pages/QC/RKJ/Add.vue |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/pages/QC/RKJ/Add.vue b/pages/QC/RKJ/Add.vue
index 00437a2..b9edee2 100644
--- a/pages/QC/RKJ/Add.vue
+++ b/pages/QC/RKJ/Add.vue
@@ -197,13 +197,15 @@
 			<table>
 				<thead>
 					<tr>
-						<th width="20%" style="text-align: center;">妫�楠岄」鐩�</th>
+						<th width="8%" style="text-align: center;">搴忓彿</th>
+						<th width="17%" style="text-align: center;">妫�楠岄」鐩�</th>
 						<th width="50%" style="text-align: center;">妫�楠屾弿杩�</th>
 						<th width="15%" style="text-align: center;">璁板綍(鐐瑰嚮)</th>
 					</tr>
 				</thead>
 				<tbody>
 					<tr v-for="(item, index) in tableData" :key="index">
+						<td style="text-align: center;">{{ item.forder || (index + 1) }}</td>
 						<td>{{ item.projName }}</td>
 						<td>
 							<view v-if="item.result=='鍚堟牸'" class="watermark approved">
@@ -990,16 +992,10 @@
 					}
 				}).then(res1 => {
 					let tableData = res1.data.tbBillList || [];
-
-					//褰撳凡妫�楠屼釜鏁伴兘涓嶄负绌烘椂鎸夌収妫�娴嬬粨鏋勬帓搴�
+					
+					// 鎸塅ORDER搴忓彿鎺掑簭
 					tableData.sort((a, b) => {
-						if (a.result === '鏈畬鎴�' && b.result === '鍚堟牸') {
-							return -1;
-						} else if (a.result === '鍚堟牸' && b.result === '鏈畬鎴�') {
-							return 1;
-						} else {
-							return 0;
-						}
+						return (a.forder || 0) - (b.forder || 0);
 					});
 					this.tableData = tableData;
 
@@ -2625,6 +2621,7 @@
 		padding: 12px 15px;
 		border: 1px solid #ddd;
 		text-align: left;
+		vertical-align: middle;
 	}
 
 	.inspection-table th {
@@ -2678,10 +2675,11 @@
 	}
 
 	/* 璋冩暣琛ㄦ牸鍗曞厓鏍� */
-	.inspection-table td:nth-child(2) {
+	.inspection-table td:nth-child(3) {
 		position: relative;
 		overflow: hidden;
 		padding: 0;
+		min-height: 80px;
 	}
 
 	/* 琛ㄥ崟涓婃柟鎿嶄綔鎸夐挳鍖烘牱寮� */

--
Gitblit v1.9.3