@@ -96,7 +98,7 @@
@current-change="loadBatches"
@size-change="loadBatches"
/>
-
+
+
+
diff --git a/src/views/payment/payment-application-form.vue b/src/views/payment/payment-application-form.vue
index 977df89..d924b07 100644
--- a/src/views/payment/payment-application-form.vue
+++ b/src/views/payment/payment-application-form.vue
@@ -1403,6 +1403,14 @@ export default {
attachmentFileName(file) {
return String(file?.originalName || file?.name || file?.fileName || '').trim();
},
+ normalizedAttachmentFileName(file) {
+ let fileName = this.attachmentFileName(file) || this.attachmentFileUrl(file);
+ fileName = String(fileName || '').split(/[?#]/)[0];
+ try {
+ fileName = decodeURIComponent(fileName);
+ } catch {}
+ return fileName.toLocaleLowerCase();
+ },
attachmentFileUrl(file) {
return (
file?.url ||
@@ -1469,7 +1477,7 @@ export default {
this.$message.error('附件预览失败');
},
attachmentMatchesMaterial(file, material) {
- const fileName = this.attachmentFileName(file).toLocaleLowerCase();
+ const fileName = this.normalizedAttachmentFileName(file);
return (
Boolean(this.attachmentFileUrl(file)) &&
(file.attachmentType === MATERIAL_TYPE_MAP[material.key] ||
@@ -1477,11 +1485,7 @@ export default {
);
},
resolveAttachmentTypeByFileName(file) {
- let fileName = this.attachmentFileName(file) || this.attachmentFileUrl(file);
- fileName = String(fileName || '').split(/[?#]/)[0].toLocaleLowerCase();
- try {
- fileName = decodeURIComponent(fileName);
- } catch {}
+ const fileName = this.normalizedAttachmentFileName(file);
const material = [...Object.values(ATTACHMENT_MATERIALS)]
.sort(
(a, b) =>
diff --git a/src/views/settlement/formal-settlement.vue b/src/views/settlement/formal-settlement.vue
index 14366d2..2fbe65e 100644
--- a/src/views/settlement/formal-settlement.vue
+++ b/src/views/settlement/formal-settlement.vue
@@ -169,8 +169,8 @@