diff --git a/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue b/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue index cef0b090..23404eed 100755 --- a/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue +++ b/openhis-ui-vue3/src/views/doctorstation/components/prescription/prescriptionlist.vue @@ -3407,7 +3407,11 @@ function setValue(row) { prescriptionList.value[rowIndex.value].unitCode = row.partAttributeEnum == 1 ? row.minUnitCode : row.unitCode; } - prescriptionList.value[rowIndex.value].categoryEnum = row.categoryCode; + // 🔧 Bug Fix #456: 诊疗类医嘱(adviceType=3)不应将categoryCode赋值给categoryEnum, + // 否则保存后SQL查询会根据category_enum=2(检查目录)将类型误判为"检查" + if (row.adviceType != 3) { + prescriptionList.value[rowIndex.value].categoryEnum = row.categoryCode; + } prescriptionList.value[rowIndex.value].skinTestFlag = row.skinTestFlag; prescriptionList.value[rowIndex.value].definitionId = row.chargeItemDefinitionId; prescriptionList.value[rowIndex.value].executeNum = 1;