Blame view

src/api/cycle/cycleCountHeader/detail.js 1.06 KB
yuanshuhui authored
1
2
import request from '@/utils/request'
yuanshuhui authored
3
4
// 查询盘点单明细列表
export function listCycleCountDetail(query) {
yuanshuhui authored
5
  return request({
yuanshuhui authored
6
    url: '/cycle/cycleCountDetail/list',
yuanshuhui authored
7
8
9
10
11
    method: 'get',
    params: query
  })
}
yuanshuhui authored
12
13
// 新增盘点明细
export function addCycleCountDetail(data) {
yuanshuhui authored
14
  return request({
yuanshuhui authored
15
16
17
    url: '/cycle/cycleCountDetail/addCycleCountDetail',
    method: 'post',
    data: data
yuanshuhui authored
18
19
20
  })
}
yuanshuhui authored
21
22
// 生成全部盘点任务
export function createCycleCountTaskByHeadId(cycleCountHeadCode) {
yuanshuhui authored
23
  return request({
yuanshuhui authored
24
    url: '/cycle/cycleCountDetail/createCycleCountTaskByHeadId',
yuanshuhui authored
25
    method: 'get',
yuanshuhui authored
26
    params: {cycleCountHeadCode}
yuanshuhui authored
27
28
29
  })
}
yuanshuhui authored
30
// 生成单条盘点任务
yuanshuhui authored
31
export function createCycleCoutTaskByDetailId(cycleCoutdetailId) {
yuanshuhui authored
32
  return request({
yuanshuhui authored
33
    url: '/cycle/cycleCountDetail/createCycleCoutTaskByDetailId',
yuanshuhui authored
34
35
    method: 'get',
    params: {cycleCoutdetailId}
yuanshuhui authored
36
37
38
  })
}
yuanshuhui authored
39
40
// 删除盘点明细
export function deleteCycleCountDetail(ids) {
yuanshuhui authored
41
  return request({
yuanshuhui authored
42
43
44
    url: '/cycle/cycleCountDetail/deleteCycleCountDetail',
    method: 'delete',
    params: {ids:ids.toString()}
yuanshuhui authored
45
46
  })
}