Fixiaobai
2023-08-28 6cc81f9de0c87c40a9f1181ab35e8dff792a1884
src/api/standardLibrary.js
@@ -1,10 +1,9 @@
import request from '@/utils/request'
export function getMaterialList(params) {
export function getMaterialList() {
  return request({
    url: '/material/list',
    method: 'get',
    params
  })
}
@@ -17,14 +16,14 @@
  })
}
// 获取所有父项目对应的子项目
export function getProductSonList(params) {
  return request({
    url: '/product/father',
    method: 'get',
    params
  })
}
// // 获取所有父项目对应的子项目
// export function getProductSonList(params) {
//   return request({
//     url: '/product/father',
//     method: 'get',
//     params
//   })
// }
// 添加物料
export function addMaterial(data) {
@@ -52,3 +51,21 @@
    data
  })
}
// 批量删除
export function deleteListApi(ids) {
  return request({
    url: '/product/deleteList',
    method: 'delete',
    params: {ids: ids.toString()}
  })
}
// 失去焦点更新
export function blurUpdateApi(obj) {
  return request({
    url: '/product/write',
    method: 'post',
    params: obj
  })
}