fix(signing): 兼容新版发起弹窗的模板版本校验

This commit is contained in:
xy
2026-09-30 18:32:18 +08:00
parent 8106f66dc5
commit eb4693cf65
@@ -597,10 +597,9 @@ export function useSigningTaskForm(options: UseSigningTaskFormOptions) {
const current = available.find((template) => template.id === selected.id)
if (!current || current.versionId !== selected.versionId) {
templates.value = available
Object.keys(staffAnswers).forEach((key) => delete staffAnswers[key])
createTaskIdempotencyKey = newIdempotencyKey()
errors.document = current
? `文书已更新为 ${current.version},请核对新版正文并重新填写后再发起签署。`
? `文书已更新为 ${current.version},请核对新版正文后再发起签署。`
: '该文书已停用或暂无可用版本,请重新选择文书。'
ElMessage.warning(errors.document)
return null