Blame view

src/api/checkHeader/detail.js 830 Bytes
fuxiaohan authored
1
2
3
4
5
import request from '@/utils/request'

// 查询入库质检明细
export function listCheckDetail(query) {
  return request({
fuxiaohan authored
6
    url: '/check/checkDetail',
fuxiaohan authored
7
8
9
10
11
12
13
14
    method: 'get',
    params: query
  })
}

// 根据id查询入库质检明细
export function getCheckDetail(id) {
  return request({
fuxiaohan authored
15
    url: '/check/checkDetail/' + id,
fuxiaohan authored
16
17
18
19
20
21
22
    method: 'get'
  })
}

// 删除入库单明细
export function delCheckDetail(ids) {
  return request({
fuxiaohan authored
23
    url: '/check/checkDetail',
fuxiaohan authored
24
25
26
27
28
29
30
31
32
33
    method: 'delete',
    params: {
      ids: ids.toString()
    }
  })
}

//新增
export function addCheckDetail(data) {
  return request({
fuxiaohan authored
34
    url: '/check/checkDetail',
fuxiaohan authored
35
36
37
38
39
40
41
42
    method: 'post',
    data: data
  })
}

//修改
export function updateCheckDetail(data) {
  return request({
fuxiaohan authored
43
    url: '/check/checkDetail',
fuxiaohan authored
44
45
46
47
    method: 'put',
    data: data
  })
}