|
@@ -96,6 +96,7 @@ import { cptSex } from "@/utils/computed";
|
|
|
import { getOverView } from "@/api/inpatient/patient";
|
|
|
import XEUtils from "xe-utils";
|
|
|
import { xcMessage } from "@/utils/xiaochan-element-plus";
|
|
|
+import env from "@/utils/setting";
|
|
|
|
|
|
const EmrLeaveHospitalPatient = defineAsyncComponent(
|
|
|
() => import("@/components/zhu-yuan-yi-sheng/emr/EmrLeaveHospitalPatient.vue")
|
|
@@ -227,8 +228,11 @@ const queryDisPatient = async () => {
|
|
|
patientInfo.value.disDate
|
|
|
);
|
|
|
|
|
|
+ const outDay = XEUtils.toNumber(env.VITE_EMR_OUT_PATIENT_DAY);
|
|
|
+
|
|
|
// 如果患者的出院时间大于 7 天就只能看病历和打印病历了
|
|
|
- emrConfig.value.editor = (patientInfo.value!.dischargeDays as number) <= 7;
|
|
|
+ emrConfig.value.editor =
|
|
|
+ (patientInfo.value!.dischargeDays as number) <= outDay;
|
|
|
|
|
|
// 如果超过了七天就去查看是否有申请编辑
|
|
|
if (!emrConfig.value.editor) {
|
|
@@ -236,8 +240,7 @@ const queryDisPatient = async () => {
|
|
|
}
|
|
|
|
|
|
if (!emrConfig.value.editor) {
|
|
|
- const message =
|
|
|
- "患者出院超7天,无法编辑病历,如需编辑请点击【解锁限制】,待审核完成后刷新页面即可。";
|
|
|
+ const message = `患者出院超${outDay}天,无法编辑病历,如需编辑请点击【解锁限制】,待审核完成后刷新页面即可。`;
|
|
|
const notification = ElNotification({
|
|
|
message: (
|
|
|
<div>
|