fix(ui): 修复多个功能模块的验证和数据处理问题

- 在医生工作站退费功能中添加患者选择验证
- 统一药品管理中的仓库类型选择逻辑,移除重复代码
- 修复统计管理页面清空按钮的数据重置问题
- 修正西药管理页面处方打印按钮的功能绑定
- 完善库存报表查询的SQL过滤条件实现
- 更新多个控制器接口参数类型以支持业务流程
- 优化退费列表对话框的数据加载和错误处理
This commit is contained in:
2026-03-02 23:27:11 +08:00
parent ce8b0b16b1
commit 9116ea4a84
22 changed files with 447 additions and 155 deletions

View File

@@ -48,10 +48,11 @@ public class PendingMedicationDetailsAppServiceImpl implements IPendingMedicatio
QueryWrapper<PendingMedicationSearchParam> queryWrapper = HisQueryUtils.buildQueryWrapper(
pendingMedicationSearchParam, searchKey, new HashSet<>(Arrays.asList("medicine_name", "medicine_no", "py_str")), request);
// 查询待发药明细列表
// 查询待发药明细列表(包含待配药、待发药、已配药三种状态,与门诊发药界面一致)
Page<PendingMedicationPageDto> pendingMedicationPage = pendingMedicationDetailsMapper
.selectPendingMedicationDetailsPage(new Page<>(pageNo, pageSize), queryWrapper,
DispenseStatus.IN_PROGRESS.getValue(), EncounterClass.AMB.getValue(), EncounterClass.IMP.getValue());
DispenseStatus.IN_PROGRESS.getValue(), DispenseStatus.PREPARATION.getValue(),
DispenseStatus.PREPARED.getValue(), EncounterClass.AMB.getValue(), EncounterClass.IMP.getValue());
pendingMedicationPage.getRecords().forEach(e -> {
// 发药类型

View File

@@ -20,11 +20,19 @@ public interface PendingMedicationDetailsMapper {
* @param page 分页
* @param queryWrapper 查询条件
* @param inProgress 发药类型:待发药
* @param preparation 发药类型:待配药
* @param prepared 发药类型:已配药
* @param amb 门诊类型
* @param imp 住院类型
* @return 待发药明细
*/
Page<PendingMedicationPageDto> selectPendingMedicationDetailsPage(
@Param("page") Page<PendingMedicationPageDto> page,
@Param(Constants.WRAPPER) QueryWrapper<PendingMedicationSearchParam> queryWrapper,
@Param("inProgress") Integer inProgress, @Param("amb") Integer amb, @Param("imp") Integer imp);
@Param("inProgress") Integer inProgress,
@Param("preparation") Integer preparation,
@Param("prepared") Integer prepared,
@Param("amb") Integer amb,
@Param("imp") Integer imp);
}