|
@@ -47,7 +47,7 @@
|
|
|
ref="progressRef"/>
|
|
|
</template>
|
|
|
|
|
|
-<script setup lang="ts">
|
|
|
+<script setup lang="tsx">
|
|
|
import {getDisPatient, getPatientInfo} from "@/api/zhu-yuan-yi-sheng/emr-patient";
|
|
|
import router from "@/router";
|
|
|
import {BizException, ExceptionEnum} from "@/utils/BizException";
|
|
@@ -61,10 +61,10 @@ import {
|
|
|
query,
|
|
|
resolveRoute,
|
|
|
unlockEnum,
|
|
|
- patientInfo, emrStateEnum,
|
|
|
+ patientInfo, emrStateEnum, useLiftingRestrictions,
|
|
|
} from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/emr-init";
|
|
|
import {getMyUnlockByPatNo} from "@/api/zhu-yuan-yi-sheng/emr-control-rule";
|
|
|
-import {ElMessage, ElMessageBox} from "element-plus";
|
|
|
+import {ElMessage, ElMessageBox, ElNotification} from "element-plus";
|
|
|
import LoadingProgress from "@/components/loading-progress/LoadingProgress.vue";
|
|
|
import {ref, onMounted, nextTick} from 'vue'
|
|
|
import {CyMessageBox} from "@/components/cy/message-box";
|
|
@@ -76,6 +76,7 @@ import {defineAsyncComponent} from 'vue';
|
|
|
import {cptSex} from "@/utils/computed";
|
|
|
import {getOverView} from "@/api/inpatient/patient";
|
|
|
import XEUtils from "xe-utils";
|
|
|
+import {ElButton} from "element-plus";
|
|
|
|
|
|
const EmrLeaveHospitalPatient = defineAsyncComponent(() =>
|
|
|
import('@/components/zhu-yuan-yi-sheng/emr/EmrLeaveHospitalPatient.vue'));
|
|
@@ -90,12 +91,6 @@ const show = ref(false)
|
|
|
|
|
|
const queryPatNo = ref('')
|
|
|
|
|
|
-const selected = ({inpatientNo, admissTimes}) => {
|
|
|
- query.value.patNo = inpatientNo
|
|
|
- query.value.times = admissTimes
|
|
|
- allPatientsInTheHospital()
|
|
|
-}
|
|
|
-
|
|
|
// 点击查询出院患者
|
|
|
const disPatients = async () => {
|
|
|
if (query.value.times === 0 || !query.value.patNo) {
|
|
@@ -202,6 +197,45 @@ const queryDisPatient = async () => {
|
|
|
emrConfig.value.editor = canIUnlockIt(unlockEnum.出院编辑)
|
|
|
}
|
|
|
|
|
|
+ if (!emrConfig.value.editor) {
|
|
|
+ const message = '患者出院超7天,无法编辑病历,如需编辑请点击【解锁限制】,待审核完成后刷新页面即可。'
|
|
|
+ const notification = ElNotification({
|
|
|
+ message: (
|
|
|
+ <div>
|
|
|
+ <div>
|
|
|
+ {message}
|
|
|
+ </div>
|
|
|
+ <div style={{textAlign: 'end'}}>
|
|
|
+ <ElButton
|
|
|
+ text
|
|
|
+ type="danger"
|
|
|
+ onClick={() => notification.close()}
|
|
|
+ >
|
|
|
+ {{
|
|
|
+ default: () => '关闭'
|
|
|
+ }}
|
|
|
+ </ElButton>
|
|
|
+ <ElButton
|
|
|
+ text
|
|
|
+ type="primary"
|
|
|
+ onClick={() => {
|
|
|
+ useLiftingRestrictions()
|
|
|
+ notification.close()
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {{
|
|
|
+ default: () => '解锁限制'
|
|
|
+ }}
|
|
|
+ </ElButton>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ ),
|
|
|
+ duration: 0,
|
|
|
+ type: 'warning',
|
|
|
+ position: 'bottom-right'
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
if (isDev) {
|
|
|
emrConfig.value.editor = true;
|
|
|
}
|