- 重命名目录: openhis-server-new → healthlink-his-server - 重命名目录: openhis-ui-vue3 → healthlink-his-ui - 重命名Java类: OpenHisApplication → HealthLinkHisApplication - 重命名Java类: OpenHisMiniApp → HealthLinkHisMiniApp - 重命名组件目录: OpenHis → HealthLinkHis - 重命名样式文件: openhis.scss → healthlink-his.scss - 重命名配置: nginx-openhis.conf → nginx-healthlink-his.conf - 更新所有源码引用 (0个残留) - 更新所有文档/脚本/配置中的引用
2.1 KiB
2.1 KiB
Bug #556 Analysis
Title
【门诊医生站-检验】新增检验申请单时就诊卡号/执行时间未自动回显,且项目列表冗余显示"套餐"文字
Root Cause Analysis
Issue 1: 就诊卡号未自动回显
- Code:
inspectionApplication.vue:886-formData.medicalrecordNumber = props.patientInfo.identifierNo || '' - Root Cause: Logic is correct but depends on
props.patientInfo.identifierNobeing populated. The watch onprops.patientInfo(line 2074) triggersinitData(). The card number field itself is correctly bound. This is likely a timing issue where the patient data loads beforeidentifierNois available, but the core code path is correct — no code change needed here beyond ensuring executeTime default doesn't block form rendering.
Issue 2: 执行时间未默认填充当前系统时间
- Code:
inspectionApplication.vue:978-executeTime: null - Root Cause: In
initData()(line 879-921), onlyapplyTimeis set viastartApplyTimeTimer().formData.executeTimeis never assigned a default value. Similarly inresetForm()(line 1550),executeTimeremainsnull. - Fix: Add
formData.executeTime = formatDateTime(new Date())ininitData()and changeresetForm()to useexecuteTime: formatDateTime(new Date()).
Issue 3: 项目列表冗余显示"套餐"文字
- Code:
inspectionApplication.vue:1190- Already fixed withpackageNamecheck. ButinspectionApplication.vue:2000inloadApplicationToForm()still uses loose check:item.feePackageId != null || item.itemName?.includes('套餐'). - Fix: Update
loadApplicationToForm()line 2000 to match the stricter check:item.feePackageId != null && item.feePackageId !== '' && item.feePackageId !== 'null' && item.packageName.
Files to Modify
healthlink-his-ui/src/views/doctorstation/components/inspection/inspectionApplication.vue
Changes
initData(): AddformData.executeTime = formatDateTime(new Date())after line 899resetForm(): ChangeexecuteTime: nulltoexecuteTime: formatDateTime(new Date())at line 1550loadApplicationToForm(): FixisPackagelogic at line 2000