Blame view

src/api/config/shipment/waveMaster/header.js 784 Bytes
yuanshuhui authored
1
2
import request from '@/utils/request'
yuanshuhui authored
3
// 查询波次主表
yuanshuhui authored
4
5
6
7
8
9
10
11
12
export function listMaster(query) {
  return request({
    url: '/config/waveMaster',
    method: 'get',
    params: query
  })
}
yuanshuhui authored
13
// 新增波次主表
yuanshuhui authored
14
15
16
17
18
19
20
21
export function addMaster(data) {
  return request({
    url: '/config/waveMaster',
    method: 'post',
    data: data
  })
}
yuanshuhui authored
22
// 根据id查询波次主表
yuanshuhui authored
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
export function getMaster(id) {
  return request({
    url: '/config/waveMaster/'+id,
    method: 'get'
  })
}

// 修改波次
export function updateMaster(data) {
  return request({
    url: '/config/waveMaster',
    method: 'put',
    data: data
  })
}




// 删除波次
yuanshuhui authored
43
export function delMaster(ids) {
yuanshuhui authored
44
  return request({
yuanshuhui authored
45
46
47
    url: '/config/waveMaster',
    method: 'delete',
    params: {ids:ids}
yuanshuhui authored
48
49
50
51
  })
}