feat: correcao de deteccao de monopeças no conversor e estilizacao de pecas simples na tabela

This commit is contained in:
2026-09-16 17:52:48 +00:00
parent 2b19a0d443
commit 5168ef3d61
6 changed files with 39 additions and 31 deletions
+3 -5
View File
@@ -618,11 +618,9 @@
}
if (currentAssembly) {
const isSubComp =
itemMark === '-' ||
itemMark.includes('-100') ||
itemMark.includes('-10') ||
(itemMark.match(/-\d+$/) && parseInt(itemMark.match(/-(\d+)$/)[1], 10) >= 1000);
const lastNumberMatch = itemMark.match(/(?:^|-)(\d+)$/);
const itemNum = lastNumberMatch ? parseInt(lastNumberMatch[1], 10) : (parseInt(itemMark, 10) || 0);
const isSubComp = itemMark === '-' || itemNum >= 1000;
if (isSubComp) {
currentAssembly.isComposed = 'SIM';