TireInspectionPanel: aufklappbare, editierbare Profiltiefen-/QR-Report-Ansicht in allen Reifenstapel-Ansichten
This commit is contained in:
1 parent
766703524a
commit
7a0406eaa2
9 files changed
+825
-58
No files matched your search
@@ -949,6 +949,12 @@ else
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (createdTireStack != null && !isInventoryMode)
|
||||
{
|
||||
<TireInspectionPanel TireStackId="@createdTireStack.Id" AllowEdit="true" InitiallyOpen="@(pendingReportSaved)"
|
||||
ScannerSubtitle="@(selectedCustomer != null ? $"Kunde: {selectedCustomer.FullName}" : null)" />
|
||||
}
|
||||
|
||||
<div class="step-actions">
|
||||
<button class="btn btn-outline" @onclick="ResetForm">
|
||||
@(isInventoryMode ? "Weiteren Stapel einlagern" : "Neuen Reifenstapel einlagern")
|
||||
@@ -1185,6 +1191,7 @@ else
|
||||
private bool isLoadingReport;
|
||||
private TireReportData? scannedReport;
|
||||
private TireReportData? pendingReport;
|
||||
private bool pendingReportSaved;
|
||||
private ReportAssignMode reportMode = ReportAssignMode.New;
|
||||
private List<TireStack> customerStacksForReport = new();
|
||||
private Guid? reportTargetStackId;
|
||||
@@ -1999,12 +2006,14 @@ else
|
||||
UserSession.CurrentUser?.Id);
|
||||
|
||||
createdTireStack = created;
|
||||
pendingReportSaved = false;
|
||||
|
||||
if (pendingReport != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
await TireStackService.AddInspectionAsync(pendingReport.ToInspection(created.Id, UserSession.CurrentUser?.Id));
|
||||
pendingReportSaved = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user