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/SJ/Add.vue | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/pages/QC/SJ/Add.vue b/pages/QC/SJ/Add.vue
index 9d3607f..ae22678 100644
--- a/pages/QC/SJ/Add.vue
+++ b/pages/QC/SJ/Add.vue
@@ -78,13 +78,15 @@
<table v-if="tableData.length > 0">
<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">
@@ -647,14 +649,9 @@
}).then(res => {
this.tableData = res.data.tbBillList;
+ // 鎸塅ORDE...
this.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);
});
if (this.tableData.length <= 0) {
@@ -1689,6 +1686,7 @@
border: none;
text-align: left;
border-bottom: 1px solid #eee;
+ vertical-align: middle;
}
.inspection-table th {
@@ -1717,10 +1715,10 @@
}
/* 妫�楠屾弿杩板垪鐗规畩鏍峰紡 */
-.inspection-table td:nth-child(2) {
+.inspection-table td:nth-child(3) {
position: relative;
min-height: 80px;
- vertical-align: top;
+ vertical-align: middle;
padding: 16px 20px;
}
--
Gitblit v1.9.3