675 [门诊医生站-检查申请] “检查方法”字段缺少必填标识却执行了强校验逻辑

This commit is contained in:
wangjian963
2026-06-24 11:38:08 +08:00
parent 8845fdcd70
commit 8b1185930e

View File

@@ -1861,10 +1861,7 @@ function handleSave() {
ElMessage.warning('请至少选择一个检查明细项目');
return;
}
if (selectedMethods.value.length === 0) {
ElMessage.warning('请选择检查方法');
return;
}
// Bug #675: 移除检查方法强制非空校验,字段非必填时允许空值保存
// 从已选项目推导检查类型编码(取第一个项目的 checkType如 CT / ECG / GI
const firstCheckType = selectedItems.value[0]?.checkType || 'unknown';
form.examTypeCode = firstCheckType;