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 | 91 ++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 85 insertions(+), 6 deletions(-)
diff --git a/src/views/project/unitCost/organfee/index.vue b/src/views/project/unitCost/organfee/index.vue
index 1360086..7f64c2a 100644
--- a/src/views/project/unitCost/organfee/index.vue
+++ b/src/views/project/unitCost/organfee/index.vue
@@ -16,7 +16,8 @@
filterable
size="small"
style="width: 200px"
- @change="handleHospitalFilterChange"
+ @change="handleHospitalFilterChange"
+ allow-create
>
<el-option label="鏈~鍐欏洖娆惧尰闄�" value="__EMPTY__" />
<el-option
@@ -59,6 +60,16 @@
placeholder="璇疯緭鍏ユ崘鐚�呭鍚�"
clearable
size="small"
+ @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>
@@ -124,6 +135,8 @@
v-loading="loading"
border
:data="organfeeList"
+ show-summary
+ :summary-method="getSummaries"
highlight-current-row
@current-change="handleCurrentChange"
>
@@ -213,7 +226,7 @@
/>
<el-table-column
label="鎿嶄綔"
- width="210"
+ width="230"
align="center"
fixed="right"
>
@@ -325,6 +338,17 @@
: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>
@@ -527,7 +551,8 @@
addDonorchargeorgan,
updateDonorchargeorgan,
delDonorchargeorgan,
- exportOrganfee
+ exportOrganfee,
+ getOrganfeeSummary
} from "@/api/project/donorcharge";
import { listOrganization } from "@/api/project/organization";
@@ -562,6 +587,12 @@
showSearch: true,
// 鎬绘潯鏁�
total: 0,
+ // 鍚堣锛堝簲鏀�/瀹炴敹/鏈洖娆撅級
+ summary: {
+ organchargeTotal: 0,
+ amountTotal: 0,
+ unreceivedTotal: 0
+ },
// 鍣ㄥ畼璐圭敤鍒楄〃
organfeeList: [],
// 琛ㄦ牸褰撳墠閫変腑琛�
@@ -593,7 +624,8 @@
organcharge: null,
amount: null,
organState: null,
- organchargedesc: null
+ organchargedesc: null,
+ organtime: null
},
// 鏂板寮圭獥
addOpen: false,
@@ -619,6 +651,7 @@
hospitalno: null,
hospitalnoIsNull: false,
donorname: null,
+ organname: null,
organState: null,
payStatus: null,
paymentid: null,
@@ -646,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() {
@@ -827,7 +894,8 @@
row.organState === null || row.organState === undefined
? null
: String(row.organState),
- organchargedesc: row.organchargedesc || ""
+ organchargedesc: row.organchargedesc || "",
+ organtime: row.organtime
};
this.editOpen = true;
},
@@ -870,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;
@@ -883,7 +952,17 @@
this.queryParams.hospitalno = null;
this.queryParams.hospitalnoIsNull = true;
} else {
- this.queryParams.hospitalno = value;
+ 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;
--
Gitblit v1.9.3