医生常用语页面开发,接口实现.
This commit is contained in:
54
openhis-ui-vue3/src/views/doctorstation/doctorphrase/api.js
Normal file
54
openhis-ui-vue3/src/views/doctorstation/doctorphrase/api.js
Normal file
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 获取医生常用语列表
|
||||
*/
|
||||
export function getDoctorPhraseList() {
|
||||
return request({
|
||||
url: '/Doctor-phrase/list',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索医生常用语
|
||||
*/
|
||||
export function searchDoctorPhraseList(phraseName, phraseType, phraseCategory) {
|
||||
return request({
|
||||
url: '/Doctor-phrase/search',
|
||||
method: 'get',
|
||||
params: { phraseName, phraseType, phraseCategory }
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增医生常用语
|
||||
*/
|
||||
export function addDoctorPhrase(data) {
|
||||
return request({
|
||||
url: '/Doctor-phrase/add',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新医生常用语
|
||||
*/
|
||||
export function updateDoctorPhrase(data) {
|
||||
return request({
|
||||
url: '/Doctor-phrase/update',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除医生常用语
|
||||
*/
|
||||
export function deleteDoctorPhrase(DoctorPhraseId) {
|
||||
return request({
|
||||
url: `/Doctor-phrase/delete/${DoctorPhraseId}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user