Blame view

antis-ncc-admin/src/api/system/billRule.js 1.38 KB
03207d5d   wwk   1
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
  import request from '@/utils/request'
  
  // 获取单据规则列表(带分页)
  export function getBillRuleList(data) {
    return request({
      url: '/api/system/BillRule',
      method: 'GET',
      data
    })
  }
  
  // 获取单据规则下拉框
  export function getBillRuleSelector() {
    return request({
      url: '/api/system/BillRule/Selector',
      method: 'GET'
    })
  }
  
  // 添加单据规则
  export function createBillRule(data) {
    return request({
      url: '/api/system/BillRule',
      method: 'POST',
      data
    })
  }
  
  // 修改单据规则
  export function updateBillRule(data) {
    return request({
      url: `/api/system/BillRule/${data.id}`,
      method: 'PUT',
      data
    })
  }
  
  // 获取单据规则信息
  export function getBillRuleInfo(id) {
    return request({
      url: `/api/system/BillRule/${id}`,
      method: 'GET'
    })
  }
  
  // 删除单据规则
  export function delBillRule(id) {
    return request({
      url: `/api/system/BillRule/${id}`,
      method: 'DELETE'
    })
  }
  
  // 更新单据规则状态
  export function updateBillRuleState(id) {
    return request({
      url: `/api/system/BillRule/${id}/Actions/State`,
      method: 'PUT'
    })
  }
  
  export function BillNumber(enCode) {
    return request({
      url: `/api/system/BillRule/BillNumber/${enCode}`,
      method: 'GET'
    })
  }
  // 导出
  export function exportTpl(id) {
    return request({
      url: `/api/system/BillRule/${id}/Action/Export`,
      method: 'get'
    })
  }