Browse Source

修复检验申请导出excel异常

LT069288 3 months ago
parent
commit
d8faf23818

+ 1 - 1
UniformMaterialManagementSystem/ViewModels/InspectApplyPageViewModel.cs

@@ -482,7 +482,7 @@ namespace UniformMaterialManagementSystem.ViewModels
         [RelayCommand]
         [RelayCommand]
         private void ExportDetail()
         private void ExportDetail()
         {
         {
-            InspectApplyUtil.ExportBatchDetail(InspectApplyDetails, SelectedCompany.Name, SelectedMaterial.Name, BatchNo);
+            InspectApplyUtil.ExportBatchDetail(InspectApplyDetails, SelectedCompany?.Name, SelectedMaterial?.Name, BatchNo);
         }
         }
 
 
         /// <summary>
         /// <summary>