yuyu
2023-08-10 85f689b65f4fb915ffe6bb2e5e65d7a88dc22865
src/api/standardLibrary.js
@@ -1,17 +1,54 @@
import request from '@/utils/request'
// 查询所有标准数据
export function getStandardsList() {
export function getMaterialList(params) {
  return request({
    url: '/standards/list',
    method: 'get'
    url: '/material/list',
    method: 'get',
    params
  })
}
// 获取所有项目
export function getProductList(params) {
  return request({
    url: '/product/page',
    method: 'get',
    params
  })
}
// 获取所有父项目对应的子项目
export function getProductSonList(params) {
  return request({
    url: '/product/father',
    method: 'get',
    params
  })
}
// 添加物料
export function addMaterial(data) {
  return request({
    url: '/material/add',
    method: 'post',
    data
  })
}
// 添加标准
export function addStandards() {
export function addStandards(data) {
  return request({
    url: '/standards/add',
    method: 'get'
    method: 'post',
    data
  })
}
// 添加规格
export function addSpecifications(data) {
  return request({
    url: '/specifications/add',
    method: 'post',
    data
  })
}