From ad5e7a527167a86ca7969e874df9950a5c4e2ff9 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期五, 30 十月 2026 09:57:41 +0800
Subject: [PATCH] 器官收费

---
 src/views/project/fund/performancedetails/index.vue |   55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 54 insertions(+), 1 deletions(-)

diff --git a/src/views/project/fund/performancedetails/index.vue b/src/views/project/fund/performancedetails/index.vue
index fcc2577..bbddd00 100644
--- a/src/views/project/fund/performancedetails/index.vue
+++ b/src/views/project/fund/performancedetails/index.vue
@@ -296,6 +296,31 @@
               </template>
             </el-table-column>
             <el-table-column
+              prop="deptName"
+              align="center"
+              label="缁╂晥绉戝"
+              width="160"
+            >
+              <template slot-scope="scope">
+                <el-select
+                  v-model="scope.row.deptId"
+                  size="mini"
+                  clearable
+                  filterable
+                  placeholder="璇烽�夋嫨缁╂晥绉戝"
+                  style="width: 100%"
+                  @change="value => handleRowDeptChange(scope.row, value)"
+                >
+                  <el-option
+                    v-for="dept in deptList"
+                    :key="dept.deptId"
+                    :label="dept.deptName"
+                    :value="dept.deptId"
+                  />
+                </el-select>
+              </template>
+            </el-table-column>
+            <el-table-column
               prop="isunit"
               align="center"
               label="浜哄憳绫诲埆"
@@ -871,7 +896,8 @@
             :label="city"
             :key="city.id"
             >{{ city.username }}{{ city.isUnitPerson ? "锛堝崟浣嶏級" : ""
-            }}{{ city.unitname ? " 路 " + city.unitname : "" }}</el-checkbox
+            }}{{ city.unitname ? " 路 " + city.unitname : ""
+            }}{{ city.deptName ? " 路 绉戝锛�" + city.deptName : "" }}</el-checkbox
           >
         </el-checkbox-group>
       </div>
@@ -928,6 +954,7 @@
 import { listItemexpense } from "@/api/project/itemexpense";
 
 import { getUserProfile } from "@/api/system/user";
+import { listDept } from "@/api/system/dept";
 import Li_area_select from "@/components/Address";
 import OrgSelecter from "@/views/project/components/orgselect";
 import { getToken } from "@/utils/auth";
@@ -983,6 +1010,8 @@
       expertlist: [],
       //鍖荤枟鏈烘瀯鍒楄〃
       unitList: [],
+      //缁╂晥绉戝鍒楄〃
+      deptList: [],
       //璐圭敤鎶ラ攢鏈烘瀯鍒楄〃
       feeUnitList: [],
       batchdialogVisible: false,
@@ -2015,6 +2044,25 @@
       });
     },
 
+    /** 缁╂晥绉戝鍒楄〃 */
+    getDeptList() {
+      listDept({}).then(res => {
+        this.deptList = res.data || [];
+      });
+    },
+
+    /** 琛ㄦ牸鍐呯洿鎺ヤ慨鏀圭哗鏁堢瀹わ細鍚屾鍚嶇О */
+    handleRowDeptChange(row, deptId) {
+      if (deptId === null || deptId === undefined || deptId === "") {
+        this.$set(row, "deptName", null);
+        return;
+      }
+      const dept = this.deptList.find(
+        item => String(item.deptId) === String(deptId)
+      );
+      this.$set(row, "deptName", dept ? dept.deptName : null);
+    },
+
     //鑾峰彇鍖荤枟鏈烘瀯鍒楄〃
     getUnitList() {
       listOrganization(3).then(response => {
@@ -2522,6 +2570,8 @@
           isunit: isunit ? 1 : 0,
           unitname: item.unitname,
           unitno: item.unitno,
+          deptId: item.deptId,
+          deptName: item.deptName,
           uintuserno: null,
           title: item.title,
           idcardtype: null,
@@ -2747,6 +2797,8 @@
         singleDetail.title = person.title;
         singleDetail.unitname = person.unitname;
         singleDetail.unitno = person.unitno;
+        singleDetail.deptId = person.deptId;
+        singleDetail.deptName = person.deptName;
       } else {
         // 鎵嬪伐杈撳叆鐨勪汉鍛橈細鍙啓濮撳悕锛岃韩浠借瘉鍙�/閾惰璐﹀彿鐢辩粡鍔炰汉濉啓
         singleDetail.beneficiaryname = String(key);
@@ -3175,6 +3227,7 @@
     this.getExternalList();
     this.getFeeUnitList();
     this.listperformance();
+    this.getDeptList();
   },
 
   //鐢熷懡鍛ㄦ湡 - 鎸傝浇瀹屾垚锛堝彲浠ヨ闂瓺OM鍏冪礌锛�

--
Gitblit v1.9.3