bug402:住院医生站诊断录入:点击保存诊断后,列表出现重复记录且部分条目元数据缺失.

bug405: 住院医生工作站:临床医嘱保存成功后,医嘱条目仍处于可编辑状态(未锁定展示)
This commit is contained in:
2026-05-09 10:39:17 +08:00
parent e2d608ebb8
commit bc4a6cc6af
4 changed files with 14 additions and 4 deletions

View File

@@ -610,6 +610,8 @@ function getListInfo(addNewRow) {
return {
...parsedContent,
...item,
isEdit: false,
showPopover: false,
doseQuantity: parsedContent?.doseQuantity,
doseUnitCode_dictText: parsedContent?.doseUnitCode_dictText,
// 确保 therapyEnum 被正确设置,优先使用 contentJson 中的值
@@ -802,7 +804,8 @@ function clickRowDb(row, column, event) {
return;
}
row.showPopover = false;
if (row.statusEnum == 1) {
// “待签发(已保存 requestId存在)”不允许再编辑;仅“待保存(无requestId)”允许编辑
if (row.statusEnum == 1 && !row.requestId) {
// 确保治疗类型为字符串,方便与单选框 label 对齐,默认为长期医嘱('1')
row.therapyEnum = String(row.therapyEnum ?? '1');
row.isEdit = true;