fix: 明确退回原因并启用退回操作

This commit is contained in:
NathanAlex7
2026-09-15 11:43:15 +08:00
parent e44716b3ec
commit 090e849a9a
4 changed files with 7 additions and 2 deletions
+3
View File
@@ -10,6 +10,9 @@ assert.match(component, /aria-label=\{`\$\{topic\.title\}评审意见`\}/, "每
assert.match(component, /onChange=\{\(event\)=>setDraft\(event\.target\.value\)\}/, "输入框应允许修改节点意见");
assert.match(component, /draft\.trim\(\)\|\|"已复核本章节数据来源和AI检查结果"/, "正常节点应保存人工输入或明确的默认复核说明");
assert.match(component, /disabled=\{busy\|\|requiredOpinion\}/, "需要说明依据的评审动作不应允许空意见提交");
assert.match(component, /aria-label="退回补充材料原因"/, "退回操作旁应直接提供原因输入框");
assert.match(component, /disabled=\{busy\|\|!hasRun\|\|!returnReason\.trim\(\)\}/, "未填写退回原因时不应允许退回");
assert.match(component, /onComplete\("退回",returnReason\.trim\(\)\)/, "退回原因应随退回决定一并保存");
assert.match(page, /setReviewOpinion\]=useState\(""\)/, "常用模板默认不应冒充人工意见");
console.log("Reviewer workspace input behavior checks passed");