From a6cdc43d699044409e06c78583a2337ccaa3b96e Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期三, 04 十一月 2026 14:41:27 +0800
Subject: [PATCH] 器官回款机构搜索

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

diff --git a/src/views/project/unitCost/organfee/index.vue b/src/views/project/unitCost/organfee/index.vue
index 53ee03d..202e73b 100644
--- a/src/views/project/unitCost/organfee/index.vue
+++ b/src/views/project/unitCost/organfee/index.vue
@@ -10,19 +10,24 @@
     >
       <el-form-item label="鍥炴鍖婚櫌" prop="hospitalno">
         <el-select
-          v-model="queryParams.hospitalno"
+          v-model="hospitalFilter"
           placeholder="璇烽�夋嫨鍥炴鍖婚櫌"
           clearable
           filterable
           size="small"
           style="width: 200px"
+          @change="handleHospitalFilterChange" 
+          filterable鈥�
+          allow-create
         >
+         <el-option label="鏈~鍐欏洖娆惧尰闄�" value="__EMPTY__" />
           <el-option
             v-for="item in organizationList"
             :key="item.organizationid"
             :label="item.organizationname"
-            :value="item.organizationid"
+            :value="String(item.organizationid)"
           />
+         
         </el-select>
       </el-form-item>      
       <el-form-item label="鍥炴鐘舵��" prop="payStatus">
@@ -303,6 +308,41 @@
             </el-form-item>
           </el-col>
           <el-col :span="12">
+            <el-form-item label="搴旀敹閲戦" prop="organcharge">
+              <el-input-number
+                v-model="editForm.organcharge"
+                :min="0"
+                :precision="2"
+                :controls="false"
+                placeholder="璇疯緭鍏ュ簲鏀堕噾棰�"
+                style="width: 100%"
+              />
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="瀹炴敹閲戦" prop="amount">
+              <el-input-number
+                v-model="editForm.amount"
+                :min="0"
+                :precision="2"
+                :controls="false"
+                placeholder="璇疯緭鍏ュ疄鏀堕噾棰�"
+                style="width: 100%"
+              />
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="鏀舵鏃ユ湡" prop="organtime">
+              <el-date-picker
+                v-model="editForm.organtime"
+                type="date"
+                value-format="yyyy-MM-dd"
+                placeholder="璇烽�夋嫨鏀舵鏃ユ湡"
+                style="width: 100%"
+              />
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
             <el-form-item label="鍒╃敤鐘舵��" prop="organState">
               <el-select
                 v-model="editForm.organState"
@@ -563,8 +603,11 @@
         payOrganName: null,
         caseno: null,
         name: null,
+        organcharge: null,
+        amount: null,
         organState: null,
-        organchargedesc: null
+        organchargedesc: null,
+        organtime: null
       },
       // 鏂板寮圭獥
       addOpen: false,
@@ -582,10 +625,13 @@
         ]
       },
       // 鏌ヨ鍙傛暟
+      // 鍥炴鍖婚櫌绛涢�夛紙__EMPTY__ 琛ㄧず鏈~鍐欙級
+      hospitalFilter: null,
       queryParams: {
         pageNum: 1,
         pageSize: 10,
         hospitalno: null,
+        hospitalnoIsNull: false,
         donorname: null,
         organState: null,
         payStatus: null,
@@ -773,7 +819,7 @@
           });
       });
     },
-    /** 鎵撳紑淇敼寮圭獥锛堜粯娆惧尰闄€�佷粯娆惧櫒瀹樺悕绉般�佸櫒瀹樼姸鎬併�佸娉級 */
+    /** 鎵撳紑淇敼寮圭獥锛堝洖娆惧尰闄€�佷粯娆惧櫒瀹樺悕绉般�侀噾棰濄�佸埄鐢ㄧ姸鎬併�佸娉級 */
     handleEdit(row) {
       this.editForm = {
         id: row.id,
@@ -785,11 +831,18 @@
         payOrganName: row.payOrganName || "",
         caseno: row.caseno || "",
         name: row.name || "",
+        organcharge:
+          row.organcharge === null || row.organcharge === undefined
+            ? null
+            : row.organcharge,
+        amount:
+          row.amount === null || row.amount === undefined ? null : row.amount,
         organState:
           row.organState === null || row.organState === undefined
             ? null
             : String(row.organState),
-        organchargedesc: row.organchargedesc || ""
+        organchargedesc: row.organchargedesc || "",
+        organtime: row.organtime
       };
       this.editOpen = true;
     },
@@ -828,6 +881,8 @@
     /** 閲嶇疆鎸夐挳鎿嶄綔 */
     resetQuery() {
       this.donatetimeRange = [];
+      this.hospitalFilter = null;
+      this.queryParams.hospitalnoIsNull = false;
       this.queryParams.hospitalno = null;
       this.queryParams.donorname = null;
       this.queryParams.organState = null;
@@ -837,6 +892,27 @@
       this.queryParams.pageNum = 1;
       this.getList();
     },
+    /** 鍥炴鍖婚櫌绛涢�夛細__EMPTY__ 琛ㄧず鍙煡鏈~鍐欏洖娆惧尰闄㈢殑鏁版嵁 */
+    handleHospitalFilterChange(value) {
+      if (value === "__EMPTY__") {
+        this.queryParams.hospitalno = null;
+        this.queryParams.hospitalnoIsNull = true;
+      } else {
+        const selectedOption = this.organizationList.findIndex(item => item.organizationid === value);
+        if(selectedOption==-1){
+          this.queryParams.hospitalname = value;
+          this.queryParams.hospitalno=null;
+        } 
+        else{
+          this.queryParams.hospitalno=value;
+          this.queryParams.hospitalname=null;
+        }
+          
+  
+        this.queryParams.hospitalnoIsNull = false;
+      }
+      this.queryParams.pageNum = 1;
+    },
     /** 鎶ュ憡鏃ユ湡鍖洪棿 -> 鏌ヨ鍙傛暟锛屾湭閫夋嫨鏃朵紶 null锛岄伩鍏嶅悗绔嫾鍑� donatetime >= '' */
     handleDonatetimeChange(val) {
       if (val && val.length === 2) {

--
Gitblit v1.9.3