From 1c9ee4095d176ac8a361c44b43399e2b42a480e5 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期四, 03 十二月 2026 17:57:42 +0800
Subject: [PATCH] 回款列表
---
src/views/project/unitCost/organfee/index.vue | 239 +++++++++++++++++++++++++++++++++++++++++++++--------------
1 files changed, 180 insertions(+), 59 deletions(-)
diff --git a/src/views/project/unitCost/organfee/index.vue b/src/views/project/unitCost/organfee/index.vue
index 202e73b..cd889f6 100644
--- a/src/views/project/unitCost/organfee/index.vue
+++ b/src/views/project/unitCost/organfee/index.vue
@@ -17,7 +17,6 @@
size="small"
style="width: 200px"
@change="handleHospitalFilterChange"
- filterable鈥�
allow-create
>
<el-option label="鏈~鍐欏洖娆惧尰闄�" value="__EMPTY__" />
@@ -61,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>
@@ -126,31 +135,33 @@
v-loading="loading"
border
:data="organfeeList"
+ show-summary
+ :summary-method="getSummaries"
highlight-current-row
@current-change="handleCurrentChange"
>
<el-table-column type="index" label="搴忓彿" width="55" align="center" />
<el-table-column
- prop="donatetime"
+ prop="donationtime"
label="鎹愮尞鏃ユ湡"
width="120"
align="center"
>
<template slot-scope="scope">
- <span>{{ parseTime(scope.row.donatetime, "{y}-{m}-{d}") }}</span>
+ <span>{{ parseTime(scope.row.donationtime, "{y}-{m}-{d}") }}</span>
</template>
</el-table-column>
<el-table-column
prop="donorname"
label="鎹愮尞鑰�"
- width="120"
+ width="100"
align="center"
/>
<el-table-column
prop="organname"
label="鍣ㄥ畼鍚嶇О"
- width="120"
+ width="100"
align="center"
/>
@@ -160,7 +171,7 @@
align="center"
show-overflow-tooltip
/>
- <el-table-column label="鍒╃敤鐘舵��" width="120" align="center">
+ <el-table-column label="鍒╃敤鐘舵��" width="100" align="center">
<template slot-scope="scope">
<span>{{ selectOrganState(scope.row.organState) }}</span>
</template>
@@ -168,16 +179,16 @@
<el-table-column
prop="hospitalname"
label="鍥炴鍖婚櫌"
- width="200"
+ width="240"
align="center"
/>
<el-table-column
prop="organcharge"
label="搴旀敹閲戦"
- width="120"
+ width="100"
align="center"
/>
- <el-table-column label="鍥炴鐘舵��" width="100" align="center">
+ <el-table-column label="鍥炴鐘舵��" width="80" align="center">
<template slot-scope="scope">
<span>{{ payStatus(scope.row) }}</span>
</template>
@@ -188,25 +199,18 @@
width="120"
align="center"
/>
- <el-table-column label="鏈洖娆鹃噾棰�" width="160" align="center">
+ <el-table-column label="鏈洖娆鹃噾棰�" width="100" align="center">
<template slot-scope="scope">
<span>{{ formatReceivableDiff(scope.row) }}</span>
</template>
</el-table-column>
- <el-table-column label="鍥炴鏃ユ湡" width="120" align="center">
- <template slot-scope="scope">
- <span>{{ parseTime(scope.row.organtime, "{y}-{m}-{d}") }}</span>
+ <el-table-column label="鍥炴鏃ユ湡" width="120" align="center" prop="receiveTime">
+ <template slot-scope="scope">
+ <span>{{ parseTime(scope.row.receiveTime, "{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="name" label="鍙椾綋" width="90" align="center" />
<el-table-column
prop="organchargedesc"
label="澶囨敞"
@@ -215,7 +219,7 @@
/>
<el-table-column
label="鎿嶄綔"
- width="210"
+ width="230"
align="center"
fixed="right"
>
@@ -261,6 +265,27 @@
>
<el-form ref="editForm" :model="editForm" label-width="110px">
<el-row :gutter="20">
+ <el-col :span="12">
+ <el-form-item label="鎹愮尞鑰�" prop="donorname">
+ <el-input
+ v-model="editForm.donorname"
+ maxlength="50"
+ placeholder="璇疯緭鍏ユ崘鐚��"
+ />
+ </el-form-item>
+ </el-col>
+ <el-col :span="12">
+ <el-form-item label="鎹愮尞鏃ユ湡" prop="donationtime">
+ <el-date-picker
+ v-model="editForm.donationtime"
+ type="datetime"
+ format="yyyy-MM-dd"
+ value-format="yyyy-MM-dd HH:mm"
+ placeholder="璇烽�夋嫨鎹愮尞鏃ユ湡"
+ style="width: 100%"
+ />
+ </el-form-item>
+ </el-col>
<el-col :span="12">
<el-form-item label="鍥炴鍖婚櫌" prop="hospitalno">
<el-select
@@ -281,11 +306,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>
@@ -305,6 +330,22 @@
maxlength="50"
placeholder="璇疯緭鍏ュ彈浣�"
/>
+ </el-form-item>
+ </el-col>
+ <el-col :span="12">
+ <el-form-item label="鍒╃敤鐘舵��" prop="organState">
+ <el-select
+ v-model="editForm.organState"
+ placeholder="璇烽�夋嫨鍣ㄥ畼鍒╃敤鐘舵��"
+ style="width: 100%"
+ >
+ <el-option
+ v-for="item in organStateList"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ />
+ </el-select>
</el-form-item>
</el-col>
<el-col :span="12">
@@ -332,32 +373,30 @@
</el-form-item>
</el-col>
<el-col :span="12">
- <el-form-item label="鏀舵鏃ユ湡" prop="organtime">
+ <el-form-item label="鍥炴鏃ユ湡" prop="receiveTime">
<el-date-picker
- v-model="editForm.organtime"
+ v-model="editForm.receiveTime"
type="date"
- value-format="yyyy-MM-dd"
+ format="yyyy-MM-dd"
+ value-format="yyyy-MM-dd HH:mm"
+ placeholder="璇烽�夋嫨鍥炴鏃ユ湡"
+ style="width: 100%"
+ />
+ </el-form-item>
+ </el-col>
+ <!-- <el-col :span="12">
+ <el-form-item label="鏀舵鏃ユ湡" prop="amounttime">
+ <el-date-picker
+ v-model="editForm.amounttime"
+ type="datetime"
+ format="yyyy-MM-dd HH:mm"
+ value-format="yyyy-MM-dd HH:mm"
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"
- placeholder="璇烽�夋嫨鍣ㄥ畼鍒╃敤鐘舵��"
- style="width: 100%"
- >
- <el-option
- v-for="item in organStateList"
- :key="item.value"
- :label="item.label"
- :value="item.value"
- />
- </el-select>
- </el-form-item>
- </el-col>
+ </el-col> -->
+
<el-col :span="24">
<el-form-item label="澶囨敞" prop="organchargedesc">
<el-input
@@ -401,6 +440,18 @@
v-model="addForm.donorname"
maxlength="50"
placeholder="璇疯緭鍏ユ崘鐚��"
+ />
+ </el-form-item>
+ </el-col>
+ <el-col :span="12">
+ <el-form-item label="鎹愮尞鏃ユ湡" prop="donationtime">
+ <el-date-picker
+ v-model="addForm.donationtime"
+ type="datetime"
+ format="yyyy-MM-dd"
+ value-format="yyyy-MM-dd HH:mm"
+ placeholder="璇烽�夋嫨鎹愮尞鏃ユ湡"
+ style="width: 100%"
/>
</el-form-item>
</el-col>
@@ -474,18 +525,19 @@
/>
</el-select>
</el-form-item>
- </el-col>
- <el-col :span="12">
- <el-form-item label="鏀舵鏃ユ湡" prop="organtime">
+ </el-col>
+ <!-- <el-col :span="12">
+ <el-form-item label="鍥炴鏃ユ湡" prop="amounttime">
<el-date-picker
- v-model="addForm.organtime"
+ v-model="addForm.amounttime"
type="date"
- value-format="yyyy-MM-dd"
- placeholder="璇烽�夋嫨鏀舵鏃ユ湡"
+ format="yyyy-MM-dd"
+ value-format="yyyy-MM-dd HH:mm"
+ placeholder="璇烽�夋嫨鍥炴鏃ユ湡"
style="width: 100%"
/>
</el-form-item>
- </el-col>
+ </el-col> -->
<el-col :span="12">
<el-form-item label="搴旀敹閲戦" prop="organcharge">
<el-input-number
@@ -540,7 +592,8 @@
addDonorchargeorgan,
updateDonorchargeorgan,
delDonorchargeorgan,
- exportOrganfee
+ exportOrganfee,
+ getOrganfeeSummary
} from "@/api/project/donorcharge";
import { listOrganization } from "@/api/project/organization";
@@ -558,6 +611,8 @@
organState: null,
organcharge: null,
amount: null,
+ donationtime: null,
+ amounttime: null,
organtime: null,
organchargedesc: null
};
@@ -575,6 +630,12 @@
showSearch: true,
// 鎬绘潯鏁�
total: 0,
+ // 鍚堣锛堝簲鏀�/瀹炴敹/鏈洖娆撅級
+ summary: {
+ organchargeTotal: 0,
+ amountTotal: 0,
+ unreceivedTotal: 0
+ },
// 鍣ㄥ畼璐圭敤鍒楄〃
organfeeList: [],
// 琛ㄦ牸褰撳墠閫変腑琛�
@@ -591,7 +652,8 @@
{ value: "4", label: "澶卞姛" },
{ value: "5", label: "鐩寸郴鍏嶉櫎" },
{ value: "6", label: "涓嶈壇浜嬩欢" },
- { value: "7", label: "绉戠爺" }
+ { value: "7", label: "绉戠爺" },
+ { value: "8", label: "鍥炵撼" }
],
// 淇敼寮圭獥
editOpen: false,
@@ -600,13 +662,17 @@
id: null,
hospitalno: null,
hospitalname: null,
- payOrganName: null,
+ donorname: null,
+ organname: null,
caseno: null,
name: null,
organcharge: null,
- amount: null,
+ amount: null,
+ amounttime: null,
organState: null,
organchargedesc: null,
+ donationtime: null,
+ receiveTime: null,
organtime: null
},
// 鏂板寮圭獥
@@ -633,6 +699,7 @@
hospitalno: null,
hospitalnoIsNull: false,
donorname: null,
+ organname: null,
organState: null,
payStatus: null,
paymentid: null,
@@ -660,6 +727,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() {
@@ -766,6 +867,7 @@
: String(row.hospitalno),
hospitalname: row.hospitalname || null,
organname: row.organname || null,
+ organno: row.organno || null,
payOrganName: row.payOrganName || null,
caseno: row.caseno || null,
name: row.name || null,
@@ -779,7 +881,8 @@
: row.organcharge,
amount:
row.amount === null || row.amount === undefined ? null : row.amount,
- organtime: row.organtime || null,
+ amounttime: this.toDateTimeStr(row.amounttime),
+ donationtime: this.toDateTimeStr(row.donationtime),
organchargedesc: row.organchargedesc || null
};
this.addOpen = true;
@@ -819,6 +922,19 @@
});
});
},
+ /**
+ * 2026-12-03锛氭妸鎺ュ彛杩斿洖鐨勬棩鏈熷�肩粺涓�瑙勬暣涓� yyyy-MM-dd HH:mm銆�
+ * 鍚庣鍏ㄥ眬 Jackson 閰嶇疆鎶� Date 鍑哄弬缁熶竴鎴� "yyyy-MM-dd HH:mm"锛圝acksonDateConfig锛夛紝
+ * 鑰屽巻鍙叉帴鍙�/鍏朵粬妯″潡涔熷彲鑳借繑鍥� "yyyy-MM-dd"銆両SO銆佹椂闂存埑锛�
+ * 缁熶竴鍦ㄨ繖閲岃浆涓�娆★紝淇濊瘉 date-picker锛坴alue-format="yyyy-MM-dd HH:mm"锛夎兘姝g‘鍥炴樉銆�
+ */
+ toDateTimeStr(value) {
+ if (!value) {
+ return null;
+ }
+ const m = this.$moment(value);
+ return m.isValid() ? m.format("YYYY-MM-DD HH:mm") : null;
+ },
/** 鎵撳紑淇敼寮圭獥锛堝洖娆惧尰闄€�佷粯娆惧櫒瀹樺悕绉般�侀噾棰濄�佸埄鐢ㄧ姸鎬併�佸娉級 */
handleEdit(row) {
this.editForm = {
@@ -828,7 +944,7 @@
? null
: String(row.hospitalno),
hospitalname: row.hospitalname || null,
- payOrganName: row.payOrganName || "",
+ organname: row.organname ,
caseno: row.caseno || "",
name: row.name || "",
organcharge:
@@ -842,7 +958,11 @@
? null
: String(row.organState),
organchargedesc: row.organchargedesc || "",
- organtime: row.organtime
+ organtime: row.organtime,
+ receiveTime: this.toDateTimeStr(row.receiveTime),
+ amounttime: this.toDateTimeStr(row.amounttime),
+ donationtime: this.toDateTimeStr(row.donationtime),
+ donorname: row.donorname
};
this.editOpen = true;
},
@@ -885,6 +1005,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