|
|
|
@ -6,6 +6,7 @@ import { ArcBoardOptions } from '../../../Add-on/ArcBoard/ArcBoardFeeding';
|
|
|
|
|
import { FaceDirection } from '../../../Add-on/DrawDrilling/DrillType';
|
|
|
|
|
import { IBoardRectHoleType, ParseBoardRectHoleType, SetBrHighHoleTypeFromRectHoleType } from '../../../Add-on/DrawDrilling/HoleUtils';
|
|
|
|
|
import { app } from '../../../ApplicationServices/Application';
|
|
|
|
|
import { HostApplicationServices } from '../../../ApplicationServices/HostApplicationServices';
|
|
|
|
|
import { CheckObjectType, CheckoutValid } from '../../../Common/CheckoutVaildValue';
|
|
|
|
|
import { DataAdapter } from '../../../Common/DataAdapter';
|
|
|
|
|
import { safeEval } from '../../../Common/eval';
|
|
|
|
@ -228,9 +229,10 @@ export function AddCommonBoardProps(Com: React.ComponentType<ICommonOptionProps>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const [L, W, H] = [this._ConfigOption.height, this._ConfigOption.width, this._ConfigOption.thickness];
|
|
|
|
|
if (safeEval(this._ProcessOption.spliteHeight, { L, W, H }, 'L') <= 1 ||
|
|
|
|
|
safeEval(this._ProcessOption.spliteWidth, { L, W, H }, "W") <= 1 ||
|
|
|
|
|
safeEval(this._ProcessOption.spliteThickness, { L, W, H }, "H") <= 1)
|
|
|
|
|
const safeEvalL = safeEval(this._ProcessOption.spliteHeight, { L, W, H }, 'L');
|
|
|
|
|
const safeEvalW = safeEval(this._ProcessOption.spliteWidth, { L, W, H }, 'W');
|
|
|
|
|
const safeEvalH = safeEval(this._ProcessOption.spliteThickness, { L, W, H }, 'H');
|
|
|
|
|
if (safeEvalL <= 1 || safeEvalW <= 1 || safeEvalH <= 1)
|
|
|
|
|
{
|
|
|
|
|
AppToaster.show({
|
|
|
|
|
message: "拆单尺寸错误!值不能小等于1",
|
|
|
|
@ -240,6 +242,16 @@ export function AddCommonBoardProps(Com: React.ComponentType<ICommonOptionProps>
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const chaidanOptions = !(!safeEvalL && !safeEvalW && !safeEvalH) && !(safeEvalL && safeEvalW && safeEvalH);
|
|
|
|
|
if (!HostApplicationServices.chaidanOption.partialSplitValueCanTakesEffect && chaidanOptions)
|
|
|
|
|
{
|
|
|
|
|
AppToaster.show({
|
|
|
|
|
message: "拆单尺寸填写不完整",
|
|
|
|
|
timeout: 3000,
|
|
|
|
|
intent: Intent.WARNING,
|
|
|
|
|
}, "拆单尺寸填写错误");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
CommandWrap(() =>
|
|
|
|
|
{
|
|
|
|
|
let board = this.CurrentBoard;
|
|
|
|
|