优化混炼示方日志记录逻辑,直接从入参构建快照以减少数据库查询,提高性能与效率。

This commit is contained in:
geht
2026-05-27 17:38:55 +08:00
parent d2c1d4443b
commit f3e0ffca4c
5 changed files with 56 additions and 20 deletions

View File

@@ -1039,8 +1039,7 @@ async function applyMixingSpecPageData(row: Recordable, mode: 'edit' | 'referenc
} else {
refreshSignDisplay(pageData || {});
}
await loadMachineEffectiveVolume(sheetForm.machineId);
await loadMixerStepOptions(sheetForm.machineId);
await Promise.all([loadMachineEffectiveVolume(sheetForm.machineId), loadMixerStepOptions(sheetForm.machineId)]);
await syncSheetToForm();
materialData.value = ensureMixingDetailRows(pageData?.materialList || [], DEFAULT_MIXING_MATERIAL_ROW_COUNT);
convertFactorApplying.value = true;