feat(health): 新增用药计划模块前端页面

- 新增用药计划和用药记录API接口
- 新增用药计划管理页面(列表/新增/编辑/暂停/恢复/结束)
- 新增用药记录管理页面(列表/服药/跳过)

(cherry picked from commit d8caa6c7e6)
This commit is contained in:
bot5
2026-03-18 14:10:32 +08:00
committed by tianyongbao
parent e4c7c76933
commit 84ed0a36f3
4 changed files with 951 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
import request from '@/utils/request'
// 查询用药计划列表
export function listMedicationPlan(query) {
return request({
url: '/health/medicationPlan/list',
method: 'get',
params: query
})
}
// 查询用药计划详细
export function getMedicationPlan(id) {
return request({
url: '/health/medicationPlan/' + id,
method: 'get'
})
}
// 新增用药计划
export function addMedicationPlan(data) {
return request({
url: '/health/medicationPlan',
method: 'post',
data
})
}
// 修改用药计划
export function updateMedicationPlan(data) {
return request({
url: '/health/medicationPlan',
method: 'put',
data
})
}
// 删除用药计划
export function delMedicationPlan(id) {
return request({
url: '/health/medicationPlan/' + id,
method: 'delete'
})
}
// 暂停用药计划
export function pauseMedicationPlan(id) {
return request({
url: '/health/medicationPlan/pause/' + id,
method: 'put'
})
}
// 恢复用药计划
export function resumeMedicationPlan(id) {
return request({
url: '/health/medicationPlan/resume/' + id,
method: 'put'
})
}
// 结束用药计划
export function endMedicationPlan(id) {
return request({
url: '/health/medicationPlan/end/' + id,
method: 'put'
})
}