contract.js
1.57 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
import request from '@/utils/request'
// 获取合同列表
export function getContractList(params) {
return request({
url: '/api/Extend/LqContract/GetList',
method: 'GET',
data: params
})
}
// 获取合同详情
export function getContractInfo(id) {
return request({
url: '/api/Extend/LqContract/GetInfo',
method: 'GET',
data: { id }
})
}
// 创建合同
export function createContract(data) {
return request({
url: '/api/Extend/LqContract/Create',
method: 'POST',
data: data
})
}
// 更新合同
export function updateContract(data) {
return request({
url: '/api/Extend/LqContract/Update',
method: 'PUT',
data: data
})
}
// 删除合同
export function deleteContract(id) {
return request({
url: `/api/Extend/LqContract/${id}`,
method: 'DELETE'
})
}
// 获取月租明细列表
export function getRentDetails(contractId) {
return request({
url: '/api/Extend/LqContract/GetRentDetails',
method: 'GET',
data: { contractId }
})
}
// 标记明细已缴费
export function markRentDetailPaid(data) {
return request({
url: '/api/Extend/LqContract/MarkRentDetailPaid',
method: 'PUT',
data: data
})
}
// 统计门店合同费用
export function getExpenseStatistics(data) {
return request({
url: '/api/Extend/LqContract/GetExpenseStatistics',
method: 'POST',
data: data
})
}
// 获取合同成本
export function getContractCost(id) {
return request({
url: '/api/Extend/LqContract/GetContractCostList',
method: 'GET',
data: {
"contractId": id
}
})
}