|
|
|
@ -126,32 +126,19 @@ export class ErpParseData
|
|
|
|
|
block.SealedRight = this.GetNumberBit(Number(entity.BoardProcessOption.sealedRight), 3); //封边右
|
|
|
|
|
}
|
|
|
|
|
sealingMap.set(entity, boardData.sealing);
|
|
|
|
|
let spliteWidth = Number(boardData.info.spliteWidth || '0'); //拆单宽
|
|
|
|
|
block.SpliteWidth = this.GetNumberBit(spliteWidth, 3);
|
|
|
|
|
let spliteHeight = Number(boardData.info.spliteHeight || '0'); //拆单高
|
|
|
|
|
block.SpliteHeight = this.GetNumberBit(spliteHeight, 3);
|
|
|
|
|
let spliteThickness = Number(boardData.info.spliteThickness || '0'); //拆单厚
|
|
|
|
|
block.SpliteThickness = this.GetNumberBit(spliteThickness, 3);
|
|
|
|
|
//板大小
|
|
|
|
|
if (spliteWidth > 0)
|
|
|
|
|
let splitSize = Production.GetSpiteSize(entity);
|
|
|
|
|
if (splitSize)
|
|
|
|
|
{
|
|
|
|
|
block.Width = this.GetNumberBit(spliteWidth, 3);
|
|
|
|
|
block.SpliteWidth = this.GetNumberBit(splitSize.spliteWidth, 3);
|
|
|
|
|
block.SpliteHeight = this.GetNumberBit(splitSize.spliteHeight, 3);
|
|
|
|
|
block.SpliteThickness = this.GetNumberBit(splitSize.spliteThickness, 3);
|
|
|
|
|
block.Width = block.SpliteWidth;
|
|
|
|
|
block.Height = block.SpliteHeight;
|
|
|
|
|
block.Thickness = block.SpliteThickness;
|
|
|
|
|
} else
|
|
|
|
|
{
|
|
|
|
|
block.Width = this.GetNumberBit(entity.Width, 3);
|
|
|
|
|
}
|
|
|
|
|
if (spliteHeight > 0)
|
|
|
|
|
{
|
|
|
|
|
block.Height = this.GetNumberBit(spliteHeight, 3);
|
|
|
|
|
} else
|
|
|
|
|
{
|
|
|
|
|
block.Height = this.GetNumberBit(entity.Height, 3);
|
|
|
|
|
}
|
|
|
|
|
if (spliteThickness > 0)
|
|
|
|
|
{
|
|
|
|
|
block.Thickness = this.GetNumberBit(spliteThickness, 3);
|
|
|
|
|
} else
|
|
|
|
|
{
|
|
|
|
|
block.Thickness = this.GetNumberBit(entity.Thickness, 3);
|
|
|
|
|
}
|
|
|
|
|
block.Area = this.GetNumberBit(block.Width * block.Height / 1000 / 1000, 3); // 面积
|
|
|
|
|