fix: 修复多模块Bug及功能优化

修复药品汇总、医嘱套餐、转科管理、用药汇总、处方列表、用户管理等多个模块的问题
This commit is contained in:
Ranyunqiao
2026-05-06 10:42:57 +08:00
parent 8a2f7965bd
commit d3c4b612e4
12 changed files with 84 additions and 16 deletions

View File

@@ -272,10 +272,18 @@ function handleGetPrescription() {
function handleMedicineSummary() {
let paramList = getSelectRows();
if (!paramList || paramList.length === 0) {
proxy.$message.warning('请至少选择一条待汇总的药品');
return;
}
let ids = [];
paramList = paramList.forEach((item) => {
paramList.forEach((item) => {
ids.push(...item.dispenseIds);
});
if (ids.length === 0) {
proxy.$message.warning('所选药品未关联发放信息');
return;
}
medicineSummary(ids).then((res) => {
if (res.code == 200) {
proxy.$message.success('操作成功');