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/fund/performancedetails/index.vue | 67 +++++++++-
src/views/project/fund/applyDetail/index.vue | 71 ++++++++++-
src/views/project/travelexpenseapply/travelexpensedetail/index.vue | 69 ++++++++++-
src/views/project/unitCost/organfee/index.vue | 55 ++++++---
src/views/project/tallage/computingBill/index.vue | 64 ++++++++--
5 files changed, 269 insertions(+), 57 deletions(-)
diff --git a/src/views/project/fund/applyDetail/index.vue b/src/views/project/fund/applyDetail/index.vue
index 381772a..62dc708 100644
--- a/src/views/project/fund/applyDetail/index.vue
+++ b/src/views/project/fund/applyDetail/index.vue
@@ -304,7 +304,7 @@
<i class="el-icon-warning-outline" />
褰撳墠涓烘煡鐪嬫ā寮忥紝涓嶈兘涓婁紶闄勪欢
</div>
- <el-table ref="annexTable" :data="fileListto" :row-class-name="annexRowClass" @row-click="downFile" style="width: 100%" height="400">
+ <el-table ref="annexTable" :data="fileListto" :row-class-name="annexRowClass" @row-click="previewInline" @row-dblclick="downFile" style="width: 100%" height="400">
<el-table-column prop="name" :show-overflow-tooltip="true" label="鍚嶇О">
<template slot-scope="scope">
<i style="color:#409EFF" class=" el-icon-s-order" />{{
@@ -616,7 +616,7 @@
<i class="el-icon-warning-outline" />
褰撳墠涓烘煡鐪嬫ā寮忥紝涓嶈兘涓婁紶闄勪欢
</div>
- <el-table ref="annexTable2" :data="fileListto" :row-class-name="annexRowClass" @row-click="downFile" style="width: 100%" height="400">
+ <el-table ref="annexTable2" :data="fileListto" :row-class-name="annexRowClass" @row-click="previewInline" @row-dblclick="downFile" style="width: 100%" height="400">
<el-table-column prop="name" :show-overflow-tooltip="true" label="鍚嶇О">
<template slot-scope="scope">
<i style="color:#409EFF" class=" el-icon-s-order" />
@@ -664,7 +664,7 @@
<i class="el-icon-warning-outline" />
褰撳墠涓烘煡鐪嬫ā寮忥紝涓嶈兘涓婁紶闄勪欢
</div>
- <el-table ref="invoiceTable" :data="invoicefileListto" :row-class-name="invoiceRowClass" @row-click="downFile" style="width: 100%" height="400">
+ <el-table ref="invoiceTable" :data="invoicefileListto" :row-class-name="invoiceRowClass" @row-click="previewInline" @row-dblclick="downFile" style="width: 100%" height="400">
<el-table-column prop="name" :show-overflow-tooltip="true" label="鍚嶇О">
<template slot-scope="scope">
<i style="color:#409EFF" class=" el-icon-s-order" />
@@ -1144,6 +1144,7 @@
flashInvoiceName: "",
invoicepdfimg: "",
invoicepdfimgsrcList: [],
+ previewToken: 0,
invoDatatop: [],
activeName: "invoice", //鏂囦欢绫诲瀷锛氶粯璁ゅ彂绁ㄦ枃浠�
//涓婁紶闄勪欢璺緞
@@ -2807,6 +2808,9 @@
} else {
this.rbDetails.splice(rowIndex + 1, 0, rowData);
}
+ // 2026-11-30锛氭柊澧炶鍚庢妸褰撳墠鎿嶄綔琛屽垏鍒版柊琛岋紝骞舵竻绌轰笂涓�娆$殑棰勮鎬�
+ this.atpresent = this.rbDetails.indexOf(rowData);
+ this.resetPreviewState();
this.Reminderquantity++;
this.totalquantity++;
for (let i = 0; i < this.rbDetails.length; i++) {
@@ -3239,18 +3243,33 @@
},
// 鐐瑰嚮绁ㄦ嵁
+ /**
+ * 2026-11-30锛氭竻绌虹エ鎹脊绐楃殑棰勮鐘舵�併��
+ * 鍘熷疄鐜版紡娓� embeddedFile / invoiceEmbeddedFile锛屽鑷村啀娆℃墦寮�寮圭獥鏃�
+ * 棰勮缁勪欢浠嶆樉绀轰笂涓�娆¢�夋嫨鐨勫彂绁ㄥ浘鐗囥��
+ */
+ resetPreviewState() {
+ this.fileListto = [];
+ this.invoicefileListto = [];
+ this.pdfimg = "";
+ this.invoicepdfimg = "";
+ this.pdfimgsrcList = [];
+ this.invoicepdfimgsrcList = [];
+ this.embeddedFile = null;
+ this.invoiceEmbeddedFile = null;
+ this.pdftitle = "";
+ // 閫掑浠ょ墝锛氳涓婁竴琛屽皻鏈繑鍥炵殑 fetch 缁撴灉澶辨晥锛岄伩鍏嶅紓姝ュ洖鍐欒鐩�
+ this.previewToken = (this.previewToken || 0) + 1;
+ },
+
Filepopup(index, rows, row) {
const config = {
headers: { Authorization: "Bearer " + this.ICDtoken }
};
this.tableDatatop = [];
- this.fileListto = [];
- this.invoicefileListto = [];
- this.pdfimg = "";
- this.invoicepdfimg = [];
- this.pdfimgsrcList = [];
- this.invoicepdfimgsrcList = [];
+ this.resetPreviewState();
+ const previewToken = ++this.previewToken;
this.tableDatatop.push(row);
this.atpresent = index;
this.pdfVisible = true;
@@ -3298,6 +3317,11 @@
);
Promise.all(fetchPromises).then(fileListto => {
+ // 2026-11-30锛氬垏鎹㈣鍚庢棫璇锋眰杩斿洖锛屼涪寮冭繃鏈熺粨鏋滐紝閬垮厤瑕嗙洊褰撳墠琛岄瑙�
+ if (previewToken !== this.previewToken) {
+ return;
+ }
+
this.fileListto = fileListto.filter(item => item !== null);
this.pdfimg =
this.fileListto.length > 0 ? this.fileListto[0].previewUrl : "";
@@ -3334,6 +3358,11 @@
);
Promise.all(fetchPromises).then(invoicefileListto => {
+ // 2026-11-30锛氬垏鎹㈣鍚庢棫璇锋眰杩斿洖锛屼涪寮冭繃鏈熺粨鏋滐紝閬垮厤瑕嗙洊褰撳墠琛岄瑙�
+ if (previewToken !== this.previewToken) {
+ return;
+ }
+
this.invoicefileListto = invoicefileListto.filter(
item => item !== null
);
@@ -3364,6 +3393,30 @@
},
// 璐圭敤鎶ラ攢锛氶檮浠剁粺涓�浣跨敤鐙珛 FilePreview锛堝綍鍏ャ�佸鎵广�佽鎯呬竴鑷达級
+ /**
+ * 2026-11-30锛氬崟鍑诲垪琛ㄩ」 鈫� 鍦ㄦ湰椤甸瑙堬紙鍙充晶 preview-pane锛夈��
+ * 鍙屽嚮鎵嶆墦寮�鐙珛鐨勯瑙堥〉闈紙downFile 鈫� $previewFile锛夈��
+ */
+ previewInline(row) {
+ if (!row) {
+ return;
+ }
+ const url = row.previewUrl || row.url;
+ if (!url) {
+ return;
+ }
+ const file = {
+ name: row.name || "",
+ url,
+ type: /\.pdf$/i.test(row.name || "") ? "pdf" : "image"
+ };
+ if (this.activeName == "common") {
+ this.embeddedFile = file;
+ } else {
+ this.invoiceEmbeddedFile = file;
+ }
+ },
+
downFile(item) {
const source =
this.activeName == "common" ? this.fileListto : this.invoicefileListto;
diff --git a/src/views/project/fund/performancedetails/index.vue b/src/views/project/fund/performancedetails/index.vue
index 597d9b8..fe9e8b3 100644
--- a/src/views/project/fund/performancedetails/index.vue
+++ b/src/views/project/fund/performancedetails/index.vue
@@ -435,7 +435,24 @@
</el-button>
<el-button
@click.native.prevent="
- Filepopup(scope.$index, rbDetails, scope.row)
+ /**
+ * 2026-11-30锛氭竻绌虹エ鎹脊绐楅瑙堢姸鎬侊紙鍚� embeddedFile / invoiceEmbeddedFile锛夛紝
+ * 閬垮厤鍐嶆鎵撳紑寮圭獥鏃朵粛鏄剧ず涓婁竴娆¢�夋嫨鐨勭エ鎹浘鐗囥��
+ */
+ resetPreviewState() {
+ this.fileListto = [];
+ this.invoicefileListto = [];
+ this.pdfimg = "";
+ this.invoicepdfimg = "";
+ this.pdfimgsrcList = [];
+ this.invoicepdfimgsrcList = [];
+ this.embeddedFile = null;
+ this.invoiceEmbeddedFile = null;
+ this.pdftitle = "";
+ this.previewToken = (this.previewToken || 0) + 1;
+ },
+
+ Filepopup(scope.$index, rbDetails, scope.row)
"
type="text"
size="small"
@@ -706,7 +723,7 @@
</el-upload>
<el-table
:data="fileListto"
- @row-click="downFile"
+ @row-click="previewInline" @row-dblclick="downFile"
style="width: 100%"
height="400"
>
@@ -794,7 +811,7 @@
</el-upload>
<el-table
:data="invoicefileListto"
- @row-click="downFile"
+ @row-click="previewInline" @row-dblclick="downFile"
style="width: 100%"
height="400"
>
@@ -1256,6 +1273,7 @@
invoicefileListto: [],
invoicepdfimg: "",
invoicepdfimgsrcList: [],
+ previewToken: 0,
activeName: 2, //鏂囦欢绫诲瀷锛氶粯璁ゅ彂绁ㄦ枃浠�
//涓婁紶闄勪欢璺緞
uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload",
@@ -2687,6 +2705,9 @@
this.rbDetails.splice(rowIndex + 1, 0, rowData);
console.log(14);
}
+ // 2026-11-30锛氭柊澧炶鍚庢妸褰撳墠鎿嶄綔琛屽垏鍒版柊琛岋紝骞舵竻绌轰笂涓�娆$殑棰勮鎬�
+ this.atpresent = this.rbDetails.indexOf(rowData);
+ this.resetPreviewState();
this.Reminderquantity++;
this.totalquantity++;
for (let i = 0; i < this.rbDetails.length; i++) {
@@ -2961,12 +2982,8 @@
};
this.tableDatatop = [];
- this.fileListto = [];
- this.invoicefileListto = [];
- this.pdfimg = "";
- this.invoicepdfimg = [];
- this.pdfimgsrcList = [];
- this.invoicepdfimgsrcList = [];
+ this.resetPreviewState();
+ const previewToken = ++this.previewToken;
this.tableDatatop.push(row);
this.atpresent = index;
this.pdfVisible = true;
@@ -2991,6 +3008,10 @@
);
Promise.all(fetchPromises).then(fileListto => {
+ // 2026-11-30锛氬垏鎹㈣鍚庝涪寮冭繃鏈熺粨鏋�
+ if (previewToken !== this.previewToken) {
+ return;
+ }
this.fileListto = fileListto.filter(item => item !== null);
this.pdfimg = this.fileListto[0].url;
console.log(this.pdfimg, "pdfimg");
@@ -3024,6 +3045,10 @@
);
Promise.all(fetchPromises).then(invoicefileListto => {
+ // 2026-11-30锛氬垏鎹㈣鍚庝涪寮冭繃鏈熺粨鏋�
+ if (previewToken !== this.previewToken) {
+ return;
+ }
this.invoicefileListto = invoicefileListto.filter(
item => item !== null
);
@@ -3051,6 +3076,30 @@
},
// 鐐瑰嚮宸蹭笂浼犳枃浠讹細鍦ㄩ檮浠跺脊绐楀彸渚у唴宓岄瑙�
+ /**
+ * 2026-11-30锛氬崟鍑诲垪琛ㄩ」 鈫� 鍦ㄦ湰椤甸瑙堬紙鍙充晶 preview-pane锛夈��
+ * 鍙屽嚮鎵嶆墦寮�鐙珛鐨勯瑙堥〉闈紙downFile 鈫� $previewFile锛夈��
+ */
+ previewInline(row) {
+ if (!row) {
+ return;
+ }
+ const url = row.previewUrl || row.url;
+ if (!url) {
+ return;
+ }
+ const file = {
+ name: row.name || "",
+ url,
+ type: /\.pdf$/i.test(row.name || "") ? "pdf" : "image"
+ };
+ if (this.activeName == 2) {
+ this.invoiceEmbeddedFile = file;
+ } else {
+ this.embeddedFile = file;
+ }
+ },
+
downFile(item) {
if (this.operationType == "detail") {
const source =
diff --git a/src/views/project/tallage/computingBill/index.vue b/src/views/project/tallage/computingBill/index.vue
index 6e2fd6a..1d921a3 100644
--- a/src/views/project/tallage/computingBill/index.vue
+++ b/src/views/project/tallage/computingBill/index.vue
@@ -155,7 +155,7 @@
prop="donorname"
align="center"
fixed
- label="妗堜緥鎹愮尞鑰�"
+ label="鎹愮尞妗堜緥"
width="120"
>
<template slot-scope="scope">
@@ -185,7 +185,7 @@
prop="deptmentname"
align="center"
label="鎵�灞炵粍鍒�"
- width="150"
+ width="200"
>
<template slot-scope="scope">
<el-input
@@ -199,7 +199,7 @@
prop="applyTime"
align="center"
label="鐢宠鏃ユ湡"
- width="150"
+ width="200"
>
<template slot-scope="scope">
<el-date-picker
@@ -273,7 +273,6 @@
</el-table-column>
<el-table-column
prop="remark"
- width="280"
align="center"
label="澶囨敞"
>
@@ -446,7 +445,7 @@
show-overflow-tooltip
>
</el-table-column>
- <el-table-column
+ <!-- <el-table-column
prop="pretaxcost"
label="绋庡墠閲戦"
show-overflow-tooltip
@@ -481,7 +480,7 @@
label="鍔冲姟绋庡悗"
show-overflow-tooltip
align="right" header-align="right" class-name="money-column" :formatter="formatMoney">
- </el-table-column>
+ </el-table-column> -->
<el-table-column
prop="remark"
label="澶囨敞"
@@ -561,7 +560,7 @@
</el-upload>
<el-table
:data="fileListto"
- @row-click="downFile"
+ @row-click="previewInline" @row-dblclick="downFile"
style="width: 100%"
height="400"
>
@@ -691,6 +690,8 @@
pdfVisible: false,
maxTaxId: "",
pdfimgsrcList: [],
+ // 2026-11-30锛氱エ鎹脊绐楅瑙堜护鐗岋紙闃叉鍒囨崲琛屾椂鏃ц姹傚洖鍐欙級
+ previewToken: 0,
Savereminder: false, //鎻愰啋淇濆瓨寮规
Reminderquantity: 0, //鎻愰啋鏁伴噺
totalquantity: 0, //鎬绘暟閲�
@@ -1328,18 +1329,31 @@
},
// 鐐瑰嚮绁ㄦ嵁
+ /**
+ * 2026-11-30锛氭竻绌虹エ鎹脊绐楅瑙堢姸鎬侊紙鍚� embeddedFile / invoiceEmbeddedFile锛夛紝
+ * 閬垮厤鍐嶆鎵撳紑寮圭獥鏃朵粛鏄剧ず涓婁竴娆¢�夋嫨鐨勭エ鎹浘鐗囥��
+ */
+ resetPreviewState() {
+ this.fileListto = [];
+ this.invoicefileListto = [];
+ this.pdfimg = "";
+ this.invoicepdfimg = "";
+ this.pdfimgsrcList = [];
+ this.invoicepdfimgsrcList = [];
+ this.embeddedFile = null;
+ this.invoiceEmbeddedFile = null;
+ this.pdftitle = "";
+ this.previewToken = (this.previewToken || 0) + 1;
+ },
+
Filepopup(index, row) {
const config = {
headers: { Authorization: "Bearer " + this.ICDtoken }
};
this.tableDatatop = [];
- this.fileListto = [];
- this.invoicefileListto = [];
- this.pdfimg = "";
- this.invoicepdfimg = [];
- this.pdfimgsrcList = [];
- this.invoicepdfimgsrcList = [];
+ this.resetPreviewState();
+ const previewToken = ++this.previewToken;
this.tableDatatop.push(row);
this.atpresent = index;
this.pdfVisible = true;
@@ -1364,6 +1378,10 @@
);
Promise.all(fetchPromises).then(fileListto => {
+ // 2026-11-30锛氬垏鎹㈣鍚庝涪寮冭繃鏈熺粨鏋�
+ if (previewToken !== this.previewToken) {
+ return;
+ }
this.fileListto = fileListto.filter(item => item !== null);
this.pdfimg = this.fileListto[0].url;
console.log(this.pdfimg, "pdfimg");
@@ -1387,6 +1405,26 @@
},
// 鐐瑰嚮宸蹭笂浼犳枃浠讹細鍦ㄩ檮浠跺脊绐楀彸渚у唴宓岄瑙�
+ /**
+ * 2026-11-30锛氬崟鍑诲垪琛ㄩ」 鈫� 鍦ㄦ湰椤甸瑙堬紙鍙充晶 preview-pane锛夈��
+ * 鍙屽嚮鎵嶆墦寮�鐙珛鐨勯瑙堥〉闈紙downFile 鈫� $previewFile锛夈��
+ */
+ previewInline(row) {
+ if (!row) {
+ return;
+ }
+ const url = row.previewUrl || row.url;
+ if (!url) {
+ return;
+ }
+ const file = {
+ name: row.name || "",
+ url,
+ type: /\.pdf$/i.test(row.name || "") ? "pdf" : "image"
+ };
+ this.embeddedFile = file;
+ },
+
downFile(item) {
if (this.operationType == "detail") {
const list = (this.fileListto || []).map(f => ({
diff --git a/src/views/project/travelexpenseapply/travelexpensedetail/index.vue b/src/views/project/travelexpenseapply/travelexpensedetail/index.vue
index cc5e04d..999832d 100644
--- a/src/views/project/travelexpenseapply/travelexpensedetail/index.vue
+++ b/src/views/project/travelexpenseapply/travelexpensedetail/index.vue
@@ -605,7 +605,7 @@
type="primary">鐐瑰嚮涓婁紶</el-button></em>
</div>
</el-upload>
- <el-table :data="fileListto" @row-click="downFile" style="width: 100%" height="400">
+ <el-table :data="fileListto" @row-click="previewInline" @row-dblclick="downFile" style="width: 100%" height="400">
<el-table-column prop="name" :show-overflow-tooltip="true" label="鍚嶇О">
<template slot-scope="scope">
<i style="color:#409EFF" class=" el-icon-s-order" />{{
@@ -650,7 +650,7 @@
type="primary">鐐瑰嚮涓婁紶</el-button></em>
</div>
</el-upload>
- <el-table :data="invoicefileListto" @row-click="downFile" style="width: 100%" height="400">
+ <el-table :data="invoicefileListto" @row-click="previewInline" @row-dblclick="downFile" style="width: 100%" height="400">
<el-table-column prop="name" :show-overflow-tooltip="true" label="鏂囦欢鍚嶇О">
<template slot-scope="scope">
<i style="color:#409EFF" class=" el-icon-s-order" />{{
@@ -932,6 +932,7 @@
invoicefileListto: [],
invoicepdfimg: "",
invoicepdfimgsrcList: [],
+ previewToken: 0,
currentIndex: 0, // 鍒濆绱㈠紩
invoicecurrentIndex: 0, // 鍒濆绱㈠紩
initialIndex: 0, // 鍒濆绱㈠紩
@@ -1481,18 +1482,33 @@
}
},
// 鐐瑰嚮绁ㄦ嵁
+ /**
+ * 2026-11-30锛氭竻绌虹エ鎹脊绐楃殑棰勮鐘舵�併��
+ * 鍘熷疄鐜版紡娓� embeddedFile / invoiceEmbeddedFile锛屽鑷村啀娆℃墦寮�寮圭獥鏃�
+ * 棰勮缁勪欢浠嶆樉绀轰笂涓�娆¢�夋嫨鐨勫彂绁ㄥ浘鐗囥��
+ */
+ resetPreviewState() {
+ this.fileListto = [];
+ this.invoicefileListto = [];
+ this.pdfimg = "";
+ this.invoicepdfimg = "";
+ this.pdfimgsrcList = [];
+ this.invoicepdfimgsrcList = [];
+ this.embeddedFile = null;
+ this.invoiceEmbeddedFile = null;
+ this.pdftitle = "";
+ // 閫掑浠ょ墝锛氳涓婁竴琛屽皻鏈繑鍥炵殑 fetch 缁撴灉澶辨晥锛岄伩鍏嶅紓姝ュ洖鍐欒鐩�
+ this.previewToken = (this.previewToken || 0) + 1;
+ },
+
Filepopup(index, rows, row) {
const config = {
headers: { Authorization: "Bearer " + this.ICDtoken }
};
this.tableDatatop = [];
- this.fileListto = [];
- this.invoicefileListto = [];
- this.pdfimg = "";
- this.invoicepdfimg = [];
- this.pdfimgsrcList = [];
- this.invoicepdfimgsrcList = [];
+ this.resetPreviewState();
+ const previewToken = ++this.previewToken;
this.tableDatatop.push(row);
this.atpresent = index;
this.pdfVisible = true;
@@ -1517,6 +1533,11 @@
);
Promise.all(fetchPromises).then(fileListto => {
+ // 2026-11-30锛氬垏鎹㈣鍚庢棫璇锋眰杩斿洖锛屼涪寮冭繃鏈熺粨鏋滐紝閬垮厤瑕嗙洊褰撳墠琛岄瑙�
+ if (previewToken !== this.previewToken) {
+ return;
+ }
+
this.fileListto = fileListto.filter(item => item !== null);
this.pdfimg = this.fileListto[0].url;
console.log(this.pdfimg, "pdfimg");
@@ -1555,6 +1576,11 @@
);
Promise.all(fetchPromises).then(invoicefileListto => {
+ // 2026-11-30锛氬垏鎹㈣鍚庢棫璇锋眰杩斿洖锛屼涪寮冭繃鏈熺粨鏋滐紝閬垮厤瑕嗙洊褰撳墠琛岄瑙�
+ if (previewToken !== this.previewToken) {
+ return;
+ }
+
this.invoicefileListto = invoicefileListto.filter(
item => item !== null
);
@@ -1584,6 +1610,30 @@
},
// 宸梾鎶ラ攢锛氶檮浠剁粺涓�浣跨敤鐙珛 FilePreview锛堝綍鍏ャ�佸鎵广�佽鎯呬竴鑷达級
+ /**
+ * 2026-11-30锛氬崟鍑诲垪琛ㄩ」 鈫� 鍦ㄦ湰椤甸瑙堬紙鍙充晶 preview-pane锛夈��
+ * 鍙屽嚮鎵嶆墦寮�鐙珛鐨勯瑙堥〉闈紙downFile 鈫� $previewFile锛夈��
+ */
+ previewInline(row) {
+ if (!row) {
+ return;
+ }
+ const url = row.previewUrl || row.url;
+ if (!url) {
+ return;
+ }
+ const file = {
+ name: row.name || "",
+ url,
+ type: /\.pdf$/i.test(row.name || "") ? "pdf" : "image"
+ };
+ if (this.activeName == 2) {
+ this.invoiceEmbeddedFile = file;
+ } else {
+ this.embeddedFile = file;
+ }
+ },
+
downFile(item) {
const source =
this.activeName == 1 ? this.fileListto : this.invoicefileListto;
@@ -2870,6 +2920,9 @@
} else {
this.rbDetails.splice(rowIndex + 1, 0, rowData);
}
+ // 2026-11-30锛氭柊澧炶鍚庢妸褰撳墠鎿嶄綔琛屽垏鍒版柊琛岋紝骞舵竻绌轰笂涓�娆$殑棰勮鎬�
+ this.atpresent = this.rbDetails.indexOf(rowData);
+ this.resetPreviewState();
this.Reminderquantity++;
this.totalquantity++;
for (let i = 0; i < this.rbDetails.length; i++) {
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