zouyu
2025-03-11 c4a1108d64e8e8b24e1b805d84d2dd482a37dd79
src/api/standard/standardLibrary.js
@@ -1,29 +1,11 @@
import request from "@/utils/request";
// 标准库树排序
export function updateTreeSort(data) {
  return request({
    url: "/standardTree/updateTreeSort",
    method: "post",
    data: data,
  });
}
// 标准库检验项排序保存接口
export function resetTreeDragBatch(data) {
  return request({
    url: "/standardTree/resetTreeDragBatch",
    method: "post",
    data: data,
  });
}
// 删除标准树的层级
export function delStandardTree(data) {
export function delStandardTree(query) {
  return request({
    url: "/standardTree/delStandardTree",
    method: "post",
    data: data,
    method: "delete",
    params: query,
  });
}
@@ -54,6 +36,15 @@
  });
}
// 获取标准方法枚举
export function selectStandardMethods(query) {
  return request({
    url: "/standardMethod/selectStandardMethods",
    method: "get",
    params: query,
  });
}
// 给标准树添加检验标准
export function addStandardMethodList(data) {
  return request({
@@ -72,24 +63,6 @@
  });
}
// 修改标准树
export function updateStandardTree(data) {
  return request({
    url: "/standardTree/updateStandardTree",
    method: "post",
    data: data,
  });
}
// 根据标准树进行标准查询
export function selectsStandardMethodByFLSSM(query) {
  return request({
    url: "/standardTree/selectsStandardMethodByFLSSM",
    method: "get",
    params: query,
  });
}
// 修改标准库中的要求值
export function upStandardProductList(data) {
  return request({
@@ -100,29 +73,20 @@
}
// 删除标准树下的检验标准
export function delStandardMethodByFLSSM(data) {
export function delStandardMethodByFLSSM(query) {
  return request({
    url: "/standardTree/delStandardMethodByFLSSM",
    method: "post",
    data: data,
    method: "delete",
    params: query,
  });
}
// 删除标准树下的检验标准
export function delStandardProductByIds(data) {
// 删除标准树下的检验项目
export function delStandardProductByIds(query) {
  return request({
    url: "/standardTree/delStandardProductByIds",
    method: "post",
    data: data,
  });
}
// 新增标准树下的检验项目
export function addStandardProduct(data) {
  return request({
    url: "/standardTree/addStandardProduct",
    method: "post",
    data: data,
    method: "delete",
    params: query,
  });
}
@@ -135,21 +99,12 @@
  });
}
// 修改标准库中的区间设置
export function updateSection(data) {
// 通过标准树查询对应的检验项目
export function selectStandardProductList(query) {
  return request({
    url: "/standardTree/updateSection",
    method: "post",
    data: data,
  });
}
// 获取产品架构
export function upStandardProducts(data) {
  return request({
    url: "/standardTree/upStandardProducts",
    method: "post",
    data: data,
    url: "/standardTree/selectStandardProductList",
    method: "get",
    params: query,
  });
}
@@ -159,33 +114,6 @@
    url: "/StandardTemplate/getStandardTemplate",
    method: "get",
    params: query,
  });
}
// 获取标准方法枚举
export function selectStandardMethods(query) {
  return request({
    url: "/standardMethod/selectStandardMethods",
    method: "get",
    params: query,
  });
}
// 批量编辑查询检验项目
export function selectStandardProductByMethodId(data) {
  return request({
    url: "/standardTree/selectStandardProductByMethodId",
    method: "post",
    data: data,
  });
}
// 批量编辑查询所有检验项目和检验子项枚举
export function selectStandardProductEnumByMethodId(data) {
  return request({
    url: "/standardTree/selectStandardProductEnumByMethodId",
    method: "post",
    data: data,
  });
}
@@ -206,3 +134,28 @@
    data: data,
  });
}
// 根据标准树进行标准查询
export function selectsStandardMethodByFLSSM(query) {
  return request({
    url: "/standardTree/selectsStandardMethodByFLSSM",
    method: "get",
    params: query,
  });
}
// 获取标准树下标准方法枚举
export function selectStandardMethodEnum() {
  return request({
    url: "/standardTree/selectStandardMethodEnum",
    method: "get",
  });
}
// 获取标准树(检验下单)
export function selectStandardTreeList2() {
  return request({
    url: "/standardTree/selectStandardTreeList2",
    method: "get",
  });
}