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

@@ -536,6 +536,7 @@ import {
getMedicineList,
getPharmacyCabinetList,
getPharmacyList,
getWarehouseList,
getTransferProductDetail,
lossReportApproved,
reject,
@@ -857,10 +858,26 @@ function handleBlur(row, index) {
row.applicantId = userStore.id;
}
function handleChangeSourceTypeEnum(value) {
// 无论选择哪种仓库类型,都显示药房、药库、耗材库的选项
getPharmacyCabinetList().then((res) => {
sourceTypeListOptions.value = res.data;
});
// 根据仓库类型获取对应的仓库列表
// 16: 药房, 11: 药库, 17: 耗材库
if (value == 16) {
// 药房
getPharmacyList().then((res) => {
sourceTypeListOptions.value = res.data;
});
} else if (value == 11) {
// 药库
getDispensaryList().then((res) => {
sourceTypeListOptions.value = res.data;
});
} else if (value == 17) {
// 耗材库
getWarehouseList().then((res) => {
sourceTypeListOptions.value = res.data;
});
} else {
sourceTypeListOptions.value = [];
}
}
// 获取详情
function getTransferProductDetails() {
@@ -1242,13 +1259,39 @@ function handleChangePurposeTypeEnum(value) {
}
// 源仓库切换
function handleChangelossTypeEnum(value) {
// 无论选择哪种仓库类型,都显示药房、药库、耗材库的选项
getPharmacyCabinetList().then((res) => {
sourceTypeListOptions.value = res.data;
// 根据仓库类型获取对应的仓库列表
// 16: 药房, 11: 药库, 17: 耗材库
if (value == 16) {
// 药房
getPharmacyList().then((res) => {
sourceTypeListOptions.value = res.data;
if (!route.query.supplyBusNo) {
receiptHeaderForm.lossLocationId = '';
}
});
} else if (value == 11) {
// 药库
getDispensaryList().then((res) => {
sourceTypeListOptions.value = res.data;
if (!route.query.supplyBusNo) {
receiptHeaderForm.lossLocationId = '';
}
});
} else if (value == 17) {
// 耗材库
getWarehouseList().then((res) => {
sourceTypeListOptions.value = res.data;
if (!route.query.supplyBusNo) {
receiptHeaderForm.lossLocationId = '';
}
});
} else {
// 其他情况清空列表
sourceTypeListOptions.value = [];
if (!route.query.supplyBusNo) {
receiptHeaderForm.lossLocationId = '';
}
});
}
}
// 单位处理
function handleUnitCodeChange(row, index, value) {