tuqin
8 天以前 5d9e9f4827521b7a14ed720f77fad33ab0426585
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,
  });
}