From 03c9dd7a2247f6cc71588372f1b1ac110f2632d1 Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期二, 03 十一月 2026 09:45:07 +0800
Subject: [PATCH] 器官费用增加删除

---
 src/views/project/unitCost/organfee/index.vue |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/src/views/project/unitCost/organfee/index.vue b/src/views/project/unitCost/organfee/index.vue
index 6989a7b..145ca25 100644
--- a/src/views/project/unitCost/organfee/index.vue
+++ b/src/views/project/unitCost/organfee/index.vue
@@ -182,7 +182,7 @@
       />
       <el-table-column
         label="鎿嶄綔"
-        width="160"
+        width="210"
         align="center"
         fixed="right"
       >
@@ -201,6 +201,13 @@
             @click="handleCharge(scope.row)"
             v-hasPermi="['project:donorchargeorgan:edit']"
             >宸叉敹璐�</el-button
+          >
+          <el-button
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['project:donorchargeorgan:edit']"
+            >鍒犻櫎</el-button
           >
         </template>
       </el-table-column>
@@ -467,6 +474,7 @@
   listDonorchargeorgan,
   addDonorchargeorgan,
   updateDonorchargeorgan,
+  delDonorchargeorgan,
   exportOrganfee
 } from "@/api/project/donorcharge";
 import { listOrganization } from "@/api/project/organization";
@@ -650,6 +658,20 @@
         })
         .catch(() => {});
     },
+    /** 鍒犻櫎鎸夐挳鎿嶄綔 */
+    handleDelete(row) {
+      this.$modal
+        .confirm('鏄惁纭鍒犻櫎鍣ㄥ畼璐圭敤缂栧彿涓�"' + row.id + '"鐨勬暟鎹」锛�')
+        .then(() => delDonorchargeorgan(row.id))
+        .then(() => {
+          this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+          if (this.currentRow && this.currentRow.id === row.id) {
+            this.currentRow = null;
+          }
+          this.getList();
+        })
+        .catch(() => {});
+    },
     /** 琛ㄦ牸褰撳墠琛屽彉鍖� */
     handleCurrentChange(row) {
       this.currentRow = row;

--
Gitblit v1.9.3