From 22449e0279eff502e4496b57da2ba602360e5b13 Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期三, 25 十一月 2026 13:50:03 +0800
Subject: [PATCH] 回款明细修改
---
src/views/project/unitCost/organfee/index.vue | 115 +++++++++++++++++++++++++++++++++++++++++++++++----------
1 files changed, 95 insertions(+), 20 deletions(-)
diff --git a/src/views/project/unitCost/organfee/index.vue b/src/views/project/unitCost/organfee/index.vue
index 1360086..95ec9de 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"
>
@@ -194,17 +207,12 @@
<el-table-column label="鍥炴鏃ユ湡" width="120" align="center">
<template slot-scope="scope">
- <span>{{ parseTime(scope.row.organtime, "{y}-{m}-{d}") }}</span>
+
+ <span>{{ parseTime(scope.row.amounttime, "{y}-{m}-{d}") }}</span>
</template>
</el-table-column>
<el-table-column prop="name" label="鍙椾綋" width="120" align="center" />
- <el-table-column
- prop="payOrganName"
- label="鍣ㄥ畼鍚嶇О-缁撶畻"
- width="140"
- align="center"
- show-overflow-tooltip
- />
+
<el-table-column
prop="organchargedesc"
label="澶囨敞"
@@ -213,7 +221,7 @@
/>
<el-table-column
label="鎿嶄綔"
- width="210"
+ width="230"
align="center"
fixed="right"
>
@@ -279,11 +287,11 @@
</el-form-item>
</el-col>
<el-col :span="12">
- <el-form-item label="(缁撶畻)鍣ㄥ畼鍚嶇О" prop="payOrganName">
+ <el-form-item label="鍣ㄥ畼鍚嶇О" prop="organname">
<el-input
- v-model="editForm.payOrganName"
+ v-model="editForm.organname"
maxlength="100"
- placeholder="璇疯緭鍏�(缁撶畻)鍣ㄥ畼鍚嶇О"
+ placeholder="璇疯緭鍏ュ櫒瀹樺悕绉�"
/>
</el-form-item>
</el-col>
@@ -325,6 +333,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 +546,8 @@
addDonorchargeorgan,
updateDonorchargeorgan,
delDonorchargeorgan,
- exportOrganfee
+ exportOrganfee,
+ getOrganfeeSummary
} from "@/api/project/donorcharge";
import { listOrganization } from "@/api/project/organization";
@@ -562,6 +582,12 @@
showSearch: true,
// 鎬绘潯鏁�
total: 0,
+ // 鍚堣锛堝簲鏀�/瀹炴敹/鏈洖娆撅級
+ summary: {
+ organchargeTotal: 0,
+ amountTotal: 0,
+ unreceivedTotal: 0
+ },
// 鍣ㄥ畼璐圭敤鍒楄〃
organfeeList: [],
// 琛ㄦ牸褰撳墠閫変腑琛�
@@ -578,7 +604,8 @@
{ value: "4", label: "澶卞姛" },
{ value: "5", label: "鐩寸郴鍏嶉櫎" },
{ value: "6", label: "涓嶈壇浜嬩欢" },
- { value: "7", label: "绉戠爺" }
+ { value: "7", label: "绉戠爺" },
+ { value: "8", label: "鍥炵撼" }
],
// 淇敼寮圭獥
editOpen: false,
@@ -587,13 +614,14 @@
id: null,
hospitalno: null,
hospitalname: null,
- payOrganName: null,
+ organname: null,
caseno: null,
name: null,
organcharge: null,
amount: null,
organState: null,
- organchargedesc: null
+ organchargedesc: null,
+ organtime: null
},
// 鏂板寮圭獥
addOpen: false,
@@ -619,6 +647,7 @@
hospitalno: null,
hospitalnoIsNull: false,
donorname: null,
+ organname: null,
organState: null,
payStatus: null,
paymentid: null,
@@ -646,6 +675,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() {
@@ -814,7 +877,7 @@
? null
: String(row.hospitalno),
hospitalname: row.hospitalname || null,
- payOrganName: row.payOrganName || "",
+ organname: row.organname ,
caseno: row.caseno || "",
name: row.name || "",
organcharge:
@@ -827,7 +890,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 +934,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 +948,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