转诊方功能优化
This commit is contained in:
@@ -34,3 +34,20 @@ export async function agreeTransferPrescriptionApi(params) {
|
||||
export async function rejectTransferPrescriptionApi(params) {
|
||||
return await post('/transfer-prescription/reject', params, 3)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取转诊问题列表(用于咨询页面)
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
export async function getTransferQuestionsApi() {
|
||||
return await get('/transfer-prescription/get-questions', {}, 3)
|
||||
}
|
||||
|
||||
/**
|
||||
* 提交转诊问题答案
|
||||
* @param params { transfer_id: number, answers: Array<{question_id: number, answer: string}> }
|
||||
* @returns {Promise<*>}
|
||||
*/
|
||||
export async function submitTransferQuestionsApi(params) {
|
||||
return await post('/transfer-prescription/submit-questions', params, 3)
|
||||
}
|
||||
Reference in New Issue
Block a user