修复bug375:住院医生站点击“签发”按钮后系统提示语错误,显示为“保存成功”并且签发业务功能未实现。

bug376:【门诊医生站】检查页签申请单列表过滤异常,显示了历史检查就诊记录
bug377:【门诊医生站】检查申请单“执行科室”未获取配置默认值且字段交互逻辑不规范
This commit is contained in:
2026-04-16 10:25:12 +08:00
parent 6922aa1d2a
commit 210c463130
10 changed files with 179 additions and 29 deletions

View File

@@ -2272,7 +2272,26 @@ function handleNumberClick(item, index, row) {
// 选择执行科室处理
function handleOrgChange(value, index, row) {
// 这里的“执行科室”在后端通常以 organizationId / positionId 参与业务校验;
// 列表展示用的是 positionName因此需要同步写入名称避免“选了但显示空”的问题。
row.orgId = value;
row.positionId = value;
row.positionName = findOrgNameById(value) || row.positionName || '';
}
function findOrgNameById(id) {
if (!id) return '';
const targetId = String(id);
const stack = Array.isArray(organization.value) ? [...organization.value] : [];
while (stack.length > 0) {
const node = stack.shift();
if (!node) continue;
if (String(node.id) === targetId) return node.name || '';
if (Array.isArray(node.children) && node.children.length > 0) {
stack.unshift(...node.children);
}
}
return '';
}
/**