Compare commits

...

2 Commits

View File

@@ -1103,7 +1103,9 @@ function selectAdviceBase(key, row) {
prescriptionList.value[rowIndex.value].positionName = stock.locationName;
}
} else {
prescriptionList.value[rowIndex.value].orgId = JSON.parse(JSON.stringify(row)).positionId;
// 执行科室默认逻辑:优先使用诊疗项目维护的所属科室,如果没有则使用开单科室
const defaultOrgId = row.positionId || props.patientInfo.orgId;
prescriptionList.value[rowIndex.value].orgId = defaultOrgId;
prescriptionList.value[rowIndex.value].unitPrice = row.priceList[0].price;
}
expandOrder.value = [key];
@@ -1499,7 +1501,9 @@ function setValue(row) {
.toFixed(2);
}
} else {
prescriptionList.value[rowIndex.value].orgId = JSON.parse(JSON.stringify(row)).positionId;
// 执行科室默认逻辑:优先使用诊疗项目维护的所属科室,如果没有则使用开单科室
const defaultOrgId = row.positionId || props.patientInfo.orgId;
prescriptionList.value[rowIndex.value].orgId = defaultOrgId;
prescriptionList.value[rowIndex.value].unitPrice = row.priceList[0].price;
}
}