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 @@ + :text="dictStr(item.type,typeList) +'- 在 '+item.place+' 活动 '+item.exerciseTimeStr" size="30rpx" color="#333333" :bold="true"> 活动名称: @@ -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 @@ - - - - + + - + + + + + + + @@ -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 @@