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
|
| import { publicRequest } from '@/utils/request'
|
| //阶梯收费配置
| export default function TieredCharging() {
| return {
| //创建阶梯收费配置
| create: (data) => {
| return publicRequest({
| url: '/tieredCharging/create',
| method: 'post',
| data,
| });
| },
| //删除阶梯收费配置
| remove: (id) => {
| return publicRequest({
| url: `/tieredCharging/remove?id=${id}`,
| method: 'post',
| });
| },
| //编辑阶梯收费配置
| modify: (data) => {
| return publicRequest({
| url: '/tieredCharging/modify',
| method: 'post',
| data,
| });
| },
| //停用阶梯收费配置
| stop: (id) => {
| return publicRequest({
| url: `/tieredCharging/stop?id=${id}`,
| method: 'post',
| });
| },
| //启用阶梯收费配置
| enable: (id) => {
| return publicRequest({
| url: `/tieredCharging/enable?id=${id}`,
| method: 'post',
| });
| },
| //分页查询阶梯收费配置
| search: (data) => {
| return publicRequest({
| url: '/tieredCharging/search',
| method: 'post',
| data,
| });
| },
| //获取阶梯收费配置
| get: (id) => {
| return publicRequest({
| url: `/tieredCharging/get?id=${id}`,
| method: 'get',
| });
| },
| };
| }
|
|