From 4c9fdc87987140e8b2c3f0dfc2f6608cdb6be774 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 21 十月 2026 17:39:24 +0800
Subject: [PATCH] 青岛维护

---
 src/views/project/tallage/computingBill/index.vue |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/views/project/tallage/computingBill/index.vue b/src/views/project/tallage/computingBill/index.vue
index 5556c94..f671052 100644
--- a/src/views/project/tallage/computingBill/index.vue
+++ b/src/views/project/tallage/computingBill/index.vue
@@ -236,7 +236,6 @@
                 <el-button
                   type="text"
                   @click="handleDelete(scope.row)"
-                  v-hasPermi="['system:donorcharge:remove']"
                   ><span class="button-delete"
                     ><i class="el-icon-delete"></i>鍒犻櫎</span
                   ></el-button
@@ -245,7 +244,6 @@
                   type="text"
                   icon="el-icon-folder-opened"
                   @click="Filepopup(scope.$index, scope.row)"
-                  v-hasPermi="['system:donorcharge:edit']"
                   >闄勪欢</el-button
                 > -->
               </template>
@@ -800,11 +798,17 @@
     handleUploadError() {},
     // 寮规娣诲姞
     AddDispatchpatients() {
-      this.donorchargeorgans = this.donorchargeorgans.concat(this.overallCase);
-      console.log(this.donorchargeorgans, "donorchargeorgans");
-      this.donorchargeorgans.forEach(item => {
-        CalculationDetail({ id: item.id, fundTaxId: this.form.id });
+      let newArr = this.donorchargeorgans.concat(this.overallCase);
+      this.donorchargeorgans = newArr.filter((item, index, self) => {
+        return !self.slice(index + 1).some(other => other.id === item.id);
       });
+
+      console.log(this.donorchargeorgans, "donorchargeorgans");
+      if (this.form.id) {
+        this.donorchargeorgans.forEach(item => {
+          CalculationDetail({ id: item.id, fundTaxId: this.form.id });
+        });
+      }
       this.donorchargeorgans.forEach(item => {
         item.taXmoney = item.pretaxcost - item.taxedcost;
         item.taXmoney = item.taXmoney.toFixed(2);

--
Gitblit v1.9.3