|
@@ -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) {
|