-
-
-

-
-
-
常看大夫
-
- {{ mar.wuhua }}XXX
-
-
-

@@ -126,7 +123,7 @@
门诊次数
- {{ mar.marCategoryCount }}{{ doctor.clinicCount }}次
@@ -138,7 +135,19 @@
急诊次数
- {{ mar.marCount }}{{ doctor.emergencyCount }}次
+
+
+
+
+
+

+
+
+
输液次数
+
+ {{ doctor.infusionCount }}次
@@ -151,7 +160,19 @@
住院次数
- {{ mar.qingre }}{{ doctor.hospitalizedCount }}次
+
+
+
+
+
+

+
+
+
线上问诊次数
+
+ {{ doctor.onlineCount }}次
@@ -161,46 +182,62 @@
就医统计
+
+
+
+
-
-
-
-
+
{{ scope.$index + 1 }}
-
-
+
+
-
+
{{ scope.$index + 1 }}
-
-
-
+
+
-
+
{{ scope.$index + 1 }}
-
-
-
-
+
+
+
+
+
+
+
+ {{ scope.$index + 1 }}
+
+
+
+
+
+
+
+
+
+
+
+
@@ -212,14 +249,20 @@ import dayjs from 'dayjs'
import * as echarts from 'echarts'
import { ElMessage } from 'element-plus'
import yearPicker from '@/components/YearPicker/index.vue'
-import { getMarAnalysis } from '@/api/health/statisticAnalysis'
+import { getDoctorAnalysis } from '@/api/health/statisticAnalysis'
import { listPerson, getPerson } from '@/api/health/person'
import { listHealthRecord } from '@/api/health/healthRecord'
const { proxy } = getCurrentInstance()
-const { deal_type, account_type, deal_category } = proxy.useDict('deal_type', 'account_type', 'deal_category')
const personList = ref([])
const healthRecordList = ref([])
-
+const { doctor_type, cost_type, check_type, package_unit, nursing_type, mar_type } = proxy.useDict(
+ 'doctor_type',
+ 'cost_type',
+ 'check_type',
+ 'package_unit',
+ 'nursing_type',
+ 'mar_type'
+)
const dateValue = ref({ startYear: 2000, endYear: new Date().getFullYear() })
const showYearValue = ref({ startShowYear: '', endShowYear: '' })
const updateStatisticYear = (startYear, endYear) => {
@@ -234,7 +277,7 @@ const dates = [{ value: 1, label: '日' }]
const accountsList = ref([])
const loading = ref(true)
const total = ref(0)
-const radioVal = ref('用药次数柱状图')
+const radioVal = ref('就医明细统计')
const dateValidate = (rules, value, callback) => {
const dateType = rules.dateType || 'days'
const num = rules.num || 31
@@ -312,9 +355,9 @@ function getPersonList() {
}
const today = new Date()
-const end = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-' + ('0' + today.getDate()).slice(-2)
-const start = dayjs(end).add(-60, 'day')
-queryParams.value.time = [start, end]
+// const end = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-' + ('0' + today.getDate()).slice(-2)
+// const start = dayjs(end).add(-60, 'day')
+// queryParams.value.time = [start, end]
const handleTimeChange = (type) => {
queryParams.value.time = null
if (type === 1) {
@@ -362,7 +405,7 @@ const calendarChange = (val) => {
if (val[1]) firstChooseDate.value = ''
}
-const mar = ref({})
+const doctor = ref({})
const chartData = ref({
name: [],
value1: []
@@ -387,16 +430,16 @@ function getList() {
id,
recordId
}
- getMarAnalysis(params).then((response) => {
+ getDoctorAnalysis(params).then((response) => {
loading.value = false
- mar.value = { ...response.data }
- mar.value.marList.map((item) => {
+ doctor.value = { ...response.data }
+ doctor.value.doctorCostList.map((item) => {
return {
name: item.time,
value: item.value
}
})
- response.data.marList.map((item) => {
+ response.data.doctorCostList.map((item) => {
chartData.value.name.push(item.time)
chartData.value.value1.push(item.value)
})
@@ -411,10 +454,10 @@ function handleQuery() {
function resetQuery() {
proxy.resetForm('queryRef')
queryParams.value.id = null
- const today = new Date()
- const end = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-' + ('0' + today.getDate()).slice(-2)
- const start = dayjs(end).add(-60, 'day')
- queryParams.value.time = [start, end]
+ // const today = new Date()
+ // const end = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-' + ('0' + today.getDate()).slice(-2)
+ // const start = dayjs(end).add(-60, 'day')
+ // queryParams.value.time = [start, end]
total.value = 0
getPersonList()
}
@@ -440,7 +483,7 @@ const drawBar = (data) => {
type: 'shadow'
},
formatter: function (params) {
- return params[0].name + '
' + '用药:' + params[0].value + '次'
+ return params[0].name + '
' + '费用:' + params[0].value + '元'
}
},
grid: {
@@ -470,7 +513,7 @@ const drawBar = (data) => {
type: 'value',
// min: 1, // 设置 y 轴的最小值为 0
// max: 16, // 设置 y 轴的最大值为 100
- interval: 1, //设置y轴刻度间隔
+ // interval: 1, //设置y轴刻度间隔
axisTick: {
show: true // 默认为true,如果要隐藏,则改为 false
},
@@ -491,18 +534,7 @@ const drawBar = (data) => {
itemStyle: {
// 此处可以是一个固定颜色值,也可以是一个回调函数根据数据动态计算颜色
color: function (params) {
- // 这里可以根据需要设置不同的颜色,比如根据数据值
- if (params.data < 4) {
- return '#37b328'
- } else if (params.data >= 4 && params.data < 8) {
- return '#ff00ff'
- } else if (params.data >= 8 && params.data < 12) {
- return '#ff0066'
- } else if (params.data >= 12 && params.data < 15) {
- return '#ff0000'
- } else if (params.data >= 15) {
- return '#990000' // 数据在50到99之间为蓝色
- }
+ return '#2283cf' // 数据在50到99之间为蓝色
}
}
}
@@ -540,7 +572,7 @@ const drawLine = (data) => {
type: 'shadow'
},
formatter: function (params) {
- return params[0].name + '
' + '用药:' + params[0].value + '次'
+ return params[0].name + '
' + '费用:' + params[0].value + '元'
}
},
xAxis: {
@@ -559,8 +591,8 @@ const drawLine = (data) => {
yAxis: {
type: 'value',
// min: 1, // 设置 y 轴的最小值为 0
- // max: 16, // 设置 y 轴的最大值为 100
- interval: 1, //设置y轴刻度间隔
+ // // max: 16, // 设置 y 轴的最大值为 100
+ // interval: 1, //设置y轴刻度间隔
axisTick: {
show: true
},
@@ -582,18 +614,7 @@ const drawLine = (data) => {
itemStyle: {
// 此处可以是一个固定颜色值,也可以是一个回调函数根据数据动态计算颜色
color: function (params) {
- // 这里可以根据需要设置不同的颜色,比如根据数据值
- if (params.data < 4) {
- return '#37b328'
- } else if (params.data >= 4 && params.data < 8) {
- return '#ff00ff'
- } else if (params.data >= 8 && params.data < 12) {
- return '#ff0066'
- } else if (params.data >= 12 && params.data < 15) {
- return '#ff0000'
- } else if (params.data >= 15) {
- return '#990000' // 数据在50到99之间为蓝色
- }
+ return '#2283cf' // 数据在50到99之间为蓝色
}
},
smooth: true,
@@ -626,14 +647,14 @@ const drawLine = (data) => {
myChart.setOption(option)
}
-const currentType = ref('用药次数柱状图')
+const currentType = ref('就医费用柱状图')
const handleRadioChange = (type) => {
currentType.value = type
switch (type) {
- case '用药次数柱状图':
+ case '就医费用柱状图':
drawBar(chartData.value)
break
- case '用药次数折线图':
+ case '就医费用折线图':
drawLine(chartData.value)
break
default:
diff --git a/src/views/health/healthAnalysis/index.vue b/src/views/health/healthAnalysis/index.vue
index 291276f..b110d8c 100644
--- a/src/views/health/healthAnalysis/index.vue
+++ b/src/views/health/healthAnalysis/index.vue
@@ -12,7 +12,7 @@
-
档案总数
+
档案数量
{{ healthRecordCount }}份
@@ -127,7 +127,7 @@
-
档案份数
+
档案数量
{{ item.healthRecordCount }}份
diff --git a/src/views/health/healthRecord/index.vue b/src/views/health/healthRecord/index.vue
index f1e1290..0d667b1 100644
--- a/src/views/health/healthRecord/index.vue
+++ b/src/views/health/healthRecord/index.vue
@@ -61,7 +61,7 @@
-
+
diff --git a/src/views/health/healthStatistic/index.vue b/src/views/health/healthStatistic/index.vue
index 8e73582..b1eeffc 100644
--- a/src/views/health/healthStatistic/index.vue
+++ b/src/views/health/healthStatistic/index.vue
@@ -9,7 +9,7 @@
-
+
@@ -56,14 +56,26 @@