From 5d9e9f4827521b7a14ed720f77fad33ab0426585 Mon Sep 17 00:00:00 2001
From: tuqin <tuqin@tuqin.cn>
Date: 星期五, 18 九月 2026 15:25:42 +0800
Subject: [PATCH] refactor(生产核算): 配置弹窗「部门类型」改为「工序类型」
---
src/api/productionManagement/productionCosting.js | 31 +++++++++++++------------------
1 files changed, 13 insertions(+), 18 deletions(-)
diff --git a/src/api/productionManagement/productionCosting.js b/src/api/productionManagement/productionCosting.js
index 9fa2dbf..549d677 100644
--- a/src/api/productionManagement/productionCosting.js
+++ b/src/api/productionManagement/productionCosting.js
@@ -40,22 +40,26 @@
});
}
-/* ===================== 閮ㄩ棬绫诲瀷閰嶇疆 ===================== */
+/* ===================== 宸ュ簭绫诲瀷閰嶇疆 ===================== */
-export function costingDeptList() {
- return request({ url: "/productionCosting/dept/list", method: "get" });
+export function costingProcessList(query) {
+ return request({
+ url: "/productionCosting/process/list",
+ method: "get",
+ params: query,
+ });
}
-export function costingDeptAdd(data) {
- return request({ url: "/productionCosting/dept", method: "post", data });
+export function costingProcessAdd(data) {
+ return request({ url: "/productionCosting/process", method: "post", data });
}
-export function costingDeptUpdate(data) {
- return request({ url: "/productionCosting/dept", method: "put", data });
+export function costingProcessUpdate(data) {
+ return request({ url: "/productionCosting/process", method: "put", data });
}
-export function costingDeptDel(id) {
- return request({ url: "/productionCosting/dept/" + id, method: "delete" });
+export function costingProcessDel(id) {
+ return request({ url: "/productionCosting/process/" + id, method: "delete" });
}
/* ===================== 鏍囧噯鏁伴噺閰嶇疆 ===================== */
@@ -141,14 +145,5 @@
url: "/basic/product/pageModel",
method: "get",
params: { current: 1, size: 1000, ...query },
- });
-}
-
-// 閮ㄩ棬涓嬫媺
-export function costingDeptOptions(query) {
- return request({
- url: "/system/dept/list",
- method: "get",
- params: query,
});
}
--
Gitblit v1.9.3