|
|
|
@ -137,17 +137,8 @@ export class ErpParseData
|
|
|
|
|
this.UpdateBoardDrillRemark(boardData);
|
|
|
|
|
|
|
|
|
|
// 大孔面检查
|
|
|
|
|
let hasHoleFaceError = false;
|
|
|
|
|
if (boardData.holes.sideHoles.length)
|
|
|
|
|
for (let hole of boardData.holes.frontBackHoles)
|
|
|
|
|
{
|
|
|
|
|
if (hole.type === GangDrillType.Pxl && hole.face !== block.HoleFace as number)
|
|
|
|
|
{
|
|
|
|
|
holeFaceErrorBoards.add(entity);
|
|
|
|
|
hasHoleFaceError = true;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (boardData.holes.frontBackHoles.some(hole => hole.type === GangDrillType.Pxl && hole.face !== block.HoleFace as number))
|
|
|
|
|
holeFaceErrorBoards.add(entity);
|
|
|
|
|
|
|
|
|
|
// if (boardData.info.isRect)
|
|
|
|
|
// {
|
|
|
|
@ -225,11 +216,11 @@ export class ErpParseData
|
|
|
|
|
Toaster({
|
|
|
|
|
message: "部分板件的排钻大孔面异常(排钻的大孔面与板的大孔面相反)!详情见左下角日志!",
|
|
|
|
|
timeout: 5000,
|
|
|
|
|
intent: Intent.DANGER,
|
|
|
|
|
intent: Intent.WARNING,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
for (let board of holeFaceErrorBoards)
|
|
|
|
|
InteractionLog([{ msg: `板件:${board.Name}`, entity: [board] }, { msg: "大孔面相反!" }], LogType.Error);
|
|
|
|
|
InteractionLog([{ msg: `板件:${board.Name}`, entity: [board] }, { msg: "大孔面相反!" }], LogType.Warning);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//进度条代码
|
|
|
|
|