|
@@ -11,9 +11,6 @@ import EventBus from "../../../../utils/mitt";
|
|
|
import XEUtils from 'xe-utils'
|
|
|
import {computed} from 'vue'
|
|
|
import {getAncillaryInformation} from '../../../../api/zhu-yuan-yi-sheng/jian-yan-jian-cha-shen-qing'
|
|
|
-import {$ref} from "vue/macros";
|
|
|
-import {languages} from "monaco-editor";
|
|
|
-import json = languages.json;
|
|
|
|
|
|
// 患者信息
|
|
|
export const huanZheXinXi = ref<{
|
|
@@ -589,8 +586,8 @@ export const mingXi = ref({
|
|
|
list: [],
|
|
|
})
|
|
|
|
|
|
-export let jcExtraInformation = $ref<ExtraInformationType>()
|
|
|
-export let jyExtraInformation = $ref<ExtraInformationType>()
|
|
|
+export const jcExtraInformation = ref<ExtraInformationType>()
|
|
|
+export const jyExtraInformation = ref<ExtraInformationType>()
|
|
|
|
|
|
interface ExtraInformationType {
|
|
|
reqComment: string
|
|
@@ -617,7 +614,6 @@ const strDefaultExtraInformation = JSON.stringify(defaultExtraInformation)
|
|
|
export const clickOnThePatient = async (patNo: string) => {
|
|
|
switchPatients();
|
|
|
huanZheXinXi.value = await getPatientInfo(patNo) as any;
|
|
|
-
|
|
|
if (yzMitt.exists('queryYz')) {
|
|
|
await nextTick();
|
|
|
yzMitt.emit('queryYz');
|
|
@@ -628,14 +624,14 @@ export const clickOnThePatient = async (patNo: string) => {
|
|
|
queryParam.value.zhuangTai = 0;
|
|
|
queryParam.value.displayRange = 2;
|
|
|
clearAssociate();
|
|
|
- const temp = await getAncillaryInformation(huanZheXinXi.value.inpatientNo, huanZheXinXi.value.admissTimes);
|
|
|
+ const temp = getAncillaryInformation(huanZheXinXi.value.inpatientNo, huanZheXinXi.value.admissTimes);
|
|
|
if (temp) {
|
|
|
let str = JSON.stringify(temp);
|
|
|
- jcExtraInformation = JSON.parse(str);
|
|
|
- jyExtraInformation = JSON.parse(str);
|
|
|
+ jcExtraInformation.value = JSON.parse(str);
|
|
|
+ jyExtraInformation.value = JSON.parse(str);
|
|
|
} else {
|
|
|
- jcExtraInformation = JSON.parse(strDefaultExtraInformation);
|
|
|
- jyExtraInformation = JSON.parse(strDefaultExtraInformation);
|
|
|
+ jcExtraInformation.value = JSON.parse(strDefaultExtraInformation);
|
|
|
+ jyExtraInformation.value = JSON.parse(strDefaultExtraInformation);
|
|
|
}
|
|
|
}
|
|
|
|