Blame view

src/api/config/InventoryInfo/material.js 781 Bytes
yuanshuhui authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import request from '@/utils/request'

//查询物料列表
export function queryList(material) {
  return request({
    url: '/config/material/list',
    method: 'get',
    params: material
  })
}

//增加物料
export function add(newMaterial) {
  return request({
    url: '/config/material',
    method: 'post',
    data: newMaterial
  })
}

//修改物料
export function edit(newMaterial) {
  return request({
    url: '/config/material',
    method: 'put',
    data: newMaterial
  })
}

//删除物料
export function remove(ids) {
  return request({
    url: '/config/material',
    method: 'delete',
35
    params: {ids:ids}
yuanshuhui authored
36
37
  })
}
yuanshuhui authored
38
39
40
41
42
43

//获取物料数据
export function getMaterialData() {
  return request({
    url: '/config/material/getData',
    method: 'get',
44
yuanshuhui authored
45
46
  })
}
47