From 45d4fe24016c03fcccbe7c9798533ca97e2e7aea Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期四, 03 十二月 2026 16:59:34 +0800
Subject: [PATCH] 回款新增和修改问题
---
src/views/project/unitCost/organfee/index.vue | 55 +++++++++++++++++++++++++++++++++++++------------------
1 files changed, 37 insertions(+), 18 deletions(-)
diff --git a/src/views/project/unitCost/organfee/index.vue b/src/views/project/unitCost/organfee/index.vue
index 95ec9de..d6305bc 100644
--- a/src/views/project/unitCost/organfee/index.vue
+++ b/src/views/project/unitCost/organfee/index.vue
@@ -142,13 +142,13 @@
>
<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>
@@ -205,14 +205,12 @@
</template>
</el-table-column>
- <el-table-column label="鍥炴鏃ユ湡" width="120" align="center">
- <template slot-scope="scope">
-
- <span>{{ parseTime(scope.row.amounttime, "{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="name" label="鍙椾綋" width="120" align="center" />
<el-table-column
prop="organchargedesc"
label="澶囨敞"
@@ -338,12 +336,13 @@
</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"
- placeholder="璇烽�夋嫨鏀舵鏃ユ湡"
+ format="yyyy-MM-dd"
+ value-format="yyyy-MM-dd HH:mm"
+ placeholder="璇烽�夋嫨鍥炴鏃ユ湡"
style="width: 100%"
/>
</el-form-item>
@@ -482,12 +481,13 @@
</el-form-item>
</el-col>
<el-col :span="12">
- <el-form-item label="鏀舵鏃ユ湡" prop="organtime">
+ <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>
@@ -565,6 +565,7 @@
organState: null,
organcharge: null,
amount: null,
+ amounttime: null,
organtime: null,
organchargedesc: null
};
@@ -618,9 +619,11 @@
caseno: null,
name: null,
organcharge: null,
- amount: null,
+ amount: null,
+ amounttime: null,
organState: null,
organchargedesc: null,
+ receiveTime: null,
organtime: null
},
// 鏂板寮圭獥
@@ -809,12 +812,14 @@
infoid:
row.infoid === null || row.infoid === undefined ? null : row.infoid,
donorname: row.donorname || null,
+ donationtime: row.donationtime || null,
hospitalno:
row.hospitalno === null || row.hospitalno === undefined
? null
: 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,
@@ -868,6 +873,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 = {
@@ -891,7 +909,8 @@
? null
: String(row.organState),
organchargedesc: row.organchargedesc || "",
- organtime: row.organtime
+ organtime: row.organtime,
+ receiveTime: this.toDateTimeStr(row.receiveTime)
};
this.editOpen = true;
},
--
Gitblit v1.9.3