From a2f4a925841b8914dc233b92ee681c746bb35bc1 Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期一, 26 一月 2026 15:00:22 +0800
Subject: [PATCH] feat: BOM的导入导出按钮添加权限
---
src/api/productionManagement/productBom.js | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/api/productionManagement/productBom.js b/src/api/productionManagement/productBom.js
index 893755b..2badea8 100644
--- a/src/api/productionManagement/productBom.js
+++ b/src/api/productionManagement/productBom.js
@@ -45,3 +45,22 @@
params: { productModelId },
});
}
+
+// 瀵煎嚭BOM
+export function exportBom(bomId) {
+ return request({
+ url: "/productBom/exportBom",
+ method: "post",
+ params: { bomId },
+ responseType: "blob",
+ });
+}
+
+// 涓嬭浇妯℃澘
+export function downloadTemplate() {
+ return request({
+ url: "/productBom/downloadTemplate",
+ method: "get",
+ responseType: "blob",
+ });
+}
\ No newline at end of file
--
Gitblit v1.9.3