diff --git a/frontend/src/mid-section-defect/components/AnalysisSummary.vue b/frontend/src/mid-section-defect/components/AnalysisSummary.vue index 7f22624..2c76ba9 100644 --- a/frontend/src/mid-section-defect/components/AnalysisSummary.vue +++ b/frontend/src/mid-section-defect/components/AnalysisSummary.vue @@ -23,6 +23,15 @@ const props = defineProps({ }); const collapsed = ref(false); +const INPUT_TYPE_LABELS = Object.freeze({ + lot: 'LOT ID', + lot_id: 'LOT ID', + work_order: '工單', + wafer_lot: 'WAFER LOT', + serial_number: '成品流水號', + gd_work_order: 'GD 工單', + gd_lot_id: 'GD LOT ID', +}); // Restore from sessionStorage try { @@ -44,6 +53,10 @@ function formatNumber(v) { if (v == null || v === 0) return '0'; return Number(v).toLocaleString(); } + +function formatInputType(value) { + return INPUT_TYPE_LABELS[value] || value || 'LOT ID'; +}