桌面端原材料入场记录完善
This commit is contained in:
@@ -1232,7 +1232,7 @@
|
||||
Style="{StaticResource ButtonPrimary}"
|
||||
IsEnabled="{Binding IsNotActionBusy}"
|
||||
Width="168" Margin="0,0,15,0"
|
||||
ToolTip="保存成功后直接发送到已选打印机(不弹预览窗口)"/>
|
||||
ToolTip="仅打印成功后保留入场记录;打印失败会自动撤销本次新增"/>
|
||||
<Button Content="保存"
|
||||
Command="{Binding SaveCommand}"
|
||||
Style="{StaticResource ButtonDefault}"
|
||||
|
||||
@@ -84,7 +84,11 @@ public partial class RawMaterialEntryOperationView : UserControl
|
||||
|
||||
if (DataContext is RawMaterialEntryOperationViewModel vm && !_initialized)
|
||||
{
|
||||
vm.InitializeForAdd();
|
||||
//update-begin---author:jiangxh ---date:20260731 for:【原料入场】Loaded 兜底不覆盖导航编辑态-----------
|
||||
// 有导航参数时由 INavigationAware.OnNavigatedTo 初始化;此处仅无参兜底为新增。
|
||||
if (!vm.HasAppliedNavigation)
|
||||
vm.InitializeForAdd();
|
||||
//update-end---author:jiangxh ---date:20260731 for:【原料入场】Loaded 兜底不覆盖导航编辑态-----------
|
||||
_initialized = true;
|
||||
_ = vm.LoadTodayEntriesOnFirstShowAsync();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user