diff --git a/src/api/health/statisticAnalysis.js b/src/api/health/statisticAnalysis.js
index 2b39859..a556dae 100644
--- a/src/api/health/statisticAnalysis.js
+++ b/src/api/health/statisticAnalysis.js
@@ -15,3 +15,29 @@ export function getTemperatureAnalysis(query) {
params: query
})
}
+
+
+export function getHealthAnalysis(query) {
+ return request({
+ url: '/health/analysis/healthAnalysis',
+ method: 'get',
+ params: query
+ })
+}
+
+export function getRecordAnalysis(query) {
+ return request({
+ url: '/health/analysis/recordAnalysis',
+ method: 'get',
+ params: query
+ })
+}
+
+export function getDoctorAnalysis(query) {
+ return request({
+ url: '/health/analysis/doctorAnalysis',
+ method: 'get',
+ params: query
+ })
+}
+
diff --git a/src/pages.json b/src/pages.json
index 932e836..5297012 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -195,7 +195,31 @@
"style": {
"navigationBarTitleText": "活动记录"
}
- }
+ } ,
+ {
+ "path": "pages/health/statistic/doctorStatistic/index",
+ "style": {
+ "navigationBarTitleText": "就医统计"
+ }
+ } ,
+ {
+ "path": "pages/health/statistic/healthStatistic/index",
+ "style": {
+ "navigationBarTitleText": "档案统计"
+ }
+ } ,
+ {
+ "path": "pages/health/statistic/marStatistic/index",
+ "style": {
+ "navigationBarTitleText": "用药统计"
+ }
+ } ,
+ {
+ "path": "pages/health/statistic/temperatureStatistic/index",
+ "style": {
+ "navigationBarTitleText": "体温统计"
+ }
+ }
],
"subPackages": [
{
diff --git a/src/pages/health/activity/addEdit.vue b/src/pages/health/activity/addEdit.vue
index c862ff8..82b60e9 100644
--- a/src/pages/health/activity/addEdit.vue
+++ b/src/pages/health/activity/addEdit.vue
@@ -36,13 +36,14 @@
-
+
+
+
+
+
{
typeList.value =[res.data]
+ })
+ // 类型
+ getDicts('activity_exercise').then(res => {
+ activityVolumeList.value =[res.data]
})
if(form.value.id!=null){
getActivity(form.value.id).then(res => {
@@ -197,6 +208,10 @@ function getData() {
// 类型
getDicts('activity_type').then(result => {
form.value.typeName=dictStr(form.value.type, result.data)
+ })
+ // 类型
+ getDicts('activity_exercise').then(result => {
+ form.value.activityVolumeName=dictStr(form.value.activityVolume, result.data)
})
})
}
@@ -221,6 +236,24 @@ function getData() {
showType.value = false
}
+ function handleActivityVolume() {
+ if (activityVolumeList.value[0].length === 0) {
+ proxy.$refs['uToast'].show({
+ message: '活动量为空 ', type: 'warning'
+ })
+ } else {
+ showActivityVolume.value = true
+ }
+ }
+ function handleActivityVolumeConfirm(e) {
+ form.value.activityVolumeName = e.value[0].dictLabel
+ form.value.activityVolume = e.value[0].dictValue
+ showActivityVolume.value = false
+ }
+ function handleActivityVolumeCancel() {
+ showActivityVolume.value = false
+ }
+
function submit() {
proxy.$refs['uForm'].validate().then(() => {
diff --git a/src/pages/health/activity/list.vue b/src/pages/health/activity/list.vue
index 0b232f5..b398a87 100644
--- a/src/pages/health/activity/list.vue
+++ b/src/pages/health/activity/list.vue
@@ -14,7 +14,7 @@
活动名称:
@@ -38,11 +38,11 @@
-->
活动量:
- {{ item.activityVolume }}
+ {{dictStr(item.activityVolume,activityVolumeList) }}
- 总费用(元):
- {{ item.totalCost }}
+ 总费用:
+ {{ item.totalCost+' 元' }}
费用明细:
@@ -89,6 +89,8 @@ const listData = ref([])
const isShow = ref(false)
const status = ref('loadmore')
const typeList = ref([])
+const activityVolumeList = ref([])
+
const flag= ref(true)
const data = reactive({
@@ -141,6 +143,10 @@ function getList() {
// 类型
getDicts('activity_type').then(res => {
typeList.value = res.data
+ })
+ // 类型
+ getDicts('activity_exercise').then(res => {
+ activityVolumeList.value = res.data
})
status.value = 'loading'
listActivity({ pageSize: 10, pageNum: pageNum.value, ...queryParams.value }).then(res => {
diff --git a/src/pages/health/doctorRecord/addEdit.vue b/src/pages/health/doctorRecord/addEdit.vue
index 1a9ba41..e7653b5 100644
--- a/src/pages/health/doctorRecord/addEdit.vue
+++ b/src/pages/health/doctorRecord/addEdit.vue
@@ -46,11 +46,8 @@
-
-
-
-
+
+
@@ -59,7 +56,15 @@
>
-
+
+
+
+
+
+
+
@@ -126,7 +131,7 @@ form: {
visitingTime: null,
prescribe: null,
personId: null,
- totalCost: null,
+ totalCost: 0,
partner: null,
costDetail: null
},
@@ -148,7 +153,8 @@ rules: {
doctor: [{ required: true, message: '大夫不能为空', trigger: ['change', 'blur'] }],
totalCost: [{ type: 'number', required: true, message: '总费用不能为空', trigger: ['change', 'blur'] }],
partner: [{ required: true, message: '陪同人不能为空', trigger: ['change', 'blur'] }],
- prescribe: [{ required: true, message: '诊断及开药不能为空', trigger: ['change', 'blur'] }],
+ prescribe: [{ required: true, message: '处理及医嘱不能为空', trigger: ['change', 'blur'] }],
+ diagnosis: [{ required: true, message: '诊断结果不能为空', trigger: ['change', 'blur'] }],
typeName: [{ required: true, message: '就医类型不能为空', trigger: ['change', 'blur'] }],
visitingTime: [{ required: true, message: '就诊时间不能为空', trigger: ['change', 'blur'] }]
}
diff --git a/src/pages/health/doctorRecord/list.vue b/src/pages/health/doctorRecord/list.vue
index d2ee64f..027f889 100644
--- a/src/pages/health/doctorRecord/list.vue
+++ b/src/pages/health/doctorRecord/list.vue
@@ -1,17 +1,22 @@
-
+
+
+
+
+
-
-
+
{{ item.partner }}
- 总费用(元):
- {{ item.totalCost }}
+ 总费用:
+ {{ item.totalCost +' 元'}}
诊断及开药:
@@ -129,6 +134,8 @@
@confirm="settingConfirm" @cancel="settingCancel">
+
@@ -137,6 +144,7 @@
+
\ No newline at end of file
diff --git a/src/pages/health/index.vue b/src/pages/health/index.vue
index 739f9d6..90c160a 100644
--- a/src/pages/health/index.vue
+++ b/src/pages/health/index.vue
@@ -14,18 +14,7 @@
-
-
-
-
-
-
-
- {{ item.text }}
-
-
-
-
+
@@ -45,10 +34,7 @@ import auth from "@/plugins/auth"; // 建议使用auth进行鉴权操作
{ path: '/pages/health/marRecord/list', text: '用药记录', icon: 'shop-filled', permission: 'health:marRecord:list' },
{ path: '/pages/health/temperatureRecord/list', text: '体温记录', icon: 'spinner-cycle', permission: 'health:temperatureRecord:list' },
{ path: '/pages/health/heightWeightRecord/list', text: '身高体重记录', icon: 'map-pin-ellipse', permission: 'health:heightWeightRecord:list' },
- { path: '/pages/health/activity/list', text: '活动记录', icon: 'images-filled', permission: 'health:activity:list' }
-
- ])
- const medicineGridList=ref([
+ { path: '/pages/health/activity/list', text: '活动记录', icon: 'images-filled', permission: 'health:activity:list' },
{ path: '/pages/health/medicineBasic/list', text: '药品基础信息', icon: 'folder-add-filled', permission: 'health:medicineBasic:list' },
{ path: '/pages/health/medicineStockIn/list', text: '药品入库清单', icon: 'arrow-down', permission: 'health:medicineStockIn:list' },
{ path: '/pages/health/medicineStock/list', text: '药品实时库存', icon: 'color', permission: 'health:medicineStockIn:list' }
diff --git a/src/pages/health/marRecord/list.vue b/src/pages/health/marRecord/list.vue
index 5ce3b94..748ae6c 100644
--- a/src/pages/health/marRecord/list.vue
+++ b/src/pages/health/marRecord/list.vue
@@ -1,17 +1,22 @@
-
+
+
+
+
+
-
{{ item.dictLabel }}
-
+
+
@@ -128,7 +135,8 @@
+
+
\ No newline at end of file
diff --git a/src/pages/health/statistic/healthStatistic/index.vue b/src/pages/health/statistic/healthStatistic/index.vue
new file mode 100644
index 0000000..b55cadb
--- /dev/null
+++ b/src/pages/health/statistic/healthStatistic/index.vue
@@ -0,0 +1,619 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 发生时间:
+ {{ item.occurTime}}
+
+
+ 持续时间:
+ {{item.duration}}
+
+
+ 过程记录次数:
+ {{ item.processCount+" 次"}}
+
+
+ 就医次数:
+ {{ item.doctorCount+" 次"}}
+
+
+ 就医费用:
+ {{ item.doctorCost+" 元"}}
+
+
+ 用药天数:
+ {{ item.marDayCount+" 天"}}
+
+
+ 用药次数:
+ {{ item.marCount+" 次"}}
+
+
+ 发烧天数:
+ {{ item.feverDayCount+" 次"}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/health/statistic/index.vue b/src/pages/health/statistic/index.vue
index 8878e82..519309b 100644
--- a/src/pages/health/statistic/index.vue
+++ b/src/pages/health/statistic/index.vue
@@ -3,7 +3,7 @@
-
+
@@ -26,9 +26,10 @@ import auth from "@/plugins/auth"; // 建议使用auth进行鉴权操作
import { ref } from "vue";
const healthGridList=ref([
- { path: '/pages/health/temperatureRecord/list', text: '体温统计', icon: 'spinner-cycle', permission: 'health:temperatureRecord:list' },
- { path: '/pages/health/marRecord/list', text: '用药统计', icon: 'shop-filled', permission: 'health:marRecord:list' }
-
+ { path: '/pages/health/statistic/healthStatistic/index', text: '档案统计', icon: 'map', permission: 'health:healthRecord:list' },
+ { path: '/pages/health/statistic/doctorStatistic/index', text: '就医统计', icon: 'person', permission: 'health:doctorRecord:list' },
+ { path: '/pages/health/statistic/marStatistic/index', text: '用药统计', icon: 'shop-filled', permission: 'health:marRecord:list' },
+ { path: '/pages/health/statistic/temperatureStatistic/index', text: '体温统计', icon: 'spinner-cycle', permission: 'health:temperatureRecord:list' }
])
function navigateTo(path) {
uni.navigateTo({
diff --git a/src/pages/health/statistic/marStatistic/index.vue b/src/pages/health/statistic/marStatistic/index.vue
new file mode 100644
index 0000000..cf2f531
--- /dev/null
+++ b/src/pages/health/statistic/marStatistic/index.vue
@@ -0,0 +1,673 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 用药天数:
+ {{ item.useDays+" 天"}}
+
+
+ 用药次数:
+ {{item.count+" 次"}}
+
+
+ 用药总量:
+ {{ item.dosage+item.unit}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/health/statistic/temperatureStatistic/index.vue b/src/pages/health/statistic/temperatureStatistic/index.vue
new file mode 100644
index 0000000..26c9ada
--- /dev/null
+++ b/src/pages/health/statistic/temperatureStatistic/index.vue
@@ -0,0 +1,580 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 最高体温:
+ {{ item.max+" ℃"}}
+
+
+ 最低体温:
+ {{item.min+" ℃"}}
+
+
+ 平均体温:
+ {{ item.average+" ℃"}}
+
+
+ 测量明细:
+ {{ formatMultiLineData(item.detail)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/health/temperatureRecord/list.vue b/src/pages/health/temperatureRecord/list.vue
index 31fe7f4..16d9507 100644
--- a/src/pages/health/temperatureRecord/list.vue
+++ b/src/pages/health/temperatureRecord/list.vue
@@ -1,17 +1,22 @@
-
+
+
+
+
+
-
-
+
测量时间:
@@ -99,6 +104,8 @@
@confirm="settingConfirm" @cancel="settingCancel">
+
@@ -106,7 +113,8 @@