fix: resolve #403/#404 missing fields in medical order group application and editing

#403 - Removed 'dose: undefined' override in setValue() that was clearing dose values from group packages when applied to patients
#404 - Added explicit column aliases in OrdersGroupPackageAppMapper.xml to ensure proper field mapping for dose, rate_code, method_code, dose_quantity, dispense_per_duration, and therapy_enum

Both fixes address the root cause where medication detail fields (dose, administration route, frequency, duration) were being lost during group package application and editing.
This commit is contained in:
2026-04-22 17:19:26 +08:00
parent cd54a3903c
commit 0cfdce042f
2 changed files with 7 additions and 6 deletions

View File

@@ -1506,7 +1506,7 @@ function setValue(row) {
orgId: row.adviceType != 3 ? undefined : (resolveOrgId(row.orgId || row.positionId || patientInfo.value?.inHospitalOrgId) || ''),
// 🔧 修复:同时保存 orgName当 orgId 在科室树中匹配不到时作为兜底显示
orgName: row.adviceType != 3 ? undefined : (findOrgName(row.orgId || row.positionId || patientInfo.value?.inHospitalOrgId) || row.orgName || patientInfo.value?.inHospitalOrgName || ''),
dose: undefined,
// dose: undefined, Removed to preserve dose value from group package
unitCodeList: unitCodeList.value,
doseUnitCode: row.doseUnitCode,
minUnitCode: row.minUnitCode,