fix(pl): 防止图片识别回填已锁定的证面引用

This commit is contained in:
wuzilong committed 2026-11-02 12:51:54 +08:00
1 parent 262ed3971c
commit 57d61f24db
3 files changed
+29 -2

No files matched your search

+3 -1
View File
@@ -982,7 +982,9 @@
!(form.value.attachmentUrls || '').split(',').includes(targetImage)
)
return
mergeCandidates(form.value as any, result.candidates, edited)
const protectedFields =
form.value.referencesEditable === false ? new Set([...edited, 'purchaseRefs']) : edited
mergeCandidates(form.value as any, result.candidates, protectedFields)
await nextTick()
if (session !== editSession || !formVisible.value) return
formRef.value?.clearValidate()