appointment.js
2.97 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
import request from '@/plugin/axios'
/**
* 预约配置列表生成接口
*/
export function appointmentList(data) {
return request({
url: '/reserve/appointmentRules/search',
method: 'get',
params: {
data
}
})
}
/**
* 根据预约规则id单个/批量启用/禁用预约规则
*/
export function enableAppointmentRule(data) {
return request({
url: '/reserve/appointmentRules/enableAppointmentRule?yyidList='+data.yyidList+'&enable='+data.enable,
method: 'post'
})
}
/**
* 单个/批量删除预约规则
*/
export function deleteRuleByIds(data) {
return request({
url: '/reserve/appointmentRules/deleteByIds?yyidList='+data.yyidList,
method: 'delete'
})
}
/**
* 获取预约批次号-预约配置设置
*/
export function getBatch() {
return request({
url: '/reserve/appointmentRules/getBatch',
method: 'get'
})
}
/**
* 组织机构接口 : Organization Service
*/
export function queryAllOrganization() {
return request({
url: '/reserve/organization/queryAllOrganization',
method: 'get'
})
}
/**
* 获取所有业务
*/
export function getAllBusinessList() {
return request({
url: '/reserve/appointmentPeriodRules/getAllBusinessList',
method: 'get'
})
}
/**
* 根据机构IDS、业务IDS查询预约业务-预约业务配置
*/
export function getAppointmentBusinessList(data) {
return request({
url: '/reserve/appointmentPeriodRules/getAppointmentBusinessList',
method: 'get',
params: {
jgid: data.jgids,
ywids: data.ywids
}
})
}
/**
* 根据机构ID查询机构预约和未预约业务
*/
export function getBusinessByJgid(data) {
return request({
url: '/reserve/appointmentPeriodRules/getBusinessByJgid',
method: 'get',
params: {
jgid: data
}
})
}
/**
* 对机构授权可预约业务-预约业务设置保存
*/
export function grantAppointment(data) {
return request({
url: '/reserve/appointmentPeriodRules/grantAppointment?appointmentYwids='+data.appointmentYwids+'&jgid='+data.jgid,
method: 'post'
})
}
/**
* 单个/批量删除机构下的所有预约业务-预约业务设置保存
*/
export function deleteByjgids(data) {
return request({
url: '/reserve/appointmentPeriodRules/deleteByjgids?jgids='+data,
method: 'delete'
})
}
/**
* 预约记录管理
*/
export function SearchList(data) {
return request({
url: '/reserve/appointment/search',
method: 'post',
data: data,
})
}
// 单个/批量取消赴约
export function CancelAppointment(data) {
return request({
url: '/reserve/appointment/deleteByIds?idList='+data,
method: 'delete',
})
}
//赴约
export function Appointment(data) {
return request({
url: '/reserve/appointment/keepAppointment',
method: 'put',
data: data,
})
}