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 |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/src/views/project/tallage/computingBill/index.vue b/src/views/project/tallage/computingBill/index.vue
index 8e485f2..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>
@@ -308,6 +306,8 @@
                   <el-select
                     v-model="patientqueryParams.donorname"
                     filterable
+                    allow-create
+                    default-first-option
                     placeholder="璇烽�夋嫨"
                   >
                     <el-option
@@ -605,7 +605,6 @@
         // pacheckno: "047",
         // checkstatus: 0,
         pfundtaxid: 0,
-        departid: 0,
         pageNum: 1,
         pageSize: 10
       },
@@ -799,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);
@@ -871,7 +876,6 @@
       if (this.multipleSelection.length <= selection.length) {
         this.multipleSelection = selection;
       } else {
-        console.log(11);
         this.multipleSelection.forEach(item => {
           if (selection.includes(item)) {
           } else {

--
Gitblit v1.9.3