7505cb92
wuxw
开发完成折扣设置
|
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
|
import request from '@/utils/request'
import { getCommunityId } from '@/api/community/communityApi'
// 获取退费申请单列表
export function listReturnPayFees(params) {
return new Promise((resolve, reject) => {
// 确保社区ID存在
if (!params.communityId) {
params.communityId = getCommunityId()
}
request({
url: '/returnPayFee.listReturnPayFees',
method: 'get',
params
}).then(response => {
const res = response.data
resolve(res)
}).catch(error => {
reject(error)
})
})
}
// 更新退费申请单状态
export function updateReturnPayFee(data) {
return new Promise((resolve, reject) => {
// 确保社区ID存在
if (!data.communityId) {
data.communityId = getCommunityId()
}
request({
url: '/returnPayFee.updateReturnPayFee',
method: 'post',
data,
headers: {
'Content-Type': 'application/json'
}
}).then(response => {
const res = response.data
resolve(res)
}).catch(error => {
reject(error)
})
})
}
// 尝试退款
export function tryRefundMoney(data) {
return new Promise((resolve, reject) => {
// 确保社区ID存在
if (!data.communityId) {
data.communityId = getCommunityId()
}
request({
url: '/returnPayFee.tryRefundMoney',
method: 'post',
data,
headers: {
'Content-Type': 'application/json'
}
}).then(response => {
const res = response.data
resolve(res)
}).catch(error => {
reject(error)
})
})
}
// 获取字典数据
export function getDict(dictType, state) {
return new Promise((resolve, reject) => {
request({
url: '/dict.getDict',
method: 'get',
params: {
dictType,
state,
communityId: getCommunityId()
}
}).then(response => {
const res = response.data
resolve(res)
}).catch(error => {
reject(error)
})
})
}
|