76 门诊预约挂号
This commit is contained in:
57
openhis-ui-vue3/src/api/appoinmentmanage/ticket.js
Normal file
57
openhis-ui-vue3/src/api/appoinmentmanage/ticket.js
Normal file
@@ -0,0 +1,57 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询号源列表
|
||||
export function listTicket(query) {
|
||||
return request({
|
||||
url: '/appointment/ticket/list',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
|
||||
// 预约号源
|
||||
export function bookTicket(data) {
|
||||
return request({
|
||||
url: '/appointment/ticket/book',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 取消预约
|
||||
export function cancelTicket(ticketId) {
|
||||
return request({
|
||||
url: '/appointment/ticket/cancel',
|
||||
method: 'post',
|
||||
params: { ticketId }
|
||||
})
|
||||
}
|
||||
|
||||
// 取号
|
||||
export function checkInTicket(ticketId) {
|
||||
return request({
|
||||
url: '/appointment/ticket/checkin',
|
||||
method: 'post',
|
||||
params: { ticketId }
|
||||
})
|
||||
}
|
||||
|
||||
// 停诊
|
||||
export function cancelConsultation(ticketId) {
|
||||
return request({
|
||||
url: '/appointment/ticket/cancelConsultation',
|
||||
method: 'post',
|
||||
params: { ticketId }
|
||||
})
|
||||
}
|
||||
|
||||
// 查询所有号源(用于测试)
|
||||
export function listAllTickets() {
|
||||
return request({
|
||||
url: '/appointment/ticket/listAll',
|
||||
method: 'get',
|
||||
headers: {
|
||||
isToken: false
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user