From c16edc131625d4d7dd3624cc1485695bfb89707d Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期一, 26 十月 2026 17:43:23 +0800
Subject: [PATCH] refactor(download): 统一附件下载逻辑到 download 插件

---
 src/views/business/materialOrderComponents/materialOrder/filesLookVisible.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/views/business/materialOrderComponents/materialOrder/filesLookVisible.vue b/src/views/business/materialOrderComponents/materialOrder/filesLookVisible.vue
index 043938a..6a07f31 100644
--- a/src/views/business/materialOrderComponents/materialOrder/filesLookVisible.vue
+++ b/src/views/business/materialOrderComponents/materialOrder/filesLookVisible.vue
@@ -124,6 +124,7 @@
     // 鍒囨崲鏁版嵁鏌ョ湅tab鏍�
     handleDataVisibleTab(m, i) {
       this.dataVisibleIndex = i
+      this.pageFile.current = 1
       this.getFileList()
     },
     // 鏌ヨ鍥炶皟
@@ -134,7 +135,7 @@
         this.entity.insOrderId = this.filesLookInfo.quarterOrderId
       }
       this.tableLoadingFile = true
-      const params = { ...this.entity }
+      const params = { ...this.entity, current: this.pageFile.current, size: this.pageFile.size }
       getFileList(params).then(res => {
         this.tableLoadingFile = false
         if (res.code === 200) {
@@ -146,13 +147,14 @@
       })
     },
     paginationFile(page) {
+      this.pageFile.current = page.page
       this.pageFile.size = page.limit
       this.getFileList()
     },
     // 涓嬭浇
     handleDown(row) {
       downFile({ id: row.id, }).then(res => {
-        this.$download.saveAs(res.data.fileUrl, row.fileName);
+        return this.$download.attachment(res.data, row.fileName);
       }).catch(error => {
 
       })

--
Gitblit v1.9.3