|
@@ -332,7 +332,6 @@ export class RequirementsConfirmCardComponent implements OnInit, OnDestroy {
|
|
|
// 流程状态
|
|
|
stageCompletionStatus = {
|
|
|
materialAnalysis: false,
|
|
|
- requirementMapping: false,
|
|
|
collaboration: false,
|
|
|
progressReview: false
|
|
|
};
|
|
@@ -2025,22 +2024,15 @@ export class RequirementsConfirmCardComponent implements OnInit, OnDestroy {
|
|
|
|
|
|
// 检查阶段完成状态
|
|
|
private checkStageCompletion(): void {
|
|
|
- // 检查素材分析阶段 - 需要有素材文件且都已分析
|
|
|
+ // 检查素材解析阶段 - 需要有素材文件且都已分析
|
|
|
this.stageCompletionStatus.materialAnalysis = this.materialFiles.length > 0 &&
|
|
|
this.materialFiles.every(m => m.analysis);
|
|
|
|
|
|
- // 检查需求映射阶段 - 需要有确认的需求项,或者滑动条数据已调整且保存
|
|
|
- const hasConfirmedRequirements = this.requirementItems.length > 0 &&
|
|
|
- this.requirementItems.some(r => r.status === 'confirmed');
|
|
|
- const hasAdjustedIndicators = this.hasIndicatorChanges();
|
|
|
- this.stageCompletionStatus.requirementMapping = hasConfirmedRequirements ||
|
|
|
- (hasAdjustedIndicators && this.saveStatus === 'saved');
|
|
|
-
|
|
|
// 检查协作验证阶段 - 需要有协作评论或需求评论
|
|
|
this.stageCompletionStatus.collaboration = this.collaborationComments.length > 0 ||
|
|
|
this.requirementItems.some(r => r.comments && r.comments.length > 0);
|
|
|
|
|
|
- // 检查进度审查阶段 - 需要进度达到80%以上
|
|
|
+ // 检查进度管理阶段 - 需要进度达到80%以上
|
|
|
this.stageCompletionStatus.progressReview = this.getProgressPercentage() >= 80;
|
|
|
|
|
|
console.log('阶段完成状态更新:', this.stageCompletionStatus);
|
|
@@ -2102,7 +2094,7 @@ export class RequirementsConfirmCardComponent implements OnInit, OnDestroy {
|
|
|
return '已完成';
|
|
|
} else {
|
|
|
// 检查是否为未开始状态
|
|
|
- const stages = ['materialAnalysis', 'requirementMapping', 'collaboration', 'progressReview'];
|
|
|
+ const stages = ['materialAnalysis', 'collaboration', 'progressReview'];
|
|
|
const currentIndex = stages.indexOf(stage);
|
|
|
|
|
|
// 检查前面的阶段是否都已完成
|
|
@@ -2124,7 +2116,7 @@ export class RequirementsConfirmCardComponent implements OnInit, OnDestroy {
|
|
|
return 'stage-completed';
|
|
|
} else {
|
|
|
// 检查是否为未开始状态
|
|
|
- const stages = ['materialAnalysis', 'requirementMapping', 'collaboration', 'progressReview'];
|
|
|
+ const stages = ['materialAnalysis', 'collaboration', 'progressReview'];
|
|
|
const currentIndex = stages.indexOf(stage);
|
|
|
|
|
|
// 检查前面的阶段是否都已完成
|