|
@@ -46,6 +46,7 @@ import {EMRInteractive} from '@/views/hospitalization/zhu-yuan-yi-sheng/electron
|
|
|
import {getHistory} from '@/api/zhu-yuan-yi-sheng/emr-patient'
|
|
|
import {getFormatDatetime} from '@/utils/date'
|
|
|
import {ElMessageBox} from "element-plus";
|
|
|
+import {BizException, ExceptionEnum} from "@/utils/BizException";
|
|
|
|
|
|
const props = defineProps({
|
|
|
docunentId: {
|
|
@@ -85,12 +86,16 @@ const restoreData = (row) => {
|
|
|
}
|
|
|
|
|
|
onMounted(async () => {
|
|
|
+ if (!props.docunentId) {
|
|
|
+ emit('closed')
|
|
|
+ BizException(ExceptionEnum.MESSAGE_ERROR, "请先选择已保存的病历模板。");
|
|
|
+ }
|
|
|
await nextTick()
|
|
|
currentEmr.value = new EMRInteractive(null, emrEvent);
|
|
|
emrRef.value.parentElement.emr = currentEmr.value
|
|
|
getHistory(props.docunentId).then((res) => {
|
|
|
historicalData.value = res as Array<any>;
|
|
|
- })
|
|
|
+ });
|
|
|
})
|
|
|
</script>
|
|
|
|