|
@@ -229,8 +229,8 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
referenceImages: any[] = [];
|
|
|
cadFiles: any[] = [];
|
|
|
|
|
|
- // 新增:10阶段顺序(串式流程)
|
|
|
- stageOrder: ProjectStage[] = ['订单创建', '需求沟通', '方案确认', '建模', '软装', '渲染', '后期', '尾款结算', '客户评价', '投诉处理'];
|
|
|
+ // 新增:9阶段顺序(串式流程)- 删除后期阶段
|
|
|
+ stageOrder: ProjectStage[] = ['订单创建', '需求沟通', '方案确认', '建模', '软装', '渲染', '尾款结算', '客户评价', '投诉处理'];
|
|
|
// 新增:阶段展开状态(默认全部收起,当前阶段在数据加载后自动展开)
|
|
|
expandedStages: Partial<Record<ProjectStage, boolean>> = {
|
|
|
'订单创建': false,
|
|
@@ -239,17 +239,16 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
'建模': false,
|
|
|
'软装': false,
|
|
|
'渲染': false,
|
|
|
- '后期': false,
|
|
|
'尾款结算': false,
|
|
|
'客户评价': false,
|
|
|
'投诉处理': false,
|
|
|
};
|
|
|
|
|
|
- // 新增:四大板块定义与展开状态
|
|
|
+ // 新增:四大板块定义与展开状态 - 交付执行板块调整为三个阶段
|
|
|
sections: Array<{ key: SectionKey; label: string; stages: ProjectStage[] }> = [
|
|
|
{ key: 'order', label: '订单创建', stages: ['订单创建'] },
|
|
|
{ key: 'requirements', label: '确认需求', stages: ['需求沟通', '方案确认'] },
|
|
|
- { key: 'delivery', label: '交付执行', stages: ['建模', '软装', '渲染', '后期'] },
|
|
|
+ { key: 'delivery', label: '交付执行', stages: ['建模', '软装', '渲染'] },
|
|
|
{ key: 'aftercare', label: '售后', stages: ['尾款结算', '客户评价', '投诉处理'] }
|
|
|
];
|
|
|
expandedSection: SectionKey | null = null;
|
|
@@ -361,7 +360,7 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
// 如果当前阶段在订单创建之后,说明订单创建已完成,不应标红
|
|
|
const stageOrder = [
|
|
|
'订单创建', '需求沟通', '方案确认', '建模', '软装',
|
|
|
- '渲染', '后期', '尾款结算', '客户评价', '投诉处理'
|
|
|
+ '渲染', '尾款结算', '客户评价', '投诉处理'
|
|
|
];
|
|
|
|
|
|
const currentIndex = stageOrder.indexOf(currentStage);
|
|
@@ -383,7 +382,7 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
// 定义阶段顺序
|
|
|
const stageOrder = [
|
|
|
'订单创建', '需求沟通', '方案确认', '建模', '软装',
|
|
|
- '渲染', '后期', '尾款结算', '客户评价', '投诉处理'
|
|
|
+ '渲染', '尾款结算', '客户评价', '投诉处理'
|
|
|
];
|
|
|
|
|
|
// 获取当前阶段和检查阶段的索引
|
|
@@ -1125,7 +1124,6 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
'建模': '项目执行',
|
|
|
'软装': '项目执行',
|
|
|
'渲染': '项目执行',
|
|
|
- '后期': '项目执行',
|
|
|
'尾款结算': '收尾验收',
|
|
|
'客户评价': '收尾验收',
|
|
|
'投诉处理': '收尾验收'
|
|
@@ -1666,10 +1664,10 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
this.postProcessImages = this.postProcessImages.filter(i => i.id !== id);
|
|
|
}
|
|
|
|
|
|
- // 新增:后期阶段确认上传并自动进入下一阶段(尾款结算)
|
|
|
+ // 新增:后期阶段确认上传并自动进入下一阶段(已删除后期阶段,此方法保留但不会被调用)
|
|
|
confirmPostProcessUpload(): void {
|
|
|
- if (this.postProcessImages.length === 0) return;
|
|
|
- this.advanceToNextStage('后期');
|
|
|
+ // 由于删除了后期阶段,此方法不再使用
|
|
|
+ console.log('后期阶段已删除,此方法不再使用');
|
|
|
}
|
|
|
|
|
|
// 新增:尾款结算阶段确认并自动进入下一阶段(客户评价)
|
|
@@ -1774,7 +1772,6 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
case '建模':
|
|
|
case '软装':
|
|
|
case '渲染':
|
|
|
- case '后期':
|
|
|
return 'delivery';
|
|
|
case '尾款结算':
|
|
|
case '客户评价':
|
|
@@ -1836,7 +1833,6 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
'建模': 'modeling',
|
|
|
'软装': 'softdecor',
|
|
|
'渲染': 'render',
|
|
|
- '后期': 'post',
|
|
|
'尾款结算': 'settlement',
|
|
|
'客户评价': 'customer-review',
|
|
|
'投诉处理': 'complaint'
|
|
@@ -2209,7 +2205,7 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
|
|
|
const stageOrder = [
|
|
|
'订单创建', '需求沟通', '方案确认', '建模', '软装',
|
|
|
- '渲染', '后期', '尾款结算', '客户评价', '投诉处理'
|
|
|
+ '渲染', '尾款结算', '客户评价', '投诉处理'
|
|
|
];
|
|
|
|
|
|
const currentStageIndex = stageOrder.indexOf(this.project.currentStage);
|
|
@@ -2319,7 +2315,7 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
}
|
|
|
|
|
|
// 检查是否已完成所有阶段
|
|
|
- const allStages: ProjectStage[] = ['订单创建', '需求沟通', '方案确认', '建模', '软装', '渲染', '后期', '尾款结算', '客户评价', '投诉处理'];
|
|
|
+ const allStages: ProjectStage[] = ['订单创建', '需求沟通', '方案确认', '建模', '软装', '渲染', '尾款结算', '客户评价', '投诉处理'];
|
|
|
const currentIndex = allStages.indexOf(current);
|
|
|
|
|
|
if (currentIndex === allStages.length - 1) {
|
|
@@ -2356,7 +2352,6 @@ export class ProjectDetail implements OnInit, OnDestroy {
|
|
|
'建模': 40,
|
|
|
'软装': 55,
|
|
|
'渲染': 70,
|
|
|
- '后期': 85,
|
|
|
'尾款结算': 90,
|
|
|
'客户评价': 95,
|
|
|
'投诉处理': 100
|