From 59dc3bbd1fdedab400b56d67a169bcda97dcf75e Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期三, 17 十二月 2025 18:51:33 +0800
Subject: [PATCH] SJ,XJ,RKJ优化修改

---
 pages/QC/XJ/Add.vue |   27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/pages/QC/XJ/Add.vue b/pages/QC/XJ/Add.vue
index 76b532d..43b55e2 100644
--- a/pages/QC/XJ/Add.vue
+++ b/pages/QC/XJ/Add.vue
@@ -79,13 +79,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">
@@ -855,16 +857,10 @@
                  pid: this.formData.id
                }
              }).then(res1 => {
-               let tableData = res1.data.tbBillList
-               //褰撳凡妫�楠屼釜鏁伴兘涓嶄负绌烘椂鎸夌収妫�娴嬬粨鏋勬帓搴�
+               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;
                if (this.tableData.length === 0) {
@@ -960,10 +956,15 @@
               userNo: this.$loginInfo.account
             }
           }).then(res => {
-            if (res.data.tbBillList) {
+            if (res.status === 0 && res.data && res.data.tbBillList) {
               this.$showMessage("鎻愪氦鎴愬姛");
               this.init();
+            } else {
+              this.$showMessage(res.message || "鎻愪氦澶辫触");
             }
+          }).catch(err => {
+            console.error("鎻愪氦妫�楠屽け璐�:", err);
+            this.$showMessage(err.message || "鎻愪氦澶辫触锛岃閲嶈瘯");
           });
         }
       },
@@ -1664,6 +1665,7 @@
     padding: 12px 15px;
     text-align: left;
     border: none;
+    vertical-align: middle;
   }
 
   .inspection-table tr:nth-child(even) {
@@ -1713,10 +1715,11 @@
   }
   
   /* 璋冩暣琛ㄦ牸鍗曞厓鏍� */
-  .inspection-table td:nth-child(2) {
+  .inspection-table td:nth-child(3) {
     position: relative;
     overflow: hidden;
     padding: 0;
+    min-height: 80px;
   }
   
   .record-btn {

--
Gitblit v1.9.3