Goldennfish
2023-07-28 6cd44812a96026d6c6d0fff397eb2662c75fedd3
src/api/standardLibrary.js
@@ -18,10 +18,11 @@
}
// 添加类型
export function addStandards() {
export function addStandards(data) {
  return request({
    url: '/standards/add',
    method: 'get'
    method: 'post',
    data
  })
}
@@ -35,10 +36,11 @@
}
// 添加型号
export function addSerialNumber() {
export function addSerialNumber(data) {
  return request({
    url: '/serial-number/add',
    method: 'get'
    method: 'post',
    data
  })
}
@@ -52,10 +54,29 @@
}
// 添加产品规格
export function addSpecifications() {
export function addSpecifications(data) {
  return request({
    url: '/specifications/add',
    method: 'get'
    method: 'post',
    data
  })
}
// 编辑产品规格
export function updateSpecifications(data) {
  return request({
    url: '/specifications/update',
    method: 'put',
    data
  })
}
// 更新规格状态
export function updateSpeState(data) {
  return request({
    url: '/specifications/update_spe_state',
    method: 'put',
    data
  })
}
@@ -98,11 +119,11 @@
}
// 删除物料信息
export function deleteMaterial(data) {
export function deleteMaterial(params) {
  return request({
    url: '/material/delete',
    method: 'delete',
    data
    params
  })
}
@@ -143,10 +164,10 @@
}
// 删除子项目信息
export function deleteProduct(data) {
export function deleteProduct(params) {
  return request({
    url: '/product/delete',
    method: 'delete',
    data
    params
  })
}