const fs = require('fs'); const path = require('path'); console.log('创建最小化HTML模板...'); const minimalTemplate = `

项目详情

@if (project) { {{ project.status }} }
@if (isActiveTab('progress')) {

客户信息

@if (isSyncingCustomerInfo) { 同步中... }
@if (isCustomerInfoExpanded) {
@if (project) {
@if (orderCreationData?.customerInfo) {
{{ orderCreationData.customerInfo.name }}
@if (orderCreationData.customerInfo.wechat) {
{{ orderCreationData.customerInfo.wechat }}
} @if (orderCreationData.customerInfo.source) {
{{ orderCreationData.customerInfo.source }}
} @if (orderCreationData.customerInfo.remark) {
{{ orderCreationData.customerInfo.remark }}
} }
}
}

交付管理

{{ expandedSection === 'delivery' ? '▼' : '▶' }}
@if (expandedSection === 'delivery') {

这里是交付管理的内容区域

建模文件 已完成
渲染图 进行中
}

售后管理

{{ expandedSection === 'aftercare' ? '▼' : '▶' }}
@if (expandedSection === 'aftercare') {

这里是售后管理的内容区域

客户反馈 待处理
修改请求 已完成
}
} @if (isActiveTab('members')) {

项目成员

@if (projectMembers.length === 0) {

暂无项目成员

}
} @if (isActiveTab('files')) {

项目文件

@if (projectFiles.length === 0) {

暂无项目文件

}
}
`; // 写入文件 const htmlFilePath = path.join(__dirname, 'src/app/pages/designer/project-detail/project-detail.html'); fs.writeFileSync(htmlFilePath, minimalTemplate, 'utf8'); console.log('最小化HTML模板创建完成!');