fix: 修复Bug#429检查方法字段不应自动预填

移除examinationApplication.vue中自动填充inspectionMethod的逻辑
用户应手动选择检查方法,而不是由系统自动赋值
This commit is contained in:
2026-04-24 15:11:19 +08:00
parent b53cdfa617
commit 091b6e83b6

View File

@@ -832,11 +832,6 @@ function handleSave() {
const firstCheckType = selectedItems.value[0]?.checkType || 'unknown'; const firstCheckType = selectedItems.value[0]?.checkType || 'unknown';
form.examTypeCode = firstCheckType; form.examTypeCode = firstCheckType;
// 如果有选中的检查方法,更新表单中的检查方法字段(取第一个选中项目的检查方法)
const firstItemWithMethod = selectedItems.value.find(item => item.selectedMethod);
if (firstItemWithMethod?.selectedMethod) {
form.inspectionMethod = firstItemWithMethod.selectedMethod.name;
}
const payload = { const payload = {
...form, ...form,