From 0e59e3ebb9f7e9f83c7f906f40d0a562a8a686e8 Mon Sep 17 00:00:00 2001
From: cuilei <ray_tsu1@163.com>
Date: 星期一, 18 八月 2025 17:07:08 +0800
Subject: [PATCH] 排产功能物料下拉框调整
---
src/api/api.js | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/src/api/api.js b/src/api/api.js
index e43da5b..9d4fb66 100644
--- a/src/api/api.js
+++ b/src/api/api.js
@@ -57,8 +57,14 @@
const queryMyDepartTreeList = (params)=>getAction("/sys/sysDepart/queryMyDeptTreeList",params);
//杞﹂棿绠$悊
+const queryFactoryTreeList = (params)=>getAction("/base/factory/queryTreeList",params);
+const queryById = (params)=>getAction("/base/factory/queryIdTree",params);
+const deleteByFactory = (params)=>deleteAction("/base/factory/delete",params);
+
+//杞﹂棿绠$悊
const queryProductionTreeList = (params)=>getAction("/mdc/mdcProduction/queryTreeList",params);
-const queryById = (params)=>getAction("/mdc/mdcProduction/queryIdTree",params);
+const queryProductionTreeListByMdc = (params)=>getAction("/mdc/mdcProduction/queryTreeListByMdc",params);
+// const queryById = (params)=>getAction("/mdc/mdcProduction/queryIdTree",params);
const deleteByProduction = (params)=>deleteAction("/mdc/mdcProduction/delete",params);
@@ -101,6 +107,9 @@
//鍔犺浇鎴戠殑閫氬憡淇℃伅
const getUserNoticeInfo= (params)=>getAction("/sys/sysAnnouncementSend/getMyAnnouncementSend",params);
const getTransitURL = url => `/sys/common/transitRESTful?url=${encodeURIComponent(url)}`
+//绯荤粺閰嶇疆鍙傛暟鍊艰幏鍙�
+const getSystemConfigValue = (params)=>getAction("/system/sysParams/query/by/settingKey",params);
+
// 涓浆HTTP璇锋眰
export const transitRESTful = {
get: (url, parameter) => getAction(getTransitURL(url), parameter),
@@ -165,11 +174,15 @@
queryMyDepartTreeList,
getUserNoticeInfo,
getDictItemsFromCache,
- queryProductionTreeList,
- deleteByProduction,
+ queryFactoryTreeList,
+ deleteByFactory,
queryById,
+ queryProductionTreeList,
+ queryProductionTreeListByMdc,
+ deleteByProduction,
addEquipment,
- editEquipment
+ editEquipment,
+ getSystemConfigValue
}
--
Gitblit v1.9.3