|
@@ -2,14 +2,14 @@ import request from '../utils/request'
|
|
|
|
|
|
export function getAllDepartments() {
|
|
export function getAllDepartments() {
|
|
return request({
|
|
return request({
|
|
- url: '/wechat/getAllDepartments',
|
|
|
|
|
|
+ url: '/appointment/getAllDepartments',
|
|
method: 'get',
|
|
method: 'get',
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
export function getSourcesByDate(data) {
|
|
export function getSourcesByDate(data) {
|
|
return request({
|
|
return request({
|
|
- url: '/wechat/getSourcesByDate',
|
|
|
|
|
|
+ url: '/appointment/getSourcesByDate',
|
|
method: 'post',
|
|
method: 'post',
|
|
data,
|
|
data,
|
|
})
|
|
})
|
|
@@ -17,7 +17,7 @@ export function getSourcesByDate(data) {
|
|
|
|
|
|
export function getDoctorSources(data) {
|
|
export function getDoctorSources(data) {
|
|
return request({
|
|
return request({
|
|
- url: '/wechat/getDoctorSources',
|
|
|
|
|
|
+ url: '/appointment/getDoctorSources',
|
|
method: 'post',
|
|
method: 'post',
|
|
data,
|
|
data,
|
|
})
|
|
})
|
|
@@ -25,7 +25,15 @@ export function getDoctorSources(data) {
|
|
|
|
|
|
export function getDoctorArrangement(data) {
|
|
export function getDoctorArrangement(data) {
|
|
return request({
|
|
return request({
|
|
- url: '/wechat/getDoctorArrangement',
|
|
|
|
|
|
+ url: '/appointment/getDoctorArrangement',
|
|
|
|
+ method: 'post',
|
|
|
|
+ data,
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+export function getGhFee(data) {
|
|
|
|
+ return request({
|
|
|
|
+ url: '/appointment/getGhFee',
|
|
method: 'post',
|
|
method: 'post',
|
|
data,
|
|
data,
|
|
})
|
|
})
|
|
@@ -33,7 +41,7 @@ export function getDoctorArrangement(data) {
|
|
|
|
|
|
export function getDoctorInfo(doctorCode, openId) {
|
|
export function getDoctorInfo(doctorCode, openId) {
|
|
return request({
|
|
return request({
|
|
- url: '/wechat/getDoctorInfo',
|
|
|
|
|
|
+ url: '/appointment/getDoctorInfo',
|
|
method: 'get',
|
|
method: 'get',
|
|
params: { doctorCode, openId },
|
|
params: { doctorCode, openId },
|
|
})
|
|
})
|
|
@@ -41,31 +49,23 @@ export function getDoctorInfo(doctorCode, openId) {
|
|
|
|
|
|
export function hasDoneCovidAssessment(patientId) {
|
|
export function hasDoneCovidAssessment(patientId) {
|
|
return request({
|
|
return request({
|
|
- url: '/wechat/hasDoneCovidAssessment',
|
|
|
|
|
|
+ url: '/appointment/hasDoneCovidAssessment',
|
|
method: 'get',
|
|
method: 'get',
|
|
params: { patientId },
|
|
params: { patientId },
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
-export function confirmAppointment(data) {
|
|
|
|
- return request({
|
|
|
|
- url: '/wechat/confirmAppointment',
|
|
|
|
- method: 'post',
|
|
|
|
- data,
|
|
|
|
- })
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-export function collectDoctor(data) {
|
|
|
|
|
|
+export function saveAppointment(data) {
|
|
return request({
|
|
return request({
|
|
- url: '/wechat/collectDoctor',
|
|
|
|
|
|
+ url: '/appointment/saveAppointment',
|
|
method: 'post',
|
|
method: 'post',
|
|
data,
|
|
data,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
-export function disCollectDoctor(data) {
|
|
|
|
|
|
+export function confirmAppointment(data) {
|
|
return request({
|
|
return request({
|
|
- url: '/wechat/disCollectDoctor',
|
|
|
|
|
|
+ url: '/appointment/confirmAppointment',
|
|
method: 'post',
|
|
method: 'post',
|
|
data,
|
|
data,
|
|
})
|
|
})
|
|
@@ -73,7 +73,7 @@ export function disCollectDoctor(data) {
|
|
|
|
|
|
export function getSourcesByDateAndDoctor(data) {
|
|
export function getSourcesByDateAndDoctor(data) {
|
|
return request({
|
|
return request({
|
|
- url: '/wechat/getSourcesByDateAndDoctor',
|
|
|
|
|
|
+ url: '/appointment/getSourcesByDateAndDoctor',
|
|
method: 'post',
|
|
method: 'post',
|
|
data,
|
|
data,
|
|
})
|
|
})
|
|
@@ -81,7 +81,7 @@ export function getSourcesByDateAndDoctor(data) {
|
|
|
|
|
|
export function getDoctorQrCode(doctorCode) {
|
|
export function getDoctorQrCode(doctorCode) {
|
|
return request({
|
|
return request({
|
|
- url: '/wechat/getDoctorQrCode',
|
|
|
|
|
|
+ url: '/appointment/getDoctorQrCode',
|
|
method: 'get',
|
|
method: 'get',
|
|
params: { doctorCode },
|
|
params: { doctorCode },
|
|
})
|
|
})
|
|
@@ -89,7 +89,7 @@ export function getDoctorQrCode(doctorCode) {
|
|
|
|
|
|
export function createPayOrder(data) {
|
|
export function createPayOrder(data) {
|
|
return request({
|
|
return request({
|
|
- url: '/wechat/createPayOrder',
|
|
|
|
|
|
+ url: '/appointment/createPayOrder',
|
|
method: 'post',
|
|
method: 'post',
|
|
data,
|
|
data,
|
|
})
|
|
})
|