diff --git a/src/api/health/medicationAdherence.js b/src/api/health/medicationAdherence.js
deleted file mode 100644
index e0ae9c0..0000000
--- a/src/api/health/medicationAdherence.js
+++ /dev/null
@@ -1,46 +0,0 @@
-import request from '@/utils/request'
-
-// 获取总体依从性统计
-export function getOverallAdherence(query) {
- return request({
- url: '/health/adherence/overall',
- method: 'get',
- params: query
- })
-}
-
-// 获取每日依从性统计列表
-export function getDailyAdherence(query) {
- return request({
- url: '/health/adherence/daily',
- method: 'get',
- params: query
- })
-}
-
-// 获取日历视图数据
-export function getCalendarData(memberId, yearMonth) {
- return request({
- url: '/health/adherence/calendar',
- method: 'get',
- params: { memberId, yearMonth }
- })
-}
-
-// 获取各时段服药统计
-export function getTimeSlotAdherence(query) {
- return request({
- url: '/health/adherence/timeSlot',
- method: 'get',
- params: query
- })
-}
-
-// 获取仪表盘概览数据
-export function getDashboard(memberId) {
- return request({
- url: '/health/adherence/dashboard',
- method: 'get',
- params: { memberId }
- })
-}
\ No newline at end of file
diff --git a/src/api/health/medicationPlan.js b/src/api/health/medicationPlan.js
deleted file mode 100644
index a37ee1b..0000000
--- a/src/api/health/medicationPlan.js
+++ /dev/null
@@ -1,68 +0,0 @@
-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'
- })
-}
\ No newline at end of file
diff --git a/src/api/health/medicationRecord.js b/src/api/health/medicationRecord.js
deleted file mode 100644
index 7ddb6b8..0000000
--- a/src/api/health/medicationRecord.js
+++ /dev/null
@@ -1,109 +0,0 @@
-import request from '@/utils/request'
-
-function today() {
- return new Date().toISOString().substring(0, 10)
-}
-
-function normalizeQuery(query = {}) {
- const params = { ...query }
- if (params.keys && !params.keyword) {
- params.keyword = params.keys
- }
- if (params.status) {
- params.status = {
- 1: 0,
- 2: 1,
- 3: 3,
- 4: 2
- }[params.status] ?? params.status
- }
- delete params.keys
- return params
-}
-
-function normalizeStatus(status) {
- return {
- 0: '1',
- 1: '2',
- 2: '4',
- 3: '3'
- }[status] || String(status || '')
-}
-
-function normalizeRecord(record = {}) {
- const plannedTime = record.plannedTime || ''
- const plannedDate = record.plannedDate || ''
- return {
- ...record,
- status: normalizeStatus(record.status),
- shortName: record.shortName || record.medicineName || '',
- brand: record.brand || '',
- dosage: record.dosage || record.plannedDosage || '',
- dosageUnit: record.dosageUnit || '',
- scheduledTime: record.scheduledTime || `${plannedDate} ${plannedTime}`.trim()
- }
-}
-
-function normalizeListResponse(res) {
- const rows = (res.rows || []).map(normalizeRecord)
- return {
- ...res,
- rows,
- data: Array.isArray(res.data) ? res.data.map(normalizeRecord) : res.data
- }
-}
-
-// 查询服药任务列表,兼容页面中的 medicationRecord 命名
-export function listMedicationRecord(query) {
- return request({
- url: '/health/medicationTask/list',
- method: 'get',
- params: normalizeQuery(query)
- }).then(normalizeListResponse)
-}
-
-// 查询今日服药任务
-export function getTodayRecords() {
- return listMedicationRecord({
- pageNum: 1,
- pageSize: 100,
- queryDate: today()
- }).then(res => ({
- ...res,
- data: res.data || res.rows || []
- }))
-}
-
-// 查询某计划某天的服药任务
-export function getRecordsByPlanAndDate(planId, queryDate) {
- return listMedicationRecord({
- pageNum: 1,
- pageSize: 100,
- planId,
- queryDate
- }).then(res => ({
- ...res,
- data: res.data || res.rows || []
- }))
-}
-
-// 确认服药
-export function takeMedication(id, dosage, confirmTime) {
- return request({
- url: '/health/medicationTask/confirm/' + id,
- method: 'put',
- params: {
- confirmType: 1,
- confirmTime
- }
- })
-}
-
-// 跳过服药
-export function skipMedication(id, notes) {
- return request({
- url: '/health/medicationTask/skip/' + id,
- method: 'put',
- params: { notes }
- })
-}
diff --git a/src/api/health/medicationTask.js b/src/api/health/medicationTask.js
deleted file mode 100644
index 1e9ad3e..0000000
--- a/src/api/health/medicationTask.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import request from '@/utils/request'
-
-// 查询服药任务列表
-export function listMedicationTask(query) {
- return request({
- url: '/health/medicationTask/list',
- method: 'get',
- params: query
- })
-}
-
-// 确认服药
-export function confirmMedication(id, confirmType) {
- return request({
- url: '/health/medicationTask/confirm/' + id,
- method: 'put',
- params: { confirmType }
- })
-}
-
-// 跳过服药
-export function skipMedication(id, notes) {
- return request({
- url: '/health/medicationTask/skip/' + id,
- method: 'put',
- params: { notes }
- })
-}
\ No newline at end of file
diff --git a/src/pages.json b/src/pages.json
index d326bfc..4256e6a 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -225,18 +225,6 @@
"navigationBarTitleText": "活动记录"
}
},
- {
- "path": "pages/health/chronicDisease/list",
- "style": {
- "navigationBarTitleText": "慢性疾病档案"
- }
- },
- {
- "path": "pages/health/chronicDisease/addEdit",
- "style": {
- "navigationBarTitleText": "慢性疾病档案"
- }
- },
{
"path": "pages/health/statistic/doctorStatistic/index",
"style": {
@@ -266,31 +254,8 @@
"style": {
"navigationBarTitleText": "吃奶量统计"
}
- },
- {
- "path": "pages/health/medicationPlan/list",
- "style": {
- "navigationBarTitleText": "用药计划"
- }
- },
- {
- "path": "pages/health/medicationPlan/details",
- "style": {
- "navigationBarTitleText": "用药计划详情"
- }
- },
- {
- "path": "pages/health/medicationPlan/addEdit",
- "style": {
- "navigationBarTitleText": "用药计划"
- }
- },
- {
- "path": "pages/health/medicationRecord/index",
- "style": {
- "navigationBarTitleText": "用药记录"
- }
}
+
],
"subPackages": [
{
diff --git a/src/pages/health/chronicDisease/addEdit.vue b/src/pages/health/chronicDisease/addEdit.vue
deleted file mode 100644
index 6feac5a..0000000
--- a/src/pages/health/chronicDisease/addEdit.vue
+++ /dev/null
@@ -1,387 +0,0 @@
-
-
-
- {{ title }}
-
-
-
-
-
- ▼
-
-
-
-
-
-
-
-
-
-
-
- ▼
-
-
-
-
-
- ▼
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/health/chronicDisease/list.vue b/src/pages/health/chronicDisease/list.vue
deleted file mode 100644
index d86aec1..0000000
--- a/src/pages/health/chronicDisease/list.vue
+++ /dev/null
@@ -1,684 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- 新增
-
-
-
-
-
-
-
-
-
-
-
- 筛选
-
-
-
-
-
-
-
- 疾病状态
-
- {{ item.label }}
-
- 是否启用
-
- {{ item.label }}
-
-
-
-
-
- 重置
-
-
-
- 确定
-
-
-
-
-
-
-
-
-
-
-
-
-
- 成员
- {{ item.memberName || '--' }}
-
-
- 确诊日期
- {{ item.diagnosisDate || '--' }}
-
-
- 疾病状态
- {{ getStatusText(item.diseaseStatus) }}
-
-
- 是否启用
- {{ item.isActive === 1 ? '启用' : '停用' }}
-
-
- 主治医生
- {{ item.mainDoctor || '--' }}
-
-
- 就诊医院
- {{ item.hospital || '--' }}
-
-
- 科室
- {{ item.department || '--' }}
-
-
- 备注说明
- {{ item.notes }}
-
-
-
-
-
-
- 修改
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/health/medicationPlan/addEdit.vue b/src/pages/health/medicationPlan/addEdit.vue
deleted file mode 100644
index d99f7bd..0000000
--- a/src/pages/health/medicationPlan/addEdit.vue
+++ /dev/null
@@ -1,456 +0,0 @@
-
-
-
- {{ title }}
-
-
-
-
-
-
-
-
-
-
- ▼
-
-
-
-
-
-
- ▼
-
-
-
-
-
-
-
-
-
-
-
-
- -
- {{ form.frequency }}
- +
-
-
-
-
-
-
- ▼
-
-
-
-
-
-
- {{ time }}
-
-
-
-
-
-
-
-
-
-
-
- ▼
-
-
-
-
-
-
- ▼
-
-
-
-
-
-
-
-
-
- -
- {{ form.reminderMinutes }}分钟
- +
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/health/medicationPlan/details.vue b/src/pages/health/medicationPlan/details.vue
deleted file mode 100644
index 72a1aa7..0000000
--- a/src/pages/health/medicationPlan/details.vue
+++ /dev/null
@@ -1,357 +0,0 @@
-
-
-
-
-
-
- 基本信息
-
-
- 人员
- {{ detail.personName || '--' }}
-
-
- 药品
- {{ detail.medicineDisplayName || '--' }}
-
-
- 每次剂量
- {{ detail.dosage }}{{ detail.dosageUnit }}
-
-
- 每日次数
- {{ detail.frequency }}次
-
-
- 频率类型
- {{ getFrequencyText(detail.frequencyType) }}
-
-
- 开始日期
- {{ formatDate(detail.startDate) }}
-
-
- 结束日期
- {{ detail.endDate ? formatDate(detail.endDate) : '长期' }}
-
-
- 提醒
- {{ detail.reminderEnabled === '1' ? '开启 (提前' + detail.reminderMinutes + '分钟)' : '关闭' }}
-
-
-
-
-
- 今日进度
-
-
-
-
- {{ detail.todayTakenCount || 0 }}/{{ detail.todayTotalCount || 0 }} 次
-
-
-
- {{ time }}
- {{ takenTimes.includes(idx) ? '已服' : '待服' }}
-
-
-
-
-
- 备注
-
-
-
-
-
-
-
- 今日记录
-
-
-
- 修改计划
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/health/medicationPlan/list.vue b/src/pages/health/medicationPlan/list.vue
deleted file mode 100644
index 10a8404..0000000
--- a/src/pages/health/medicationPlan/list.vue
+++ /dev/null
@@ -1,359 +0,0 @@
-
-
-
-
-
-
-
-
- 筛选
-
-
-
- 新增
-
-
-
-
- 人员
-
- {{ item.name }}
-
- 状态
-
- {{ item.label }}
-
-
-
-
-
- 重置
-
-
-
- 确定
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 人员
- {{ item.personName || '--' }}
-
-
- 药品
- {{ item.shortName }}-{{ item.brand }}
-
-
- 剂量
- {{ item.dosage }}{{ item.dosageUnit }} × {{ item.frequency }}次/日
-
-
- 今日进度
- {{ item.todayTakenCount || 0 }}/{{ item.todayTotalCount || 0 }}
- --
-
-
- 开始日期
- {{ formatDate(item.startDate) }}
-
-
- 结束日期
- {{ item.endDate ? formatDate(item.endDate) : '长期' }}
-
-
-
-
-
-
-
- 今日记录
-
-
-
- 暂停
-
-
-
- 恢复
-
-
-
- 结束
-
-
-
- 修改
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/pages/health/medicationRecord/index.vue b/src/pages/health/medicationRecord/index.vue
deleted file mode 100644
index 0de779c..0000000
--- a/src/pages/health/medicationRecord/index.vue
+++ /dev/null
@@ -1,464 +0,0 @@
-
-
-
-
-
-
-
-
- 筛选
-
-
-
-
- 人员
-
- {{ item.name }}
-
- 状态
-
- {{ item.label }}
-
- 日期范围
-
-
- 至
-
-
-
-
-
-
- 重置
-
-
-
- 确定
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.shortName }}
- {{ item.dosage }}{{ item.dosageUnit }}
-
-
- {{ formatTime(item.scheduledTime) }}
- 点击服药
-
-
-
-
-
-
-
-
-
-
-
-
-
- 计划时间
- {{ formatDateTime(item.scheduledTime) }}
-
-
- 实际时间
- {{ item.actualTime ? formatDateTime(item.actualTime) : '--' }}
-
-
- 剂量
- {{ item.dosage }}{{ item.dosageUnit }}
-
-
- 人员
- {{ item.personName }}
-
-
-
-
-
-
-
- 服药
-
-
-
- 跳过
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file