|
|
@ -5,6 +5,9 @@ import { PhysicalMaterialRecord } from '../../DatabaseServices/PhysicalMaterialR
|
|
|
|
|
|
|
|
|
|
|
|
export function ApplyGoodInfo(en: Board, material: PhysicalMaterialRecord)
|
|
|
|
export function ApplyGoodInfo(en: Board, material: PhysicalMaterialRecord)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
//切换材质时,材质锁定后,材料信息不跟随修改
|
|
|
|
|
|
|
|
if (en.Material != material.Id && (en.Material?.Object as PhysicalMaterialRecord)?.IsMaterialLock)
|
|
|
|
|
|
|
|
return;
|
|
|
|
en.BoardProcessOption[EBoardKeyList.BrMat] = material.GoodsInfo.name;
|
|
|
|
en.BoardProcessOption[EBoardKeyList.BrMat] = material.GoodsInfo.name;
|
|
|
|
en.BoardProcessOption[EBoardKeyList.Color] = material.GoodsInfo.color;
|
|
|
|
en.BoardProcessOption[EBoardKeyList.Color] = material.GoodsInfo.color;
|
|
|
|
en.BoardProcessOption[EBoardKeyList.Mat] = material.GoodsInfo.material;
|
|
|
|
en.BoardProcessOption[EBoardKeyList.Mat] = material.GoodsInfo.material;
|
|
|
|