diff --git a/src/UI/Components/ApplyGoodInfo.tsx b/src/UI/Components/ApplyGoodInfo.tsx index 4fa4abcf2..e15a0ce02 100644 --- a/src/UI/Components/ApplyGoodInfo.tsx +++ b/src/UI/Components/ApplyGoodInfo.tsx @@ -5,6 +5,9 @@ import { PhysicalMaterialRecord } from '../../DatabaseServices/PhysicalMaterialR 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.Color] = material.GoodsInfo.color; en.BoardProcessOption[EBoardKeyList.Mat] = material.GoodsInfo.material;