From 51101f83762dba9c75f4d757c00edd03c7b6e038 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期四, 26 十一月 2026 10:16:02 +0800
Subject: [PATCH] 修复金额显示问题

---
 src/views/project/tallage/computingBill/index.vue |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/src/views/project/tallage/computingBill/index.vue b/src/views/project/tallage/computingBill/index.vue
index 0f03443..6e2fd6a 100644
--- a/src/views/project/tallage/computingBill/index.vue
+++ b/src/views/project/tallage/computingBill/index.vue
@@ -1268,11 +1268,24 @@
       return sums;
     },
     // 鏂囦欢------------------------
+    /** 2026-11-23锛氭寜鏂囦欢鍚嶄粠鍒楄〃涓簿纭垹闄や竴椤癸紝閬垮厤鐢ㄩ瑙堝垪琛�(blob)鏁磋〃瑕嗙洊闄勪欢瀛楁 */
+    spliceByName(list, name) {
+      if (!list || !name) {
+        return;
+      }
+      const idx = list.findIndex(item => item && item.name === name);
+      if (idx > -1) {
+        list.splice(idx, 1);
+      }
+    },
     remove(file, fileList) {
       const donorchargeorgans = [...this.donorchargeorgans];
 
-      this.fileListto.splice(this.fileListto.indexOf(file), 1);
-      donorchargeorgans[this.atpresent].annexFilesList = this.fileListto;
+      this.spliceByName(this.fileListto, file && file.name);
+      this.spliceByName(
+        donorchargeorgans[this.atpresent].annexFilesList,
+        file && file.name
+      );
     },
 
     uploadSccess(response, file, fileList) {

--
Gitblit v1.9.3