소스 검색

refactor(project): 移除模型检查清单相关代码

模型检查清单功能已被废弃,因此移除相关的前端和服务端代码
0235711 2 일 전
부모
커밋
cd2a30ba04

+ 1 - 19
src/app/pages/designer/project-detail/project-detail.html

@@ -867,25 +867,7 @@
                                                     </div>
                                                   }
                                                 </div>
-                                                
-                                                <!-- 模型检查清单 -->
-                                                <div class="model-check-section">
-                                                  <h6>模型差异检查清单</h6>
-                                                  <div class="checklist">
-                                                    @for (item of modelCheckItems; track item.id) {
-                                                      <div class="checklist-item">
-                                                        <label class="checklist-label">
-                                                          <input type="checkbox" class="custom-checkbox" 
-                                                                 [checked]="item.isPassed" 
-                                                                 (change)="updateModelCheckItem(item.id, $any($event.target).checked)" 
-                                                                 [disabled]="!canEditSection('delivery')">
-                                                          <span class="checklist-text">{{ item.name }}</span>
-                                                        </label>
-                                                        <span class="check-status">{{ item.isPassed ? '已通过' : '待处理' }}</span>
-                                                      </div>
-                                                    }
-                                                  </div>
-                                                </div>
+
                                               </div>
                                             } @else if (process.type === 'softDecor') {
                                               <!-- 软装内容 -->

+ 1 - 18
src/app/pages/designer/project-detail/project-detail.ts

@@ -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 {

+ 3 - 18
src/app/services/project.service.ts

@@ -4,7 +4,6 @@ import {
   Project,
   Task,
   RenderProgress,
-  ModelCheckItem,
   CustomerFeedback,
   DesignerChange,
   Settlement,
@@ -164,11 +163,7 @@ export class ProjectService {
     }
   ];
 
-  private modelCheckItems: ModelCheckItem[] = [
-    { id: 'm1', name: '尺寸准确性', isPassed: true },
-    { id: 'm2', name: '比例协调性', isPassed: true },
-    { id: 'm3', name: '户型匹配度', isPassed: false, notes: '需调整沙发位置' }
-  ];
+
 
   private feedbacks: CustomerFeedback[] = [
     {
@@ -627,19 +622,9 @@ export class ProjectService {
     return of(this.renderProgresses.find(rp => rp.projectId === projectId));
   }
 
-  // 获取模型检查清单
-  getModelCheckItems(): Observable<ModelCheckItem[]> {
-    return of(this.modelCheckItems);
-  }
 
-  // 更新模型检查项
-  updateModelCheckItem(itemId: string, isPassed: boolean): Observable<ModelCheckItem> {
-    const item = this.modelCheckItems.find(i => i.id === itemId);
-    if (item) {
-      item.isPassed = isPassed;
-    }
-    return of(item as ModelCheckItem);
-  }
+
+
 
   // 获取客户反馈
   getCustomerFeedbacks(): Observable<CustomerFeedback[]> {