diff --git a/src/views/summary/examination/index.vue b/src/views/summary/examination/index.vue index 2e16a40..bbaaffb 100644 --- a/src/views/summary/examination/index.vue +++ b/src/views/summary/examination/index.vue @@ -172,7 +172,7 @@ const TEMPLATE_KEY = getCurrentInstance().type.name; // 存储模板对象的 ke const { paperTypes, curPaperType, paperPopVisible, paperWidth, paperHeight, showPaperPop, setPaper, setPaperOther } = usePaper(TEMPLATE_KEY); const { scaleValue, changeScale } = useZoom(TEMPLATE_KEY); const goto = async () => { - const dataPrint = await SummaryApi.printInfoOfMedicalSn("17407232640657956") + const dataPrint = await SummaryApi.printInfoOfMedicalSn("123456789") hiprintTemplate = newHiprintPrintTemplate(TEMPLATE_KEY, { template: templateRef.value, // 模板json(object) settingContainer: "#PrintElementOptionSetting", // 元素参数容器 @@ -338,9 +338,8 @@ const handlePatientSelect = async (patient) => { medicalSn.value = patient.medicalSn selectedPatient.value = patient const patientInfo = await SummaryApi.getPatient(patient.medicalSn) - const patientItemsInfo = await SummaryApi.groupNameItemsOfMedicalSn(patient.medicalSn) + const patientItemsInfo = ref() formData2.value = patientInfo - //list.value = patientItemsInfo if(patientInfo.auditStatus == 0 || patientInfo.auditStatus == 2){ editFlag.value = false }else { @@ -355,6 +354,7 @@ const handlePatientSelect = async (patient) => { ]), }) }else { + patientItemsInfo.value = await SummaryApi.groupNameItemsOfMedicalSn(patient.medicalSn) list.value = patientItemsInfo } if(patientInfo.auditStatus == 0){