From 12ed29b3cd8471e6145cd847c6e33d6aa2f535ba Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期二, 10 十一月 2026 10:32:44 +0800
Subject: [PATCH] 器官费用,发票管理修改
---
src/views/project/unitCost/organfee/index.vue | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 57 insertions(+), 2 deletions(-)
diff --git a/src/views/project/unitCost/organfee/index.vue b/src/views/project/unitCost/organfee/index.vue
index c3afdba..7f64c2a 100644
--- a/src/views/project/unitCost/organfee/index.vue
+++ b/src/views/project/unitCost/organfee/index.vue
@@ -63,6 +63,16 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
+ <el-form-item label="鍣ㄥ畼鍚嶇О" prop="organname">
+ <el-input
+ v-model="queryParams.organname"
+ placeholder="璇疯緭鍏ュ櫒瀹樺悕绉�"
+ clearable
+ size="small"
+ style="width: 160px"
+ @keyup.enter.native="handleQuery"
+ />
+ </el-form-item>
<el-form-item label="鍒╃敤鐘舵��" prop="organState">
<el-select
v-model="queryParams.organState"
@@ -125,6 +135,8 @@
v-loading="loading"
border
:data="organfeeList"
+ show-summary
+ :summary-method="getSummaries"
highlight-current-row
@current-change="handleCurrentChange"
>
@@ -214,7 +226,7 @@
/>
<el-table-column
label="鎿嶄綔"
- width="210"
+ width="230"
align="center"
fixed="right"
>
@@ -539,7 +551,8 @@
addDonorchargeorgan,
updateDonorchargeorgan,
delDonorchargeorgan,
- exportOrganfee
+ exportOrganfee,
+ getOrganfeeSummary
} from "@/api/project/donorcharge";
import { listOrganization } from "@/api/project/organization";
@@ -574,6 +587,12 @@
showSearch: true,
// 鎬绘潯鏁�
total: 0,
+ // 鍚堣锛堝簲鏀�/瀹炴敹/鏈洖娆撅級
+ summary: {
+ organchargeTotal: 0,
+ amountTotal: 0,
+ unreceivedTotal: 0
+ },
// 鍣ㄥ畼璐圭敤鍒楄〃
organfeeList: [],
// 琛ㄦ牸褰撳墠閫変腑琛�
@@ -632,6 +651,7 @@
hospitalno: null,
hospitalnoIsNull: false,
donorname: null,
+ organname: null,
organState: null,
payStatus: null,
paymentid: null,
@@ -659,6 +679,40 @@
.finally(() => {
this.loading = false;
});
+ this.getSummary();
+ },
+ /** 鏌ヨ鍚堣锛堝簲鏀�/瀹炴敹/鏈洖娆撅級锛屾寜褰撳墠鏌ヨ鏉′欢缁熻鍏ㄩ儴缁撴灉 */
+ getSummary() {
+ getOrganfeeSummary(this.queryParams)
+ .then(response => {
+ const data = response.data || {};
+ this.summary = {
+ organchargeTotal: Number(data.organchargeTotal || 0),
+ amountTotal: Number(data.amountTotal || 0),
+ unreceivedTotal: Number(data.unreceivedTotal || 0)
+ };
+ })
+ .catch(() => {});
+ },
+ /** 琛ㄦ牸搴曢儴鍚堣琛� */
+ getSummaries({ columns }) {
+ const sums = [];
+ columns.forEach((column, index) => {
+ if (index === 0) {
+ sums[index] = "鍚堣";
+ return;
+ }
+ if (column.property === "organcharge") {
+ sums[index] = this.summary.organchargeTotal.toFixed(2);
+ } else if (column.property === "amount") {
+ sums[index] = this.summary.amountTotal.toFixed(2);
+ } else if (column.label === "鏈洖娆鹃噾棰�") {
+ sums[index] = this.summary.unreceivedTotal.toFixed(2);
+ } else {
+ sums[index] = "";
+ }
+ });
+ return sums;
},
/** 瀵煎嚭鎸夐挳鎿嶄綔 */
handleExport() {
@@ -884,6 +938,7 @@
this.queryParams.hospitalnoIsNull = false;
this.queryParams.hospitalno = null;
this.queryParams.donorname = null;
+ this.queryParams.organname = null;
this.queryParams.organState = null;
this.queryParams.payStatus = null;
this.queryParams.starttime = null;
--
Gitblit v1.9.3