diff --git a/src/api/health/chronicDisease.js b/src/api/health/chronicDisease.js
index 6daecae..d3baadf 100644
--- a/src/api/health/chronicDisease.js
+++ b/src/api/health/chronicDisease.js
@@ -9,6 +9,14 @@ export function listChronicDisease(query) {
})
}
+// 根据成员ID查询慢性疾病档案列表
+export function listChronicDiseaseByMember(personId) {
+ return request({
+ url: '/health/chronicDisease/listByPerson/' + personId,
+ method: 'get'
+ })
+}
+
// 查询慢性疾病档案详细
export function getChronicDisease(id) {
return request({
diff --git a/src/api/health/healthTags.js b/src/api/health/healthTags.js
new file mode 100644
index 0000000..815b18b
--- /dev/null
+++ b/src/api/health/healthTags.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询标签管理列表
+export function listHealthTags(query) {
+ return request({
+ url: '/health/healthTags/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询标签管理详细
+export function getHealthTags(id) {
+ return request({
+ url: '/health/healthTags/' + id,
+ method: 'get'
+ })
+}
+
+// 新增标签管理
+export function addHealthTags(data) {
+ return request({
+ url: '/health/healthTags',
+ method: 'post',
+ data
+ })
+}
+
+// 修改标签管理
+export function updateHealthTags(data) {
+ return request({
+ url: '/health/healthTags',
+ method: 'put',
+ data
+ })
+}
+
+// 删除标签管理
+export function delHealthTags(id) {
+ return request({
+ url: '/health/healthTags/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/health/medicationPlan.js b/src/api/health/medicationPlan.js
new file mode 100644
index 0000000..5b61079
--- /dev/null
+++ b/src/api/health/medicationPlan.js
@@ -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'
+ })
+}
diff --git a/src/api/health/medicationTask.js b/src/api/health/medicationTask.js
new file mode 100644
index 0000000..0a2a03c
--- /dev/null
+++ b/src/api/health/medicationTask.js
@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询服药任务列表
+export function listMedicationTask(query) {
+ return request({
+ url: '/health/medicationTask/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询服药任务详细
+export function getMedicationTask(id) {
+ return request({
+ url: '/health/medicationTask/' + id,
+ method: 'get'
+ })
+}
+
+// 删除服药任务
+export function delMedicationTask(id) {
+ return request({
+ url: '/health/medicationTask/' + id,
+ method: 'delete'
+ })
+}
+
+// 确认服药
+export function confirmMedication(id, confirmType, confirmTime) {
+ return request({
+ url: '/health/medicationTask/confirm/' + id,
+ method: 'put',
+ params: { confirmType, confirmTime }
+ })
+}
+
+// 跳过服药
+export function skipMedication(id, notes) {
+ return request({
+ url: '/health/medicationTask/skip/' + id,
+ method: 'put',
+ params: { notes }
+ })
+}
+
+// 标记漏服
+export function markMissed(id, notes) {
+ return request({
+ url: '/health/medicationTask/missed/' + id,
+ method: 'put',
+ params: { notes }
+ })
+}
diff --git a/src/pages.json b/src/pages.json
index 8df32d1..606805b 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -266,8 +266,49 @@
"style": {
"navigationBarTitleText": "吃奶量统计"
}
+ },
+ {
+ "path": "pages/health/medicationPlan/list",
+ "style": {
+ "navigationBarTitleText": "用药计划"
+ }
+ },
+ {
+ "path": "pages/health/medicationPlan/addEdit",
+ "style": {
+ "navigationBarTitleText": "用药计划"
+ }
+ },
+ {
+ "path": "pages/health/chronicDisease/list",
+ "style": {
+ "navigationBarTitleText": "慢性疾病档案"
+ }
+ },
+ {
+ "path": "pages/health/chronicDisease/addEdit",
+ "style": {
+ "navigationBarTitleText": "慢性疾病档案"
+ }
+ },
+ {
+ "path": "pages/health/medicationTask/list",
+ "style": {
+ "navigationBarTitleText": "服药任务"
+ }
+ },
+ {
+ "path": "pages/health/healthTags/list",
+ "style": {
+ "navigationBarTitleText": "健康标签"
+ }
+ },
+ {
+ "path": "pages/health/healthTags/addEdit",
+ "style": {
+ "navigationBarTitleText": "健康标签"
+ }
}
-
],
"subPackages": [
{
diff --git a/src/pages/health/chronicDisease/addEdit.vue b/src/pages/health/chronicDisease/addEdit.vue
new file mode 100644
index 0000000..40b8ca0
--- /dev/null
+++ b/src/pages/health/chronicDisease/addEdit.vue
@@ -0,0 +1,226 @@
+
+
+
+ {{ title }}
+
+
+
+
+
+ ▼
+
+
+
+
+
+
+
+
+
+
+
+ ▼
+
+
+
+
+
+ ▼
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/health/chronicDisease/list.vue b/src/pages/health/chronicDisease/list.vue
new file mode 100644
index 0000000..b3a9e33
--- /dev/null
+++ b/src/pages/health/chronicDisease/list.vue
@@ -0,0 +1,311 @@
+
+
+
+
+
+
+
+
+ 筛选
+
+
+
+ 新增
+
+
+
+
+ 成员
+
+ {{ item.name }}
+
+ 疾病状态
+
+ {{ item.label }}
+
+
+
+
+
+ 重置
+
+
+
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 成员
+ {{ item.personName || '--' }}
+
+
+ 疾病编码
+ {{ item.diseaseCode || '--' }}
+
+
+ 确诊日期
+ {{ formatDate(item.diagnosisDate) }}
+
+
+ 主治医生
+ {{ item.mainDoctor || '--' }}
+
+
+ 就诊医院
+ {{ item.hospital }} {{ item.department ? '- ' + item.department : '' }}
+
+
+ 启用状态
+ {{ item.isActive === 1 ? '已启用' : '已停用' }}
+
+
+
+
+
+
+
+ 修改
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/health/healthTags/addEdit.vue b/src/pages/health/healthTags/addEdit.vue
new file mode 100644
index 0000000..5dfaab9
--- /dev/null
+++ b/src/pages/health/healthTags/addEdit.vue
@@ -0,0 +1,112 @@
+
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/health/healthTags/list.vue b/src/pages/health/healthTags/list.vue
new file mode 100644
index 0000000..b0fa557
--- /dev/null
+++ b/src/pages/health/healthTags/list.vue
@@ -0,0 +1,195 @@
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+ 名称
+ {{ item.name || '--' }}
+
+
+ 编码
+ {{ item.code || '--' }}
+
+
+ 备注
+ {{ item.remark }}
+
+
+
+
+
+
+
+ 修改
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/health/index.vue b/src/pages/health/index.vue
index 03418d6..824c19e 100644
--- a/src/pages/health/index.vue
+++ b/src/pages/health/index.vue
@@ -21,6 +21,26 @@
+
+
+
+
+
+
+
+
+ {{ item.text }}
+
+
+
+