From 0f75162f6b48bf1e072e46d567c76304e21706f3 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Fri, 20 Dec 2024 15:48:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=81=A5=E5=BA=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=EF=BC=8C=E8=87=AA=E6=B5=8B=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=8A=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/health/statisticAnalysis.js | 26 + src/pages.json | 26 +- src/pages/health/activity/addEdit.vue | 47 +- src/pages/health/activity/list.vue | 14 +- src/pages/health/doctorRecord/addEdit.vue | 22 +- src/pages/health/doctorRecord/list.vue | 112 ++- src/pages/health/healthRecord/list.vue | 11 +- src/pages/health/heightWeightRecord/list.vue | 6 +- src/pages/health/homepage/index.vue | 257 +++++-- src/pages/health/index.vue | 18 +- src/pages/health/marRecord/list.vue | 68 +- src/pages/health/medicineBasic/list.vue | 23 +- src/pages/health/medicineStock/list.vue | 2 +- src/pages/health/medicineStockIn/addEdit.vue | 17 +- src/pages/health/medicineStockIn/list.vue | 10 +- src/pages/health/person/addEdit.vue | 46 +- src/pages/health/person/list.vue | 12 +- src/pages/health/processRecord/list.vue | 83 ++- .../statistic/doctorStatistic/index.vue | 614 ++++++++++++++++ .../statistic/healthStatistic/index.vue | 619 ++++++++++++++++ src/pages/health/statistic/index.vue | 9 +- .../health/statistic/marStatistic/index.vue | 673 ++++++++++++++++++ .../statistic/temperatureStatistic/index.vue | 580 +++++++++++++++ src/pages/health/temperatureRecord/list.vue | 76 +- 24 files changed, 3200 insertions(+), 171 deletions(-) create mode 100644 src/pages/health/statistic/doctorStatistic/index.vue create mode 100644 src/pages/health/statistic/healthStatistic/index.vue create mode 100644 src/pages/health/statistic/marStatistic/index.vue create mode 100644 src/pages/health/statistic/temperatureStatistic/index.vue 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 @@