zhangwencui
2026-04-25 834f0541d1ffb11e0f4d91f9f4ff643f2bf34f40
src/api/productionManagement/productStructure.js
@@ -4,7 +4,14 @@
// 分页查询
export function queryList(id) {
  return request({
    url: "/productStructure/listBybomId/" + id,
    url: "/technologyBomStructure/listByBomId/" + id,
    method: "get",
  });
}
// 分页查询-产品订单
export function queryList2(id) {
  return request({
    url: "/productionBomStructure/listByBomId/" + id,
    method: "get",
  });
}
@@ -16,25 +23,25 @@
  });
}
// export function add(data) {
//   return request({
//     url: "/productStructure",
//     method: "post",
//     data: data,
//   });
// }
// 分页查询-产品订单
export function queryList2(id) {
export function addBomDetail(data) {
  return request({
    url: "/productionOrderStructure/getBomStructs/" + id,
    method: "get",
    url: "/technologyBomStructure",
    method: "post",
    data: data,
  });
}
// 分页查询-产品订单
// export function queryList2(id) {
//   return request({
//     url: "/productionOrderStructure/getBomStructs/" + id,
//     method: "get",
//   });
// }
export function add2(data) {
  return request({
    url: "/productionOrderStructure/addOrUpdateBomStructs/" + data.orderId,
    method: "put",
    data: data.children,
    url: "/productionBomStructure/addOrUpdateBomStructs",
    method: "post",
    data: data,
  });
}