From 07f8fc2e20080c81734023f7536942e7e6c0cfa7 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 13 三月 2025 10:44:28 +0800
Subject: [PATCH] 原材料报检-新增弹框取消按钮报错
---
src/views/business/rawMaterialInspection/index.vue | 2 +-
src/plugins/download.js | 8 +++++++-
src/router/index.js | 2 +-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/plugins/download.js b/src/plugins/download.js
index e5a7d57..17bcf96 100644
--- a/src/plugins/download.js
+++ b/src/plugins/download.js
@@ -89,7 +89,13 @@
if (state) {
url1 = Vue.prototype.javaApi + '/img/' + text;
} else {
- url1 = Vue.prototype.javaApi + '/word/' + text
+ if (text.startsWith("/word/")) {
+ url1 = Vue.prototype.javaApi + text
+ } else if (text.startsWith("word/")) {
+ url1 = Vue.prototype.javaApi + '/' + text
+ } else {
+ url1 = Vue.prototype.javaApi + '/word/' + text
+ }
}
// 浣跨敤 fetch 鑾峰彇鏂囦欢
const response = await fetch(url1);
diff --git a/src/router/index.js b/src/router/index.js
index 47f9884..ccc0b3f 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -133,7 +133,7 @@
component: () =>
import("@/views/business/productOrder/components/add.vue"),
name: "Add",
- meta: { title: "鎴愬搧涓嬪崟璇︽儏", activeMenu: "/business/materialOrder",keepAlive: true },
+ meta: { title: "鎴愬搧涓嬪崟璇︽儏", activeMenu: "/business/productOrder",keepAlive: true },
},
],
},
diff --git a/src/views/business/rawMaterialInspection/index.vue b/src/views/business/rawMaterialInspection/index.vue
index d0f8df2..e691855 100644
--- a/src/views/business/rawMaterialInspection/index.vue
+++ b/src/views/business/rawMaterialInspection/index.vue
@@ -144,7 +144,7 @@
</el-form>
<span slot="footer" class="dialog-footer">
<el-row>
- <el-button @click="resetForm">鍙� 娑�</el-button>
+ <el-button @click="resetFormData">鍙� 娑�</el-button>
<el-button :loading="submitDeclareLoading" type="primary" @click="submitDeclare">纭� 瀹�</el-button>
</el-row>
</span>
--
Gitblit v1.9.3