This commit is contained in:
cjw
2026-02-16 17:23:22 +08:00
parent 2dd872b561
commit 78e59eeced
+37 -37
View File
@@ -363,60 +363,60 @@
const geoChars = cavityKeyInfo.geometric_characteristics || {};
return `
<div class="key-info-categories">
<div style="display: flex; flex-direction: row; justify-content: space-between; gap: 15px; width: 100%; flex-wrap: nowrap; box-sizing: border-box;">
<!-- 模具参数 -->
<div class="category-section">
<div class="category-title">🔧 模具参数</div>
<div class="category-content">
<div class="data-item">
<div class="data-label">收缩率</div>
<div class="data-value">${metadata.shrinkage_rate !== undefined ? metadata.shrinkage_rate : 'N/A'}</div>
<div style="display: flex; flex-direction: column; width: 32%; min-width: 280px; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; flex-shrink: 0; box-sizing: border-box;">
<div style="font-weight: bold; font-size: 16px; color: #333; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid #ddd;">🔧 模具参数</div>
<div style="display: flex; flex-direction: column; gap: 12px;">
<div style="display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0;">
<div style="font-weight: bold; color: #666;">收缩率</div>
<div style="color: #333; text-align: right;">${metadata.shrinkage_rate !== undefined ? metadata.shrinkage_rate : 'N/A'}</div>
</div>
<div class="data-item">
<div class="data-label">拔模角</div>
<div class="data-value">${metadata.draft_angle !== undefined ? metadata.draft_angle + '°' : 'N/A'}</div>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0;">
<div style="font-weight: bold; color: #666;">拔模角</div>
<div style="color: #333; text-align: right;">${metadata.draft_angle !== undefined ? metadata.draft_angle + '°' : 'N/A'}</div>
</div>
<div class="data-item">
<div class="data-label">型腔材料</div>
<div class="data-value">${manufacturingInfo.mold_material || 'N/A'}</div>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 8px 0;">
<div style="font-weight: bold; color: #666;">型腔材料</div>
<div style="color: #333; text-align: right;">${manufacturingInfo.mold_material || 'N/A'}</div>
</div>
</div>
</div>
<!-- 几何特性 -->
<div class="category-section">
<div class="category-title">📐 几何特性</div>
<div class="category-content">
<div class="data-item">
<div class="data-label">产品体积</div>
<div class="data-value">${geoChars.product_volume || 'N/A'}</div>
<div style="display: flex; flex-direction: column; width: 32%; min-width: 280px; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; flex-shrink: 0; box-sizing: border-box;">
<div style="font-weight: bold; font-size: 16px; color: #333; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid #ddd;">📐 几何特性</div>
<div style="display: flex; flex-direction: column; gap: 12px;">
<div style="display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0;">
<div style="font-weight: bold; color: #666;">产品体积</div>
<div style="color: #333; text-align: right;">${geoChars.product_volume || 'N/A'}</div>
</div>
<div class="data-item">
<div class="data-label">产品重量</div>
<div class="data-value">${geoChars.product_weight || 'N/A'}</div>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0;">
<div style="font-weight: bold; color: #666;">产品重量</div>
<div style="color: #333; text-align: right;">${geoChars.product_weight || 'N/A'}</div>
</div>
<div class="data-item">
<div class="data-label">壁厚范围</div>
<div class="data-value">${geoChars.wall_thickness_range || 'N/A'}</div>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 8px 0;">
<div style="font-weight: bold; color: #666;">壁厚范围</div>
<div style="color: #333; text-align: right;">${geoChars.wall_thickness_range || 'N/A'}</div>
</div>
</div>
</div>
<!-- 制造要求 -->
<div class="category-section">
<div class="category-title">🏭 制造要求</div>
<div class="category-content">
<div class="data-item">
<div class="data-label">分型线长度</div>
<div class="data-value">${manufacturingInfo.parting_line_length || 'N/A'}</div>
<div style="display: flex; flex-direction: column; width: 32%; min-width: 280px; background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; flex-shrink: 0; box-sizing: border-box;">
<div style="font-weight: bold; font-size: 16px; color: #333; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid #ddd;">🏭 制造要求</div>
<div style="display: flex; flex-direction: column; gap: 12px;">
<div style="display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0;">
<div style="font-weight: bold; color: #666;">分型线长度</div>
<div style="color: #333; text-align: right;">${manufacturingInfo.parting_line_length || 'N/A'}</div>
</div>
<div class="data-item">
<div class="data-label">预估周期</div>
<div class="data-value">${manufacturingInfo.estimated_cycle_time || 'N/A'}</div>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0;">
<div style="font-weight: bold; color: #666;">预估周期</div>
<div style="color: #333; text-align: right;">${manufacturingInfo.estimated_cycle_time || 'N/A'}</div>
</div>
<div class="data-item">
<div class="data-label">制造精度</div>
<div class="data-value">${manufacturingInfo.manufacturing_tolerance || 'N/A'}</div>
<div style="display: flex; justify-content: space-between; align-items: center; padding: 8px 0;">
<div style="font-weight: bold; color: #666;">制造精度</div>
<div style="color: #333; text-align: right;">${manufacturingInfo.manufacturing_tolerance || 'N/A'}</div>
</div>
</div>
</div>