@seedtactics/insight-client 16.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/dist/cell-status/buffers.d.ts +36 -0
- package/dist/cell-status/buffers.js +127 -0
- package/dist/cell-status/current-status.d.ts +30 -0
- package/dist/cell-status/current-status.js +200 -0
- package/dist/cell-status/estimated-cycle-times.d.ts +41 -0
- package/dist/cell-status/estimated-cycle-times.js +257 -0
- package/dist/cell-status/inspections.d.ts +55 -0
- package/dist/cell-status/inspections.js +213 -0
- package/dist/cell-status/loading.d.ts +26 -0
- package/dist/cell-status/loading.js +112 -0
- package/dist/cell-status/material-details.d.ts +116 -0
- package/dist/cell-status/material-details.js +422 -0
- package/dist/cell-status/material-summary.d.ts +52 -0
- package/dist/cell-status/material-summary.js +312 -0
- package/dist/cell-status/names.d.ts +19 -0
- package/dist/cell-status/names.js +134 -0
- package/dist/cell-status/pallet-cycles.d.ts +24 -0
- package/dist/cell-status/pallet-cycles.js +78 -0
- package/dist/cell-status/rebookings.d.ts +30 -0
- package/dist/cell-status/rebookings.js +139 -0
- package/dist/cell-status/scheduled-jobs.d.ts +18 -0
- package/dist/cell-status/scheduled-jobs.js +94 -0
- package/dist/cell-status/sim-day-usage.d.ts +14 -0
- package/dist/cell-status/sim-day-usage.js +54 -0
- package/dist/cell-status/sim-production.d.ts +22 -0
- package/dist/cell-status/sim-production.js +91 -0
- package/dist/cell-status/sim-station-use.d.ts +25 -0
- package/dist/cell-status/sim-station-use.js +71 -0
- package/dist/cell-status/station-cycles.d.ts +34 -0
- package/dist/cell-status/station-cycles.js +145 -0
- package/dist/cell-status/tool-replacements.d.ts +44 -0
- package/dist/cell-status/tool-replacements.js +155 -0
- package/dist/cell-status/tool-usage.d.ts +25 -0
- package/dist/cell-status/tool-usage.js +95 -0
- package/dist/components/App.d.ts +15 -0
- package/dist/components/App.js +549 -0
- package/dist/components/AxisAndGrid.d.ts +51 -0
- package/dist/components/AxisAndGrid.js +47 -0
- package/dist/components/BarcodeScanning.d.ts +6 -0
- package/dist/components/BarcodeScanning.js +150 -0
- package/dist/components/ChartTooltip.d.ts +28 -0
- package/dist/components/ChartTooltip.js +95 -0
- package/dist/components/ChooseMode.d.ts +18 -0
- package/dist/components/ChooseMode.js +136 -0
- package/dist/components/ChooseOperator.d.ts +1 -0
- package/dist/components/ChooseOperator.js +93 -0
- package/dist/components/ErrorsAndLoading.d.ts +9 -0
- package/dist/components/ErrorsAndLoading.js +55 -0
- package/dist/components/LoadingIcon.d.ts +1 -0
- package/dist/components/LoadingIcon.js +48 -0
- package/dist/components/LogEntry.d.ts +16 -0
- package/dist/components/LogEntry.js +365 -0
- package/dist/components/ManualSerialEntry.d.ts +5 -0
- package/dist/components/ManualSerialEntry.js +91 -0
- package/dist/components/MonthSelect.d.ts +6 -0
- package/dist/components/MonthSelect.js +67 -0
- package/dist/components/Navigation.d.ts +23 -0
- package/dist/components/Navigation.js +120 -0
- package/dist/components/VerboseLogging.d.ts +1 -0
- package/dist/components/VerboseLogging.js +47 -0
- package/dist/components/analysis/AnalysisSelectToolbar.d.ts +1 -0
- package/dist/components/analysis/AnalysisSelectToolbar.js +55 -0
- package/dist/components/analysis/BufferChart.d.ts +1 -0
- package/dist/components/analysis/BufferChart.js +139 -0
- package/dist/components/analysis/CostPerPiece.d.ts +2 -0
- package/dist/components/analysis/CostPerPiece.js +175 -0
- package/dist/components/analysis/CycleChart.d.ts +42 -0
- package/dist/components/analysis/CycleChart.js +281 -0
- package/dist/components/analysis/DataTable.d.ts +83 -0
- package/dist/components/analysis/DataTable.js +215 -0
- package/dist/components/analysis/EfficiencyPage.d.ts +2 -0
- package/dist/components/analysis/EfficiencyPage.js +138 -0
- package/dist/components/analysis/HeatChart.d.ts +22 -0
- package/dist/components/analysis/HeatChart.js +161 -0
- package/dist/components/analysis/InspectionDataTable.d.ts +10 -0
- package/dist/components/analysis/InspectionDataTable.js +148 -0
- package/dist/components/analysis/InspectionSankey.d.ts +12 -0
- package/dist/components/analysis/InspectionSankey.js +140 -0
- package/dist/components/analysis/PalletCycleCards.d.ts +1 -0
- package/dist/components/analysis/PalletCycleCards.js +137 -0
- package/dist/components/analysis/PartCycleCards.d.ts +2 -0
- package/dist/components/analysis/PartCycleCards.js +331 -0
- package/dist/components/analysis/QualityPage.d.ts +1 -0
- package/dist/components/analysis/QualityPage.js +49 -0
- package/dist/components/analysis/ScheduleHistory.d.ts +3 -0
- package/dist/components/analysis/ScheduleHistory.js +108 -0
- package/dist/components/analysis/StationDataTable.d.ts +25 -0
- package/dist/components/analysis/StationDataTable.js +246 -0
- package/dist/components/analysis/ToolReplacements.d.ts +1 -0
- package/dist/components/analysis/ToolReplacements.js +370 -0
- package/dist/components/operations/AllMaterial.d.ts +5 -0
- package/dist/components/operations/AllMaterial.js +267 -0
- package/dist/components/operations/ChartRangeEdit.d.ts +4 -0
- package/dist/components/operations/ChartRangeEdit.js +148 -0
- package/dist/components/operations/CloseoutReport.d.ts +2 -0
- package/dist/components/operations/CloseoutReport.js +172 -0
- package/dist/components/operations/CompletedParts.d.ts +2 -0
- package/dist/components/operations/CompletedParts.js +286 -0
- package/dist/components/operations/CurrentWorkorders.d.ts +3 -0
- package/dist/components/operations/CurrentWorkorders.js +368 -0
- package/dist/components/operations/Dashboard.d.ts +2 -0
- package/dist/components/operations/Dashboard.js +90 -0
- package/dist/components/operations/OEEChart.d.ts +10 -0
- package/dist/components/operations/OEEChart.js +173 -0
- package/dist/components/operations/Outliers.d.ts +4 -0
- package/dist/components/operations/Outliers.js +69 -0
- package/dist/components/operations/ProgramHighlight.d.ts +1 -0
- package/dist/components/operations/ProgramHighlight.js +9 -0
- package/dist/components/operations/Programs.d.ts +5 -0
- package/dist/components/operations/Programs.js +363 -0
- package/dist/components/operations/Rebookings.d.ts +1 -0
- package/dist/components/operations/Rebookings.js +213 -0
- package/dist/components/operations/RecentCycleChart.d.ts +4 -0
- package/dist/components/operations/RecentCycleChart.js +240 -0
- package/dist/components/operations/RecentProduction.d.ts +2 -0
- package/dist/components/operations/RecentProduction.js +213 -0
- package/dist/components/operations/RecentSchedules.d.ts +12 -0
- package/dist/components/operations/RecentSchedules.js +180 -0
- package/dist/components/operations/RecentStationCycles.d.ts +4 -0
- package/dist/components/operations/RecentStationCycles.js +159 -0
- package/dist/components/operations/ShiftSettings.d.ts +6 -0
- package/dist/components/operations/ShiftSettings.js +134 -0
- package/dist/components/operations/SimDayUsage.d.ts +1 -0
- package/dist/components/operations/SimDayUsage.js +133 -0
- package/dist/components/operations/ToolReport.d.ts +3 -0
- package/dist/components/operations/ToolReport.js +233 -0
- package/dist/components/operations/WorkorderGantt.d.ts +1 -0
- package/dist/components/operations/WorkorderGantt.js +124 -0
- package/dist/components/quality/QualityMaterial.d.ts +2 -0
- package/dist/components/quality/QualityMaterial.js +169 -0
- package/dist/components/quality/QualityPaths.d.ts +1 -0
- package/dist/components/quality/QualityPaths.js +53 -0
- package/dist/components/quality/RecentFailedInspections.d.ts +1 -0
- package/dist/components/quality/RecentFailedInspections.js +123 -0
- package/dist/components/routes.d.ts +170 -0
- package/dist/components/routes.js +301 -0
- package/dist/components/station-monitor/BulkRawMaterial.d.ts +11 -0
- package/dist/components/station-monitor/BulkRawMaterial.js +251 -0
- package/dist/components/station-monitor/Closeout.d.ts +5 -0
- package/dist/components/station-monitor/Closeout.js +162 -0
- package/dist/components/station-monitor/CustomStationMonitorDialog.d.ts +1 -0
- package/dist/components/station-monitor/CustomStationMonitorDialog.js +55 -0
- package/dist/components/station-monitor/Inspection.d.ts +8 -0
- package/dist/components/station-monitor/Inspection.js +164 -0
- package/dist/components/station-monitor/InvalidateCycle.d.ts +33 -0
- package/dist/components/station-monitor/InvalidateCycle.js +262 -0
- package/dist/components/station-monitor/JobDetails.d.ts +7 -0
- package/dist/components/station-monitor/JobDetails.js +108 -0
- package/dist/components/station-monitor/LoadStation.d.ts +10 -0
- package/dist/components/station-monitor/LoadStation.js +450 -0
- package/dist/components/station-monitor/Material.d.ts +77 -0
- package/dist/components/station-monitor/Material.js +489 -0
- package/dist/components/station-monitor/MoveMaterialArrows.d.ts +11 -0
- package/dist/components/station-monitor/MoveMaterialArrows.js +118 -0
- package/dist/components/station-monitor/PrintedLabel.d.ts +29 -0
- package/dist/components/station-monitor/PrintedLabel.js +166 -0
- package/dist/components/station-monitor/QuarantineButton.d.ts +4 -0
- package/dist/components/station-monitor/QuarantineButton.js +184 -0
- package/dist/components/station-monitor/Queues.d.ts +23 -0
- package/dist/components/station-monitor/Queues.js +312 -0
- package/dist/components/station-monitor/QueuesAddMaterial.d.ts +30 -0
- package/dist/components/station-monitor/QueuesAddMaterial.js +248 -0
- package/dist/components/station-monitor/SelectInspType.d.ts +2 -0
- package/dist/components/station-monitor/SelectInspType.js +99 -0
- package/dist/components/station-monitor/SelectWorkorder.d.ts +4 -0
- package/dist/components/station-monitor/SelectWorkorder.js +100 -0
- package/dist/components/station-monitor/StationToolbar.d.ts +3 -0
- package/dist/components/station-monitor/StationToolbar.js +168 -0
- package/dist/components/station-monitor/SystemOverview.d.ts +46 -0
- package/dist/components/station-monitor/SystemOverview.js +439 -0
- package/dist/components/station-monitor/Whiteboard.d.ts +10 -0
- package/dist/components/station-monitor/Whiteboard.js +67 -0
- package/dist/data/all-material-bins.d.ts +45 -0
- package/dist/data/all-material-bins.js +224 -0
- package/dist/data/chart-times.d.ts +20 -0
- package/dist/data/chart-times.js +99 -0
- package/dist/data/cost-per-piece.d.ts +32 -0
- package/dist/data/cost-per-piece.js +183 -0
- package/dist/data/current-cycles.d.ts +13 -0
- package/dist/data/current-cycles.js +144 -0
- package/dist/data/inspection-sankey.d.ts +15 -0
- package/dist/data/inspection-sankey.js +147 -0
- package/dist/data/move-arrows.d.ts +48 -0
- package/dist/data/move-arrows.js +217 -0
- package/dist/data/operators.d.ts +2 -0
- package/dist/data/operators.js +44 -0
- package/dist/data/part-summary.d.ts +17 -0
- package/dist/data/part-summary.js +107 -0
- package/dist/data/path-lookup.d.ts +13 -0
- package/dist/data/path-lookup.js +107 -0
- package/dist/data/queue-material.d.ts +46 -0
- package/dist/data/queue-material.js +256 -0
- package/dist/data/results.bufferchart.d.ts +10 -0
- package/dist/data/results.bufferchart.js +90 -0
- package/dist/data/results.completed-parts.d.ts +26 -0
- package/dist/data/results.completed-parts.js +181 -0
- package/dist/data/results.cycles.d.ts +86 -0
- package/dist/data/results.cycles.js +454 -0
- package/dist/data/results.inspection.d.ts +36 -0
- package/dist/data/results.inspection.js +188 -0
- package/dist/data/results.oee.d.ts +40 -0
- package/dist/data/results.oee.js +330 -0
- package/dist/data/results.schedules.d.ts +23 -0
- package/dist/data/results.schedules.js +157 -0
- package/dist/data/tools-programs.d.ts +78 -0
- package/dist/data/tools-programs.js +376 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +60 -0
- package/dist/network/api.d.ts +1390 -0
- package/dist/network/api.js +4971 -0
- package/dist/network/backend-mock.d.ts +11 -0
- package/dist/network/backend-mock.js +512 -0
- package/dist/network/backend.d.ts +57 -0
- package/dist/network/backend.js +77 -0
- package/dist/network/load-specific-month.d.ts +13 -0
- package/dist/network/load-specific-month.js +77 -0
- package/dist/network/server-settings.d.ts +12 -0
- package/dist/network/server-settings.js +92 -0
- package/dist/network/websocket.d.ts +4 -0
- package/dist/network/websocket.js +165 -0
- package/dist/renderer.d.ts +8 -0
- package/dist/renderer.js +55 -0
- package/dist/seedtactics-logo.d.ts +2 -0
- package/dist/seedtactics-logo.js +4 -0
- package/dist/util/chart-colors.d.ts +1 -0
- package/dist/util/chart-colors.js +116 -0
- package/dist/util/chart-helpers.d.ts +3 -0
- package/dist/util/chart-helpers.js +51 -0
- package/dist/util/parseISODuration.d.ts +4 -0
- package/dist/util/parseISODuration.js +40 -0
- package/docs/client-efficiency.md +355 -0
- package/docs/client-engineering.md +54 -0
- package/docs/client-launch.md +55 -0
- package/docs/client-operations.md +88 -0
- package/docs/client-quality.md +74 -0
- package/docs/client-sales.md +61 -0
- package/docs/client-scanners.md +41 -0
- package/docs/client-station-monitor.md +149 -0
- package/docs/client-tools-programs.md +74 -0
- package/docs/improve-fms.md +141 -0
- package/docs/makino.md +40 -0
- package/docs/material-quarantine.md +82 -0
- package/docs/material-tracking.md +236 -0
- package/docs/mazak.md +115 -0
- package/docs/niigata.md +228 -0
- package/docs/operator-procedures.md +106 -0
- package/docs/part-instructions.md +63 -0
- package/docs/screenshots/insight-all-material.png +0 -0
- package/docs/screenshots/insight-analysis-pallets.png +0 -0
- package/docs/screenshots/insight-analysis-part-completed.png +0 -0
- package/docs/screenshots/insight-analysis-sankey.png +0 -0
- package/docs/screenshots/insight-analysis-station-oee.png +0 -0
- package/docs/screenshots/insight-buffer-occupancy.png +0 -0
- package/docs/screenshots/insight-choose-analysis-month.png +0 -0
- package/docs/screenshots/insight-closeout.png +0 -0
- package/docs/screenshots/insight-cost-percentages.png +0 -0
- package/docs/screenshots/insight-dashboard.png +0 -0
- package/docs/screenshots/insight-event-custom-view.jpg +0 -0
- package/docs/screenshots/insight-event-viewer.jpg +0 -0
- package/docs/screenshots/insight-inspection.png +0 -0
- package/docs/screenshots/insight-load-station-details.png +0 -0
- package/docs/screenshots/insight-load-station.png +0 -0
- package/docs/screenshots/insight-loadcycle-graph.png +0 -0
- package/docs/screenshots/insight-loadstation-small.jpg +0 -0
- package/docs/screenshots/insight-machinecycle-graph.png +0 -0
- package/docs/screenshots/insight-machinecycle-table.png +0 -0
- package/docs/screenshots/insight-machinecycles.png +0 -0
- package/docs/screenshots/insight-machinehours.png +0 -0
- package/docs/screenshots/insight-machineoutliers.png +0 -0
- package/docs/screenshots/insight-monthly-schedules.png +0 -0
- package/docs/screenshots/insight-operations-material.png +0 -0
- package/docs/screenshots/insight-operations-overview.png +0 -0
- package/docs/screenshots/insight-operations-reports.png +0 -0
- package/docs/screenshots/insight-part-cost.png +0 -0
- package/docs/screenshots/insight-program-report.png +0 -0
- package/docs/screenshots/insight-quality-material-details.png +0 -0
- package/docs/screenshots/insight-quality-material.png +0 -0
- package/docs/screenshots/insight-quality-quarantine.png +0 -0
- package/docs/screenshots/insight-quality-sankey.png +0 -0
- package/docs/screenshots/insight-quality-similar-paths.png +0 -0
- package/docs/screenshots/insight-queue-details.png +0 -0
- package/docs/screenshots/insight-queues-jobs-table.png +0 -0
- package/docs/screenshots/insight-queues.png +0 -0
- package/docs/screenshots/insight-sim-day-usage.png +0 -0
- package/docs/screenshots/insight-station-system-overview-buttons.png +0 -0
- package/docs/screenshots/insight-station-system-overview.png +0 -0
- package/docs/screenshots/insight-system-overview.png +0 -0
- package/docs/screenshots/insight-tool-replacements.png +0 -0
- package/docs/screenshots/insight-tool-report.png +0 -0
- package/docs/screenshots/insight-toolbar-btns.png +0 -0
- package/docs/screenshots/insight-workorder-gantt.png +0 -0
- package/docs/screenshots/insight-workorders.png +0 -0
- package/docs/security.md +131 -0
- package/docs/server-config.md +56 -0
- package/docs/server-errors.md +44 -0
- package/package.json +90 -0
- package/src/index.ts +65 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/* Copyright (c) 2022, John Lenz
|
|
3
|
+
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
* Redistributions of source code must retain the above copyright
|
|
10
|
+
notice, this list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
* Redistributions in binary form must reproduce the above
|
|
13
|
+
copyright notice, this list of conditions and the following
|
|
14
|
+
disclaimer in the documentation and/or other materials provided
|
|
15
|
+
with the distribution.
|
|
16
|
+
|
|
17
|
+
* Neither the name of John Lenz, Black Maple Software, SeedTactics,
|
|
18
|
+
nor the names of other contributors may be used to endorse or
|
|
19
|
+
promote products derived from this software without specific
|
|
20
|
+
prior written permission.
|
|
21
|
+
|
|
22
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
23
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
24
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
25
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
26
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
27
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
28
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
29
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
30
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
31
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
32
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
*/
|
|
34
|
+
import { memo, useMemo } from "react";
|
|
35
|
+
import { addHours } from "date-fns";
|
|
36
|
+
import { Box, Typography } from "@mui/material";
|
|
37
|
+
import { Button } from "@mui/material";
|
|
38
|
+
import { MaterialDialog, MatSummary } from "./Material.js";
|
|
39
|
+
import { SelectWorkorderDialog, selectWorkorderDialogOpen } from "./SelectWorkorder.js";
|
|
40
|
+
import { Tooltip } from "@mui/material";
|
|
41
|
+
import { currentOperator } from "../../data/operators.js";
|
|
42
|
+
import { fmsInformation } from "../../network/server-settings.js";
|
|
43
|
+
import { materialDialogOpen, materialInDialogInfo, materialInDialogLargestUsedProcess, useCompleteCloseout, } from "../../cell-status/material-details.js";
|
|
44
|
+
import { last30MaterialSummary, } from "../../cell-status/material-summary.js";
|
|
45
|
+
import { instructionUrl } from "../../network/backend.js";
|
|
46
|
+
import { QuarantineMatButton } from "./QuarantineButton.js";
|
|
47
|
+
import { useIsDemo, useSetTitle } from "../routes.js";
|
|
48
|
+
import { atom, useAtom, useAtomValue, useSetAtom } from "jotai";
|
|
49
|
+
function CompleteButton() {
|
|
50
|
+
const fmsInfo = useAtomValue(fmsInformation);
|
|
51
|
+
const mat = useAtomValue(materialInDialogInfo);
|
|
52
|
+
const [complete, isCompleting] = useCompleteCloseout();
|
|
53
|
+
const operator = useAtomValue(currentOperator);
|
|
54
|
+
const [toShow, setToShow] = useAtom(materialDialogOpen);
|
|
55
|
+
if (mat === null)
|
|
56
|
+
return null;
|
|
57
|
+
const requireScan = fmsInfo.requireScanAtCloseout;
|
|
58
|
+
const requireWork = fmsInfo.requireWorkorderBeforeAllowCloseoutComplete;
|
|
59
|
+
let disallowCompleteReason;
|
|
60
|
+
if (requireScan) {
|
|
61
|
+
const usedScan = toShow !== null && (toShow.type === "Barcode" || toShow.type === "ManuallyEnteredSerial");
|
|
62
|
+
if (!usedScan) {
|
|
63
|
+
disallowCompleteReason = "Scan Required";
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
else if (requireWork) {
|
|
67
|
+
if (mat.workorderId === undefined || mat.workorderId === "") {
|
|
68
|
+
disallowCompleteReason = "No workorder assigned";
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function markComplete(failed) {
|
|
72
|
+
if (mat === null)
|
|
73
|
+
return;
|
|
74
|
+
complete({
|
|
75
|
+
mat,
|
|
76
|
+
operator: operator,
|
|
77
|
+
failed,
|
|
78
|
+
});
|
|
79
|
+
setToShow(null);
|
|
80
|
+
}
|
|
81
|
+
if (disallowCompleteReason) {
|
|
82
|
+
return (_jsx(Tooltip, { title: disallowCompleteReason, placement: "top", children: _jsx("div", { children: _jsx(Button, { color: "primary", disabled: true, children: "Close Out" }) }) }));
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
return (_jsxs(_Fragment, { children: [_jsx(Button, { color: "primary", disabled: isCompleting, onClick: () => markComplete(true), children: "Fail Close Out" }), _jsx(Button, { color: "primary", disabled: isCompleting, onClick: () => markComplete(false), children: "Pass Close Out" })] }));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function InstrButton() {
|
|
89
|
+
const demo = useIsDemo();
|
|
90
|
+
const material = useAtomValue(materialInDialogInfo);
|
|
91
|
+
const operator = useAtomValue(currentOperator);
|
|
92
|
+
const maxProc = useAtomValue(materialInDialogLargestUsedProcess)?.process;
|
|
93
|
+
if (material === null || material.partName === "")
|
|
94
|
+
return null;
|
|
95
|
+
const url = instructionUrl(material.partName, "closeout", material.materialID, null, maxProc, operator);
|
|
96
|
+
if (demo) {
|
|
97
|
+
return _jsx(Button, { color: "primary", children: "Instructions" });
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
return (_jsx(Button, { href: url, target: "bms-instructions", color: "primary", children: "Instructions" }));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function AssignWorkorderButton() {
|
|
104
|
+
const setWorkorderDialogOpen = useSetAtom(selectWorkorderDialogOpen);
|
|
105
|
+
const mat = useAtomValue(materialInDialogInfo);
|
|
106
|
+
if (mat === null)
|
|
107
|
+
return null;
|
|
108
|
+
return (_jsx(Button, { color: "primary", onClick: () => setWorkorderDialogOpen(true), children: "Assign Workorder" }));
|
|
109
|
+
}
|
|
110
|
+
const CloseoutMaterialDialog = memo(function CloseoutDialog() {
|
|
111
|
+
return (_jsx(MaterialDialog, { allowNote: true, buttons: _jsxs(_Fragment, { children: [_jsx(InstrButton, {}), _jsx(QuarantineMatButton, {}), _jsx(AssignWorkorderButton, {}), _jsx(CompleteButton, {})] }) }));
|
|
112
|
+
});
|
|
113
|
+
const currentNearestMinutes = atom(new Date());
|
|
114
|
+
currentNearestMinutes.onMount = (set) => {
|
|
115
|
+
set(new Date());
|
|
116
|
+
const interval = setInterval(() => {
|
|
117
|
+
set(new Date());
|
|
118
|
+
}, 1000 * 60);
|
|
119
|
+
return () => clearInterval(interval);
|
|
120
|
+
};
|
|
121
|
+
export function Closeout({ forceSingleColumn }) {
|
|
122
|
+
const matSummary = useAtomValue(last30MaterialSummary);
|
|
123
|
+
const nearestMinute = useAtomValue(currentNearestMinutes);
|
|
124
|
+
const material = useMemo(() => {
|
|
125
|
+
const cutoff = addHours(nearestMinute, -48);
|
|
126
|
+
const closedCutoff = addHours(nearestMinute, -2);
|
|
127
|
+
const uncompleted = [];
|
|
128
|
+
const closed = [];
|
|
129
|
+
for (const m of matSummary.matsById.values()) {
|
|
130
|
+
if (m.completed_last_proc_machining === true && m.last_unload_time && m.last_unload_time >= cutoff) {
|
|
131
|
+
if (m.closeout_completed === undefined) {
|
|
132
|
+
uncompleted.push(m);
|
|
133
|
+
}
|
|
134
|
+
else if (m.closeout_completed >= closedCutoff) {
|
|
135
|
+
closed.push(m);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
// sort ascending
|
|
140
|
+
uncompleted.sort((e1, e2) => e1.last_unload_time && e2.last_unload_time
|
|
141
|
+
? e1.last_unload_time.getTime() - e2.last_unload_time.getTime()
|
|
142
|
+
: 0);
|
|
143
|
+
// sort descending
|
|
144
|
+
closed.sort((e1, e2) => e1.last_unload_time && e2.last_unload_time
|
|
145
|
+
? e2.last_unload_time.getTime() - e1.last_unload_time.getTime()
|
|
146
|
+
: 0);
|
|
147
|
+
return { uncompleted, closed };
|
|
148
|
+
}, [matSummary, nearestMinute]);
|
|
149
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Box, { sx: { display: forceSingleColumn ? undefined : { md: "flex" } }, children: [_jsxs(Box, { padding: "8px", sx: {
|
|
150
|
+
minHeight: forceSingleColumn ? undefined : { md: "calc(100vh - 64px)" },
|
|
151
|
+
width: forceSingleColumn ? "100%" : { md: "50vw" },
|
|
152
|
+
borderRight: forceSingleColumn ? undefined : { md: "1px solid black" },
|
|
153
|
+
borderBottom: forceSingleColumn ? "1px solid black" : { sm: "1px solid black", md: "none" },
|
|
154
|
+
}, children: [_jsx(Typography, { variant: "h4", children: "Recently Completed" }), _jsx(Box, { display: "flex", justifyContent: "flex-start", flexWrap: "wrap", children: material.uncompleted.map((m, idx) => (_jsx(MatSummary, { mat: m }, idx))) })] }), _jsxs(Box, { padding: "8px", sx: { width: forceSingleColumn ? "100%" : { md: "50vw" } }, children: [_jsx(Typography, { variant: "h4", children: "Recently Closed Out" }), _jsx(Box, { display: "flex", justifyContent: "flex-start", flexWrap: "wrap", children: material.closed.map((m, idx) => (_jsx(MatSummary, { mat: m }, idx))) })] })] }), _jsx(SelectWorkorderDialog, {}), _jsx(CloseoutMaterialDialog, {})] }));
|
|
155
|
+
}
|
|
156
|
+
export function CloseoutPage() {
|
|
157
|
+
useSetTitle("Close Out");
|
|
158
|
+
return (_jsx(Box, { component: "main", sx: {
|
|
159
|
+
backgroundColor: "#F8F8F8",
|
|
160
|
+
minHeight: { sm: "calc(100vh - 64px - 40px)", md: "calc(100vh - 64px)" },
|
|
161
|
+
}, children: _jsx(Closeout, {}) }));
|
|
162
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CustomStationMonitorDialog: import("react").NamedExoticComponent<object>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/* Copyright (c) 2021, John Lenz
|
|
3
|
+
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
* Redistributions of source code must retain the above copyright
|
|
10
|
+
notice, this list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
* Redistributions in binary form must reproduce the above
|
|
13
|
+
copyright notice, this list of conditions and the following
|
|
14
|
+
disclaimer in the documentation and/or other materials provided
|
|
15
|
+
with the distribution.
|
|
16
|
+
|
|
17
|
+
* Neither the name of John Lenz, Black Maple Software, SeedTactics,
|
|
18
|
+
nor the names of other contributors may be used to endorse or
|
|
19
|
+
promote products derived from this software without specific
|
|
20
|
+
prior written permission.
|
|
21
|
+
|
|
22
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
23
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
24
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
25
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
26
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
27
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
28
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
29
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
30
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
31
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
32
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
*/
|
|
34
|
+
import { memo, useState } from "react";
|
|
35
|
+
import { Dialog } from "@mui/material";
|
|
36
|
+
import { DialogActions } from "@mui/material";
|
|
37
|
+
import { DialogContent } from "@mui/material";
|
|
38
|
+
import { fmsInformation } from "../../network/server-settings.js";
|
|
39
|
+
import { Button } from "@mui/material";
|
|
40
|
+
import { Tooltip } from "@mui/material";
|
|
41
|
+
import { IconButton } from "@mui/material";
|
|
42
|
+
import { DialogTitle } from "@mui/material";
|
|
43
|
+
import { Settings as SettingsIcon } from "@mui/icons-material";
|
|
44
|
+
import { useAtomValue } from "jotai";
|
|
45
|
+
export const CustomStationMonitorDialog = memo(function CustomStationMonitorDialog() {
|
|
46
|
+
const url = useAtomValue(fmsInformation)?.customStationMonitorDialogUrl;
|
|
47
|
+
const [open, setOpen] = useState(false);
|
|
48
|
+
if (!url) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
const parts = url.split("/");
|
|
52
|
+
let title = parts[parts.length - 1];
|
|
53
|
+
title = title[0].toUpperCase() + title.substr(1);
|
|
54
|
+
return (_jsxs(_Fragment, { children: [_jsx(Tooltip, { title: title, children: _jsx(IconButton, { onClick: () => setOpen(true), size: "large", children: _jsx(SettingsIcon, {}) }) }), _jsxs(Dialog, { open: open, onClose: () => setOpen(false), fullWidth: true, maxWidth: "md", children: [_jsx(DialogTitle, { children: title }), _jsx(DialogContent, { children: _jsx("iframe", { width: "100%", src: url, style: { border: 0, height: "calc(100vh - 250px)" } }) }), _jsx(DialogActions, { children: _jsx(Button, { color: "primary", onClick: () => setOpen(false), children: "Close" }) })] })] }));
|
|
55
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
interface InspectionProps {
|
|
3
|
+
readonly focusInspectionType: string | null;
|
|
4
|
+
readonly forceSingleColumn?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function Inspection({ focusInspectionType, forceSingleColumn }: InspectionProps): ReactNode;
|
|
7
|
+
export default function InspectionPage(props: InspectionProps): ReactNode;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/* Copyright (c) 2022, John Lenz
|
|
3
|
+
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
* Redistributions of source code must retain the above copyright
|
|
10
|
+
notice, this list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
* Redistributions in binary form must reproduce the above
|
|
13
|
+
copyright notice, this list of conditions and the following
|
|
14
|
+
disclaimer in the documentation and/or other materials provided
|
|
15
|
+
with the distribution.
|
|
16
|
+
|
|
17
|
+
* Neither the name of John Lenz, Black Maple Software, SeedTactics,
|
|
18
|
+
nor the names of other contributors may be used to endorse or
|
|
19
|
+
promote products derived from this software without specific
|
|
20
|
+
prior written permission.
|
|
21
|
+
|
|
22
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
23
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
24
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
25
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
26
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
27
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
28
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
29
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
30
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
31
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
32
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
33
|
+
*/
|
|
34
|
+
import { memo, useMemo } from "react";
|
|
35
|
+
import { addDays } from "date-fns";
|
|
36
|
+
import { Box, Typography } from "@mui/material";
|
|
37
|
+
import { Button } from "@mui/material";
|
|
38
|
+
import { DialogActions } from "@mui/material";
|
|
39
|
+
import { MaterialDialog, MatSummary } from "./Material.js";
|
|
40
|
+
import * as matDetails from "../../cell-status/material-details.js";
|
|
41
|
+
import { currentOperator } from "../../data/operators.js";
|
|
42
|
+
import { last30MaterialSummary } from "../../cell-status/material-summary.js";
|
|
43
|
+
import { LazySeq } from "@seedtactics/immutable-collections";
|
|
44
|
+
import { instructionUrl } from "../../network/backend.js";
|
|
45
|
+
import { QuarantineMatButton } from "./QuarantineButton.js";
|
|
46
|
+
import { useIsDemo, useSetTitle } from "../routes.js";
|
|
47
|
+
import { useAtomValue, useSetAtom } from "jotai";
|
|
48
|
+
function InspButtons(props) {
|
|
49
|
+
const demo = useIsDemo();
|
|
50
|
+
const operator = useAtomValue(currentOperator);
|
|
51
|
+
const material = useAtomValue(matDetails.materialInDialogInfo);
|
|
52
|
+
const maxProc = useAtomValue(matDetails.materialInDialogLargestUsedProcess)?.process;
|
|
53
|
+
const [completeInsp, completeInspUpdating] = matDetails.useCompleteInspection();
|
|
54
|
+
const setMatToShow = useSetAtom(matDetails.materialDialogOpen);
|
|
55
|
+
if (material === null)
|
|
56
|
+
return null;
|
|
57
|
+
function markInspComplete(success) {
|
|
58
|
+
if (!material) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
completeInsp({
|
|
62
|
+
mat: material,
|
|
63
|
+
inspType: props.inspection_type,
|
|
64
|
+
success,
|
|
65
|
+
operator: operator,
|
|
66
|
+
});
|
|
67
|
+
setMatToShow(null);
|
|
68
|
+
}
|
|
69
|
+
const url = instructionUrl(material.partName, props.inspection_type, material.materialID, null, maxProc, operator);
|
|
70
|
+
return (_jsxs(_Fragment, { children: [material.partName !== "" ? (demo ? (_jsx(Button, { color: "primary", children: "Instructions" })) : (_jsx(Button, { href: url, target: "bms-instructions", color: "primary", children: "Instructions" }))) : undefined, _jsx(QuarantineMatButton, {}), _jsxs(Button, { color: "primary", disabled: completeInspUpdating, onClick: () => markInspComplete(true), children: ["Mark ", props.inspection_type, " Success"] }), _jsxs(Button, { color: "primary", disabled: completeInspUpdating, onClick: () => markInspComplete(false), children: ["Mark ", props.inspection_type, " Failed"] })] }));
|
|
71
|
+
}
|
|
72
|
+
function DialogBodyInspButtons({ focusInspectionType }) {
|
|
73
|
+
const material = useAtomValue(matDetails.materialInDialogInspections);
|
|
74
|
+
if (material === null || focusInspectionType || material.signaledInspections.length === 1)
|
|
75
|
+
return null;
|
|
76
|
+
return (_jsx(_Fragment, { children: material.signaledInspections.map((i) => (_jsx(DialogActions, { children: _jsx(InspButtons, { inspection_type: i }) }, i))) }));
|
|
77
|
+
}
|
|
78
|
+
function DialogActionInspButtons({ focusInspectionType }) {
|
|
79
|
+
const material = useAtomValue(matDetails.materialInDialogInspections);
|
|
80
|
+
let singleInspectionType;
|
|
81
|
+
if (focusInspectionType) {
|
|
82
|
+
singleInspectionType = focusInspectionType;
|
|
83
|
+
}
|
|
84
|
+
else if (material && material.signaledInspections.length === 1) {
|
|
85
|
+
singleInspectionType = material.signaledInspections[0];
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
return _jsx(InspButtons, { inspection_type: singleInspectionType });
|
|
91
|
+
}
|
|
92
|
+
const InspMaterialDialog = memo(function InspMaterialDialog(props) {
|
|
93
|
+
return (_jsx(MaterialDialog, { allowNote: true, extraDialogElements: _jsx(DialogBodyInspButtons, { focusInspectionType: props.focusInspectionType }), buttons: _jsx(DialogActionInspButtons, { focusInspectionType: props.focusInspectionType }) }));
|
|
94
|
+
});
|
|
95
|
+
export function Inspection({ focusInspectionType, forceSingleColumn }) {
|
|
96
|
+
const matSummary = useAtomValue(last30MaterialSummary);
|
|
97
|
+
const recent_inspections = useMemo(() => extractRecentInspections(matSummary.matsById, focusInspectionType), [matSummary, focusInspectionType]);
|
|
98
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Box, { sx: { display: forceSingleColumn ? undefined : { md: "flex" } }, children: [_jsxs(Box, { padding: "8px", sx: {
|
|
99
|
+
minHeight: forceSingleColumn ? undefined : { md: "calc(100vh - 64px)" },
|
|
100
|
+
width: forceSingleColumn ? "100%" : { md: "50vw" },
|
|
101
|
+
borderRight: forceSingleColumn ? undefined : { md: "1px solid black" },
|
|
102
|
+
borderBottom: forceSingleColumn ? "1px solid black" : { sm: "1px solid black", md: "none" },
|
|
103
|
+
}, children: [_jsx(Typography, { variant: "h4", children: "Parts to Inspect" }), _jsx(Box, { display: "flex", justifyContent: "flex-start", flexWrap: "wrap", children: recent_inspections.waiting_to_inspect.map((m, idx) => (_jsx(MatSummary, { mat: m, focusInspectionType: focusInspectionType, hideWarningIcon: true }, idx))) })] }), _jsxs(Box, { padding: "8px", sx: { width: forceSingleColumn ? "100%" : { md: "50vw" } }, children: [_jsx(Typography, { variant: "h4", children: "Recently Inspected" }), _jsx(Box, { display: "flex", justifyContent: "flex-start", flexWrap: "wrap", children: recent_inspections.inspect_completed.map((m, idx) => (_jsx(MatSummary, { mat: m, focusInspectionType: focusInspectionType, hideWarningIcon: true }, idx))) })] })] }), _jsx(InspMaterialDialog, { focusInspectionType: focusInspectionType })] }));
|
|
104
|
+
}
|
|
105
|
+
function extractRecentInspections(mats, inspType) {
|
|
106
|
+
const uninspectedCutoff = addDays(new Date(), -7);
|
|
107
|
+
const inspectedCutoff = addDays(new Date(), -1);
|
|
108
|
+
function checkAllCompleted(m) {
|
|
109
|
+
const comp = m.completedInspections;
|
|
110
|
+
if (comp === undefined) {
|
|
111
|
+
return m.signaledInspections.length === 0;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
return LazySeq.of(m.signaledInspections).every((s) => s in comp);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
const uninspected = Array.from(inspType === null
|
|
118
|
+
? mats
|
|
119
|
+
.valuesToLazySeq()
|
|
120
|
+
.filter((m) => m.last_unload_time !== undefined &&
|
|
121
|
+
m.last_unload_time >= uninspectedCutoff &&
|
|
122
|
+
m.signaledInspections.length > 0 &&
|
|
123
|
+
!checkAllCompleted(m))
|
|
124
|
+
: mats
|
|
125
|
+
.valuesToLazySeq()
|
|
126
|
+
.filter((m) => m.last_unload_time !== undefined &&
|
|
127
|
+
m.last_unload_time >= uninspectedCutoff &&
|
|
128
|
+
m.signaledInspections.includes(inspType) &&
|
|
129
|
+
(m.completedInspections || {})[inspType] === undefined));
|
|
130
|
+
// sort descending
|
|
131
|
+
uninspected.sort((e1, e2) => e1.last_unload_time && e2.last_unload_time
|
|
132
|
+
? e2.last_unload_time.getTime() - e1.last_unload_time.getTime()
|
|
133
|
+
: 0);
|
|
134
|
+
const inspected = Array.from(inspType === null
|
|
135
|
+
? mats
|
|
136
|
+
.valuesToLazySeq()
|
|
137
|
+
.filter((m) => m.completed_inspect_time !== undefined &&
|
|
138
|
+
m.completed_inspect_time >= inspectedCutoff &&
|
|
139
|
+
m.signaledInspections.length > 0 &&
|
|
140
|
+
checkAllCompleted(m))
|
|
141
|
+
: mats
|
|
142
|
+
.valuesToLazySeq()
|
|
143
|
+
.filter((m) => m.completed_inspect_time !== undefined &&
|
|
144
|
+
m.completed_inspect_time >= inspectedCutoff &&
|
|
145
|
+
m.signaledInspections.includes(inspType) &&
|
|
146
|
+
(m.completedInspections || {})[inspType] !== undefined));
|
|
147
|
+
// sort descending
|
|
148
|
+
inspected.sort((e1, e2) => e1.completed_inspect_time && e2.completed_inspect_time
|
|
149
|
+
? e2.completed_inspect_time.getTime() - e1.completed_inspect_time.getTime()
|
|
150
|
+
: 0);
|
|
151
|
+
return {
|
|
152
|
+
waiting_to_inspect: uninspected,
|
|
153
|
+
inspect_completed: inspected,
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
export default function InspectionPage(props) {
|
|
157
|
+
useSetTitle(props.focusInspectionType && props.focusInspectionType !== ""
|
|
158
|
+
? `Inspection ${props.focusInspectionType}`
|
|
159
|
+
: "Inspection");
|
|
160
|
+
return (_jsx(Box, { component: "main", sx: {
|
|
161
|
+
backgroundColor: "#F8F8F8",
|
|
162
|
+
minHeight: { sm: "calc(100vh - 64px - 40px)", md: "calc(100vh - 64px)" },
|
|
163
|
+
}, children: _jsx(Inspection, { ...props }) }));
|
|
164
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IInProcessMaterial } from "../../network/api.js";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
export type InvalidateCycleState = {
|
|
4
|
+
readonly process: number | null;
|
|
5
|
+
readonly changeRawMat: string | null;
|
|
6
|
+
readonly changeJobUnique: string | null;
|
|
7
|
+
readonly updating: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type InvalidateCycleProps = {
|
|
10
|
+
readonly st: InvalidateCycleState | null;
|
|
11
|
+
readonly setState: (s: InvalidateCycleState | null) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare function InvalidateCycleDialogContent(props: InvalidateCycleProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function InvalidateCycleDialogButton(props: InvalidateCycleProps & {
|
|
15
|
+
readonly onClose: () => void;
|
|
16
|
+
readonly ignoreOperator?: boolean;
|
|
17
|
+
readonly loadStation?: boolean;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
19
|
+
interface SwapMaterial {
|
|
20
|
+
readonly selectedMatToSwap: Readonly<IInProcessMaterial> | null;
|
|
21
|
+
readonly updating: boolean;
|
|
22
|
+
}
|
|
23
|
+
export type SwapMaterialState = SwapMaterial | null;
|
|
24
|
+
export interface SwapMaterialProps {
|
|
25
|
+
readonly st: SwapMaterialState;
|
|
26
|
+
readonly setState: (s: SwapMaterialState) => void;
|
|
27
|
+
}
|
|
28
|
+
export declare function SwapMaterialDialogContent(props: SwapMaterialProps): ReactNode;
|
|
29
|
+
export declare function SwapMaterialButtons(props: SwapMaterialProps & {
|
|
30
|
+
readonly onClose: () => void;
|
|
31
|
+
readonly ignoreOperator?: boolean;
|
|
32
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
33
|
+
export {};
|