From 0e3e0d21baca4f30e37633803d12a9271ac529a2 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Tue, 26 May 2026 07:24:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=B0=E5=A2=9E=E6=85=A2=E6=80=A7?= =?UTF-8?q?=E7=96=BE=E7=97=85=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/health/chronicDisease.js | 8 + src/api/health/healthTags.js | 44 ++ src/api/health/medicationPlan.js | 68 +++ src/api/health/medicationTask.js | 53 ++ src/pages.json | 43 +- src/pages/health/chronicDisease/addEdit.vue | 226 ++++++++ src/pages/health/chronicDisease/list.vue | 311 +++++++++++ src/pages/health/healthTags/addEdit.vue | 112 ++++ src/pages/health/healthTags/list.vue | 195 +++++++ src/pages/health/index.vue | 26 + src/pages/health/medicationPlan/addEdit.vue | 430 +++++++++++++++ src/pages/health/medicationPlan/list.vue | 559 ++++++++++++++++++++ src/pages/health/medicationTask/list.vue | 363 +++++++++++++ 13 files changed, 2437 insertions(+), 1 deletion(-) create mode 100644 src/api/health/healthTags.js create mode 100644 src/api/health/medicationPlan.js create mode 100644 src/api/health/medicationTask.js create mode 100644 src/pages/health/chronicDisease/addEdit.vue create mode 100644 src/pages/health/chronicDisease/list.vue create mode 100644 src/pages/health/healthTags/addEdit.vue create mode 100644 src/pages/health/healthTags/list.vue create mode 100644 src/pages/health/medicationPlan/addEdit.vue create mode 100644 src/pages/health/medicationPlan/list.vue create mode 100644 src/pages/health/medicationTask/list.vue 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 @@ + + + + + + + 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 @@ + + + + + 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 @@ + + + + + + + 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 @@ + + + + + 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 }} + + + + 婴幼儿管理 @@ -82,6 +102,12 @@ import auth from "@/plugins/auth"; // 建议使用auth进行鉴权操作 { path: '/pages/health/medicineStockIn/list', text: '药品入库清单', icon: 'download-filled', color: 'linear-gradient(135deg, #17c0eb 0%, #f368e0 100%)', permission: 'health:medicineStockIn:list' }, { path: '/pages/health/medicineStock/list', text: '药品实时库存', icon: 'shop', color: 'linear-gradient(135deg, #0be881 0%, #0fbcf9 100%)', permission: 'health:medicineStockIn:list' } ]) + + const chronicDiseaseGridList = ref([ + { path: '/pages/health/chronicDisease/list', text: '慢性疾病', icon: 'heart', color: 'linear-gradient(135deg, #e74c3c 0%, #c0392b 100%)', permission: 'health:chronicDisease:list' }, + { path: '/pages/health/medicationPlan/list', text: '用药计划', icon: 'calendar-filled', color: 'linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%)', permission: 'health:medicationPlan:list' }, + { path: '/pages/health/medicationTask/list', text: '服药任务', icon: 'checkbox-filled', color: 'linear-gradient(135deg, #00b894 0%, #55efc4 100%)', permission: 'health:medicationTask:list' } + ]) const babycareGridList = ref([ { path: '/pages/health/milkPowderRecord/list', text: '吃奶记录', icon: 'gift-filled', color: 'linear-gradient(135deg, #fa8231 0%, #f7971e 100%)', permission: 'health:milkPowderRecord:list' }, diff --git a/src/pages/health/medicationPlan/addEdit.vue b/src/pages/health/medicationPlan/addEdit.vue new file mode 100644 index 0000000..bca7629 --- /dev/null +++ b/src/pages/health/medicationPlan/addEdit.vue @@ -0,0 +1,430 @@ + + + + + + + diff --git a/src/pages/health/medicationPlan/list.vue b/src/pages/health/medicationPlan/list.vue new file mode 100644 index 0000000..8093aa5 --- /dev/null +++ b/src/pages/health/medicationPlan/list.vue @@ -0,0 +1,559 @@ + + + + + diff --git a/src/pages/health/medicationTask/list.vue b/src/pages/health/medicationTask/list.vue new file mode 100644 index 0000000..0b28c90 --- /dev/null +++ b/src/pages/health/medicationTask/list.vue @@ -0,0 +1,363 @@ + + + + +