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/tallage/computingBill/index.vue | 64 +++++++++++++++++++++++++------
1 files changed, 51 insertions(+), 13 deletions(-)
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 => ({
--
Gitblit v1.9.3