|
@@ -1,12 +1,20 @@
|
|
|
<template>
|
|
|
<page-layer>
|
|
|
<template #header>
|
|
|
- 质控区间:
|
|
|
+ <el-switch
|
|
|
+ active-value="intervalPatients"
|
|
|
+ inactive-value="admissTimes"
|
|
|
+ v-model="timeType"
|
|
|
+ active-text="质控时间"
|
|
|
+ inactive-text="入院时间"
|
|
|
+ />
|
|
|
<el-date-picker
|
|
|
:shortcuts="shortcuts"
|
|
|
style="width: 220px"
|
|
|
type="daterange"
|
|
|
v-model="intervalPatients"/>
|
|
|
+
|
|
|
+
|
|
|
<el-button type="primary"
|
|
|
:loading="load"
|
|
|
@click="queryQualityControlData">查询质控数据
|
|
@@ -64,6 +72,8 @@ import XcTable from "@/components/xiao-chan/xc-table/XcTable.vue";
|
|
|
import {openSocket, sid} from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-func/emr-socket";
|
|
|
|
|
|
const intervalPatients = ref([])
|
|
|
+const timeType = ref('intervalPatients')
|
|
|
+
|
|
|
const load = ref(false)
|
|
|
|
|
|
const percentage = ref(0)
|
|
@@ -81,7 +91,7 @@ const queryQualityControlData = async () => {
|
|
|
load.value = true
|
|
|
percentage.value = 0
|
|
|
siftData.value = {}
|
|
|
- let res = await linkQualityControl(startTime, endTime, sid)
|
|
|
+ let res = await linkQualityControl(startTime, endTime, sid, timeType.value)
|
|
|
ruleReturnData.value = res
|
|
|
proportion.value = res.proportion
|
|
|
numberToArrayFunc()
|