|
@@ -1,7 +1,13 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <div style="display: flex;align-items: center">
|
|
|
- <el-button @click="queryYz" v-title="'重新查询患者的医嘱'">重置</el-button>
|
|
|
+ <div>
|
|
|
+ <CyDateRange
|
|
|
+ v-model="queryParam"
|
|
|
+ clearable/>
|
|
|
+ <el-button @click="queryYz"
|
|
|
+ v-title="'医嘱过多导致查看医嘱困难,可选择时间范围来减少医嘱的条数,默认查询今天到90天前的数据,可通过选择日期后面的删除按钮,取消时间范围的查询'">
|
|
|
+ 查询
|
|
|
+ </el-button>
|
|
|
<el-divider direction="vertical"/>
|
|
|
<label>
|
|
|
显示范围:
|
|
@@ -15,7 +21,7 @@
|
|
|
|
|
|
<label>
|
|
|
状态:
|
|
|
- <select v-model.number="queryParam.zhuangTai" title="医嘱的状态">
|
|
|
+ <select v-model.number="queryParam.zhuangTai" v-title="`医嘱的状态`">
|
|
|
<option :value="0">全部</option>
|
|
|
<option :value="1">录入</option>
|
|
|
<option :value="2">确认</option>
|
|
@@ -33,7 +39,8 @@
|
|
|
<label>
|
|
|
排序:
|
|
|
<select v-model="queryParam.sort"
|
|
|
- @change="setYzOrderGroup">
|
|
|
+ @change="setYzOrderGroup"
|
|
|
+ >
|
|
|
<option :value="OrderBy.asc">正序</option>
|
|
|
<option :value="OrderBy.desc">反序</option>
|
|
|
</select>
|
|
@@ -276,7 +283,7 @@ import {
|
|
|
yzData,
|
|
|
yzMitt,
|
|
|
clickTimeLimitReminder,
|
|
|
- errorMsgFunc, OrderBy, setYzOrderGroup
|
|
|
+ errorMsgFunc, OrderBy, setYzOrderGroup, jsQueryYzData
|
|
|
} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
|
|
|
import {BizException, ExceptionEnum} from "@/utils/BizException";
|
|
|
import router from "@/router";
|
|
@@ -296,6 +303,7 @@ import CopyTableDataOrder
|
|
|
import setDialogToJs from "@/components/js-dialog-comp/useDialogToJs";
|
|
|
import {CyMessageBox} from "@/components/cy/message-box";
|
|
|
import {useUserStore} from "@/pinia/user-store";
|
|
|
+import CyDateRange from "@/components/cy/date-range/CyDateRange.vue";
|
|
|
|
|
|
const props = defineProps({
|
|
|
patientInfo: {
|
|
@@ -329,10 +337,7 @@ const queryYz = async (tableScrollTop = true) => {
|
|
|
if (tableScrollTop) {
|
|
|
yzMitt.emit('tableScroll', 0);
|
|
|
}
|
|
|
- yzData.value = await huoQuYiZhuShuJu({
|
|
|
- patNo: props.patientInfo.inpatientNo,
|
|
|
- times: props.patientInfo.admissTimes
|
|
|
- })
|
|
|
+ await jsQueryYzData()
|
|
|
} catch (e) {
|
|
|
yzData.value = []
|
|
|
}
|