修改bug

This commit is contained in:
张佳炜 2025-03-14 09:16:54 +08:00
parent f6b12c03f6
commit cf812b12b9

View File

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