|
|
@@ -54,7 +54,7 @@ namespace BPASmartClient.JXJFoodSmallStation.ViewModel |
|
|
|
}), "LocalRecipeEdit", true); |
|
|
|
RemoveCommand = new RelayCommand<object>((o) => |
|
|
|
{ |
|
|
|
var res = AllRawMaterial.FirstOrDefault(p => p.RawMaterialLocation == (int)o); |
|
|
|
var res = AllRawMaterial.FirstOrDefault(p => p.RawMaterialName == o.ToString()); |
|
|
|
if (res != null) AllRawMaterial.Remove(res); |
|
|
|
//NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, App.MainWindow, "提示", $"{o.ToString()}:原料删除成功!"); |
|
|
|
}); |
|
|
|