From d0411780a1366d4c7b35edcc91feb10b5b3d735b Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期二, 09 一月 2024 10:46:25 +0800
Subject: [PATCH] 货盘运输批量执行修改
---
src/views/plan/customerorder/index.vue | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/src/views/plan/customerorder/index.vue b/src/views/plan/customerorder/index.vue
index b2e0f2f..d376ddf 100644
--- a/src/views/plan/customerorder/index.vue
+++ b/src/views/plan/customerorder/index.vue
@@ -879,7 +879,19 @@
this.$message.error("璇烽�夋嫨涓�鏉℃暟鎹�")
return
}
- downloadWordFile(ids).then().catch(error=>{
+ downloadWordFile(ids).then(response=>{
+ // 澶勭悊杩斿洖鐨勬枃浠舵祦
+ const blob = response.data
+ const link = document.createElement('a')
+ link.href = URL.createObjectURL(blob)
+ link.download = '宸ヨ壓鏂囦欢.docx'
+ document.body.appendChild(link)
+ link.click()
+ window.setTimeout(function() {
+ URL.revokeObjectURL(blob)
+ document.body.removeChild(link)
+ }, 0)
+ }).catch(error=>{
console.error(error);
})
},
--
Gitblit v1.9.3