|
@@ -6,7 +6,6 @@ import { ProjectService } from '../../../services/project.service';
|
|
|
import {
|
|
|
Project,
|
|
|
RenderProgress,
|
|
|
- ModelCheckItem,
|
|
|
CustomerFeedback,
|
|
|
DesignerChange,
|
|
|
Settlement,
|
|
@@ -223,7 +222,6 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
projectId: string = '';
|
|
|
project: Project | undefined;
|
|
|
renderProgress: RenderProgress | undefined;
|
|
|
- modelCheckItems: ModelCheckItem[] = [];
|
|
|
feedbacks: CustomerFeedback[] = [];
|
|
|
designerChanges: DesignerChange[] = [];
|
|
|
settlements: Settlement[] = [];
|
|
@@ -819,7 +817,6 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
if (this.projectId) {
|
|
|
this.loadProjectDetails();
|
|
|
this.loadRenderProgress();
|
|
|
- this.loadModelCheckItems();
|
|
|
this.loadCustomerFeedbacks();
|
|
|
this.loadDesignerChanges();
|
|
|
this.loadSettlements();
|
|
@@ -1070,12 +1067,6 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
}, 1000);
|
|
|
}
|
|
|
|
|
|
- loadModelCheckItems(): void {
|
|
|
- this.projectService.getModelCheckItems().subscribe(items => {
|
|
|
- this.modelCheckItems = items;
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
loadCustomerFeedbacks(): void {
|
|
|
this.projectService.getCustomerFeedbacks().subscribe(feedbacks => {
|
|
|
this.feedbacks = feedbacks.filter(f => f.projectId === this.projectId);
|
|
@@ -1117,12 +1108,6 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- updateModelCheckItem(itemId: string, isPassed: boolean): void {
|
|
|
- this.projectService.updateModelCheckItem(itemId, isPassed).subscribe(() => {
|
|
|
- this.loadModelCheckItems(); // 重新加载检查项
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
updateFeedbackStatus(feedbackId: string, status: '处理中' | '已解决'): void {
|
|
|
this.projectService.updateFeedbackStatus(feedbackId, status).subscribe(() => {
|
|
|
this.loadCustomerFeedbacks(); // 重新加载反馈
|
|
@@ -1319,9 +1304,7 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
}
|
|
|
|
|
|
// 检查是否所有模型检查项都已通过
|
|
|
- areAllModelChecksPassed(): boolean {
|
|
|
- return this.modelCheckItems.every(item => item.isPassed);
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
// 获取技能匹配度警告
|
|
|
getSkillMismatchWarning(): string | null {
|