Fix Bug #541: 待签发医嘱双击无法打开编辑界面 — 根因:clickRowDb函数中条件row.statusEnum == 1 && !row.requestId只允许"待保存"医嘱编辑,错误排除了"待签发"医嘱;修复:改为row.statusEnum == 1,允许statusEnum=1的所有医嘱(待保存+待签发)双击进入编辑模式,保存时handleSaveSign已通过requestId/dbOpType=2正确处理更新逻辑
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -804,7 +804,7 @@ function checkUnit(item, row) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 行双击打开编辑块,仅待发送的可编辑
|
// 行双击打开编辑块,"待保存"和"待签发"均可编辑
|
||||||
function clickRowDb(row, column, event) {
|
function clickRowDb(row, column, event) {
|
||||||
// 检查点击的是否是复选框
|
// 检查点击的是否是复选框
|
||||||
if (event && event.target.closest('.el-checkbox')) {
|
if (event && event.target.closest('.el-checkbox')) {
|
||||||
@@ -815,8 +815,8 @@ function clickRowDb(row, column, event) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
row.showPopover = false;
|
row.showPopover = false;
|
||||||
// “待签发(已保存 requestId存在)”不允许再编辑;仅“待保存(无requestId)”允许编辑
|
// statusEnum == 1 包含"待保存(无requestId)"和"待签发(有requestId)",均允许编辑
|
||||||
if (row.statusEnum == 1 && !row.requestId) {
|
if (row.statusEnum == 1) {
|
||||||
// 确保治疗类型为字符串,方便与单选框 label 对齐,默认为长期医嘱('1')
|
// 确保治疗类型为字符串,方便与单选框 label 对齐,默认为长期医嘱('1')
|
||||||
row.therapyEnum = String(row.therapyEnum ?? '1');
|
row.therapyEnum = String(row.therapyEnum ?? '1');
|
||||||
row.isEdit = true;
|
row.isEdit = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user