浏览代码

no message

xiaochan 1 年之前
父节点
当前提交
288ca3802a

+ 1 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/Home.vue

@@ -190,7 +190,7 @@ const queryDisPatient = async () => {
   patientInfo.value.dischargeDays = subtractTime(await getServerDateApi(), patientInfo.value.disDate)
 
   // 如果患者的出院时间大于 7 天就只能看病历和打印病历了
-  emrConfig.value.editor = patientInfo.value.dischargeDays <= 7;
+  emrConfig.value.editor = (patientInfo.value!.dischargeDays as number) <= 7;
 
   // 如果超过了七天就去查看是否有申请编辑
   if (!emrConfig.value.editor) {