huminmin
7 天以前 8dc3efeb84c11e046ef2a77ccf7cbefb83bdc373
src/api/productionManagement/productBom.js
@@ -36,3 +36,31 @@
    data: ids,
  });
}
// 根据产品型号ID查询BOM
export function getByModel(productModelId) {
  return request({
    url: "/productBom/getByModel",
    method: "get",
    params: { productModelId },
  });
}
// 导出BOM
export function exportBom(bomId) {
  return request({
    url: "/productBom/exportBom",
    method: "post",
    params: { bomId },
    responseType: "blob",
  });
}
//  下载模板
export function downloadTemplate() {
  return request({
    url: "/productBom/downloadTemplate",
    method: "get",
    responseType: "blob",
  });
}