From c75027743ea7c3ecc2d0885f01d11d2ad78679a3 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期五, 23 十月 2026 14:23:26 +0800
Subject: [PATCH] Merge branch 'yxh' of http://116.62.18.175:6699/r/~yxh/opo-web

---
 src/views/project/fund/applyDetail/index.vue |   46 ++++++++++++++++++++++++++++++++++++----------
 1 files changed, 36 insertions(+), 10 deletions(-)

diff --git a/src/views/project/fund/applyDetail/index.vue b/src/views/project/fund/applyDetail/index.vue
index e12ef3a..b4b6494 100644
--- a/src/views/project/fund/applyDetail/index.vue
+++ b/src/views/project/fund/applyDetail/index.vue
@@ -68,15 +68,7 @@
             <el-form-item label="鎹愮尞妗堜緥" prop="name">
               <el-input :disabled="true" v-model="form.donorname" placeholder="璇疯緭鍏ユ崘鐚�呭鍚�" />
             </el-form-item>
-          </el-col>
-          <el-col :span="4">
-            <div style="margin-left: 10px;">
-              <dict-tag
-                :options="dict.type.sys_DonationStatus"
-                :value="form.invoicecount"
-              />
-            </div>
-          </el-col>
+          </el-col>          
           <el-col :span="10">
             <el-form-item label="鐢宠璇存槑" prop="remark">
               <el-input v-model="form.remark" placeholder="鐢宠璇存槑" />
@@ -2606,6 +2598,23 @@
       });
       this.batchdialogVisible = true;
     },
+    /**
+     * 鏄庣粏琛屾槸鍚︿负銆岀┖璁板綍銆嶏細鏈嶅姟椤圭洰銆佷笓瀹躲�佷笓瀹舵墍鍦ㄥ崟浣� 鏄惁閮戒负绌�
+     * 鐢ㄤ簬鎵归噺褰曞叆涓撳鏃跺垽鏂�"澶嶇敤鏈�鍚庝竴琛�"杩樻槸"杩藉姞鏂拌"
+     */
+    isBlankDetailRow(row) {
+      if (!row) {
+        return false;
+      }
+      const isEmpty = v =>
+        v === null || v === undefined || String(v).trim() === "";
+      return (
+        isEmpty(row.itemid) &&
+        isEmpty(row.beneficiaryname) &&
+        isEmpty(row.unitno) &&
+        isEmpty(row.unitname)
+      );
+    },
     /** 鎵归噺褰曞叆寮规锛氬鍚�/鍗曚綅/宸ュ彿/韬唤璇佸悗4浣� 鍛戒腑鍒ゆ柇 */
     personMatchKeyword(item, kw) {
       const idcard = String(item.idcrad || "");
@@ -2631,6 +2640,17 @@
           existed[String(row.beneficiaryname).trim()] = true;
         }
       });
+
+      // 2026-10-22锛氫慨姝�"瀵煎叆鍚庤〃鏍煎鍑轰竴琛岀┖璁板綍"銆�
+      // 瑙勫垯锛氬厛鐪嬫渶鍚庝竴鏉¤褰曪紝鑻ュ畠鐨�"鏈嶅姟椤圭洰 / 涓撳 / 涓撳鎵�鍦ㄥ崟浣�"閮芥槸绌虹殑锛�
+      // 璇存槑鏄竴鏉$┖璁板綍锛屽氨浠庤繖涓�琛屽紑濮嬪~锛涘惁鍒欒拷鍔犳柊琛屻��
+      let writeIndex = this.rbDetails.length;
+      if (
+        writeIndex > 0 &&
+        this.isBlankDetailRow(this.rbDetails[writeIndex - 1])
+      ) {
+        writeIndex -= 1;
+      }
 
       const duplicated = [];
       this.checkedCities.forEach(item => {
@@ -2690,7 +2710,13 @@
           annexfiles: null
         };
 
-        this.rbDetails.push(rowData);
+        if (writeIndex < this.rbDetails.length) {
+          // 澶嶇敤鏈�鍚庨偅鏉$┖璁板綍
+          this.rbDetails.splice(writeIndex, 1, rowData);
+        } else {
+          this.rbDetails.push(rowData);
+        }
+        writeIndex++;
       });
       for (let i = 0; i < this.rbDetails.length; i++) {
         this.rbDetails[i].orderno = i + 1;

--
Gitblit v1.9.3