feat: correcao de deteccao de monopeças no conversor e estilizacao de pecas simples na tabela
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user