diff --git a/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/inhospitalnursestation/appservice/impl/AdviceProcessAppServiceImpl.java b/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/inhospitalnursestation/appservice/impl/AdviceProcessAppServiceImpl.java index 471f51875..30936b8de 100755 --- a/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/inhospitalnursestation/appservice/impl/AdviceProcessAppServiceImpl.java +++ b/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/inhospitalnursestation/appservice/impl/AdviceProcessAppServiceImpl.java @@ -251,14 +251,16 @@ public class AdviceProcessAppServiceImpl implements IAdviceProcessAppService { e.setTotalAmount(e.getQuantity() + unitStr); } - // 频次/用法组合 + // 频次/用法组合(直接使用DictUtils翻译,避免DictAspect延迟导致_dictText为空) + String rateLabel = e.getRateCode() != null ? DictUtils.getDictLabel("rate_code", e.getRateCode()) : null; + String methodLabel = e.getMethodCode() != null ? DictUtils.getDictLabel("method_code", e.getMethodCode()) : null; StringBuilder freqBuilder = new StringBuilder(); - if (e.getRateCode_dictText() != null && !e.getRateCode_dictText().isEmpty()) { - freqBuilder.append(e.getRateCode_dictText()); + if (rateLabel != null && !rateLabel.isEmpty()) { + freqBuilder.append(rateLabel); } - if (e.getMethodCode_dictText() != null && !e.getMethodCode_dictText().isEmpty()) { + if (methodLabel != null && !methodLabel.isEmpty()) { if (freqBuilder.length() > 0) freqBuilder.append(" "); - freqBuilder.append(e.getMethodCode_dictText()); + freqBuilder.append(methodLabel); } e.setFrequencyUsage(freqBuilder.length() > 0 ? freqBuilder.toString() : null); diff --git a/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/inhospitalnursestation/appservice/impl/MedicineSummaryAppServiceImpl.java b/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/inhospitalnursestation/appservice/impl/MedicineSummaryAppServiceImpl.java index 7fc827e38..430d8bb60 100755 --- a/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/inhospitalnursestation/appservice/impl/MedicineSummaryAppServiceImpl.java +++ b/healthlink-his-server/healthlink-his-application/src/main/java/com/healthlink/his/web/inhospitalnursestation/appservice/impl/MedicineSummaryAppServiceImpl.java @@ -190,8 +190,9 @@ public class MedicineSummaryAppServiceImpl implements IMedicineSummaryAppService } // 领药人 Long receiverId = medicineSummaryParamList.get(0).getReceiverId(); - // 申请时间 - Date now = DateUtils.getNowDate(); + // 申请时间(优先使用前端传递的操作时间,确保与实际操作时间一致) + Date now = medicineSummaryParamList.get(0).getDispenseTime() != null + ? medicineSummaryParamList.get(0).getDispenseTime() : DateUtils.getNowDate(); // 申请人 Long practitionerId = SecurityUtils.getLoginUser().getPractitionerId(); // 药品发放id diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/inhospitalnursestation/AdviceProcessAppMapper.xml b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/inhospitalnursestation/AdviceProcessAppMapper.xml index 0b66034f6..41ea84840 100755 --- a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/inhospitalnursestation/AdviceProcessAppMapper.xml +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/inhospitalnursestation/AdviceProcessAppMapper.xml @@ -207,7 +207,7 @@ NULL::numeric AS unit_price, NULL::numeric AS total_price, NULL::bigint AS stopper_id, - NULL::varchar AS stopper_name + T1.update_by AS stopper_name FROM med_medication_request AS T1 LEFT JOIN med_medication_definition AS T2 ON T2.id = T1.medication_id @@ -353,7 +353,7 @@ NULL::numeric AS unit_price, NULL::numeric AS total_price, NULL::bigint AS stopper_id, - NULL::varchar AS stopper_name + T1.update_by AS stopper_name FROM wor_service_request AS T1 LEFT JOIN wor_activity_definition AS T2 ON T2.id = T1.activity_id diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/regdoctorstation/AdviceManageAppMapper.xml b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/regdoctorstation/AdviceManageAppMapper.xml index 5c75ae1ac..d410d599e 100755 --- a/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/regdoctorstation/AdviceManageAppMapper.xml +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/mapper/regdoctorstation/AdviceManageAppMapper.xml @@ -189,6 +189,7 @@ T1.id AS request_id, T1.id || '-1' AS unique_key, T1.practitioner_id AS requester_id, + ap.name AS requester_id_dict_text, T1.create_time AS request_time, CASE WHEN T1.practitioner_id = #{practitionerId} THEN '1' ELSE '0' END AS biz_request_flag, T1.content_json AS content_json, @@ -223,6 +224,7 @@ T1.effective_dose_end AS stop_time, T1.update_by AS stop_user_name FROM med_medication_request AS T1 + LEFT JOIN adm_practitioner AS ap ON ap.id = T1.practitioner_id AND ap.delete_flag = '0' LEFT JOIN med_medication_definition AS T2 ON T2.ID = T1.medication_id AND T2.delete_flag = '0' LEFT JOIN med_medication AS T3 ON T3.medication_def_id = T2.ID @@ -246,6 +248,7 @@ T1.id AS request_id, T1.id || '-2' AS unique_key, T1.requester_id AS requester_id, + ap.name AS requester_id_dict_text, T1.create_time AS request_time, CASE WHEN T1.requester_id = #{practitionerId} THEN '1' ELSE '0' END AS biz_request_flag, T1.content_json AS content_json, @@ -280,6 +283,7 @@ NULL::timestamp AS stop_time, '' AS stop_user_name FROM wor_device_request AS T1 + LEFT JOIN adm_practitioner AS ap ON ap.id = T1.requester_id AND ap.delete_flag = '0' LEFT JOIN adm_device_definition AS T2 ON T2.ID = T1.device_def_id AND T2.delete_flag = '0' LEFT JOIN adm_charge_item AS T3 @@ -300,6 +304,7 @@ T1.id AS request_id, T1.id || '-3' AS unique_key, T1.requester_id AS requester_id, + ap.name AS requester_id_dict_text, T1.create_time AS request_time, CASE WHEN T1.requester_id = #{practitionerId} THEN '1' ELSE '0' END AS biz_request_flag, T1.content_json AS content_json, @@ -334,6 +339,7 @@ T1.occurrence_end_time AS stop_time, T1.update_by AS stop_user_name FROM wor_service_request AS T1 + LEFT JOIN adm_practitioner AS ap ON ap.id = T1.requester_id AND ap.delete_flag = '0' LEFT JOIN wor_activity_definition AS T2 ON T2.ID = T1.activity_id AND T2.delete_flag = '0' diff --git a/healthlink-his-ui/src/views/appoinmentmanage/deptManage/doctorschedule/index.vue b/healthlink-his-ui/src/views/appoinmentmanage/deptManage/doctorschedule/index.vue index 725eaebba..e00c1f7e7 100755 --- a/healthlink-his-ui/src/views/appoinmentmanage/deptManage/doctorschedule/index.vue +++ b/healthlink-his-ui/src/views/appoinmentmanage/deptManage/doctorschedule/index.vue @@ -92,6 +92,7 @@ placeholder="请选" class="inline-select" :disabled="!isEditMode" + clearable > +