addDuan.js
1.82 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import request from '@/utils/request'
// 添加段位
export function insertDuanInfo(data) {
return request({
url: '/person/info/insertDuanInfo',
method: 'post',
data
})
}
// 添加段位第一步
export function duanInput(data) {
return request({
url: '/system/duanInput',
method: 'post',
data
})
}
// 里表
export function listApi(params) {
return request({
url: '/system/duanInput/list',
method: 'get',
params
})
}
// 外表
export function apiList(params) {
return request({
url: '/system/duanInputRange/list',
method: 'get',
params
})
}
// 确认
export function confirm(data) {
return request({
url: `/system/duanInputRange/confirm/${data.ids}`,
method: 'post',
data
})
}
// 删除
export function duanInputDel(data) {
return request({
url: `/system/duanInput/${data.ids}`,
method: 'delete',
data
})
}
// 撤回里
export function voidDuanInfo(data) {
return request({
url: `/system/duanInput/voidDuanInfo/${data.ids}`,
method: 'post',
data
})
}
// 撤回外
export function voidDuanInfoRange(data) {
return request({
url: `/system/duanInputRange/voidDuanInfo/${data.ids}`,
method: 'post',
data
})
}
// 删除
export function duanInputDeltel(ids) {
return request({
url: `/system/duanInputRange/${ids}`,
method: 'delete'
})
}
// 再确认里面
export function effectDuanInfo(ids) {
return request({
url: `/system/duanInputRange/${ids}`,
method: 'post'
})
}
// 再确认外面
export function effectDuanInfoRang(ids) {
return request({
url: `/system/duanInputRange/effectDuanInfo/${ids}`,
method: 'post'
})
}
// 上传附件
export function uploadFile(params) {
return request({
url: `/system/duanInputRange/uploadFile/${params.id}`,
method: 'post',
params
})
}