From f9d502b976ebb53281432faa56899015d49a87b6 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期三, 11 三月 2026 18:00:11 +0800
Subject: [PATCH] 能源管理、生产计划模块开发

---
 src/api/productionPlan/productionPlan.js |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 60 insertions(+), 0 deletions(-)

diff --git a/src/api/productionPlan/productionPlan.js b/src/api/productionPlan/productionPlan.js
index 2b08129..f064db9 100644
--- a/src/api/productionPlan/productionPlan.js
+++ b/src/api/productionPlan/productionPlan.js
@@ -9,3 +9,63 @@
     params: query,
   });
 }
+
+// 鎷夊彇鏁版嵁
+export function loadProdData(query) {
+  return request({
+    url: "/productionPlan/loadProdData",
+    method: "get",
+    params: query,
+  });
+}
+
+export function summaryByProductType(query) {
+  return request({
+    url: "/productionPlan/summaryByProductType",
+    method: "get",
+    params: query,
+  });
+}
+
+// 瀵煎嚭鐢熶骇璁″垝
+export function exportProductionPlan(bomId) {
+  return request({
+    url: "/productionPlan/export",
+    method: "post",
+    params: { bomId },
+    responseType: "blob",
+  });
+}
+
+// 鐢熶骇璁″垝-鏂板淇敼
+export function productionPlanAdd(query) {
+  return request({
+    url: "/productionPlan",
+    method: "post",
+    data: query,
+  });
+}
+export function productionPlanUpdate(query) {
+  return request({
+    url: "/productionPlan",
+    method: "put",
+    data: query,
+  });
+}
+
+// 鐢熶骇璁″垝-鍒犻櫎
+export function productionPlanDelete(data) {
+  return request({
+    url: "/productionPlan",
+    method: "delete",
+     data
+  });
+}
+// 鍚堝苟涓嬪彂
+export function productionPlanCombine(query) {
+  return request({
+    url: "/productionPlan/combine",
+    method: "post",
+    data: query,
+  });
+}
\ No newline at end of file

--
Gitblit v1.9.3