@seedtactics/insight-client 16.8.1 → 16.8.3
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/dist/assets/index-BDPKYaRT.js +388 -0
- package/dist/components/BarcodeScanning.js +1 -1
- package/dist/components/ChooseOperator.js +1 -1
- package/dist/components/ErrorsAndLoading.js +1 -1
- package/dist/components/LoadingIcon.js +1 -1
- package/dist/components/LogEntry.js +25 -25
- package/dist/components/ManualSerialEntry.js +1 -1
- package/dist/components/MonthSelect.js +1 -1
- package/dist/components/Navigation.js +1 -1
- package/dist/components/analysis/BasketCycleCards.js +1 -1
- package/dist/components/analysis/CostPerPiece.js +1 -1
- package/dist/components/analysis/CycleChart.js +2 -2
- package/dist/components/analysis/DataTable.js +1 -1
- package/dist/components/analysis/HeatChart.js +1 -1
- package/dist/components/analysis/ScheduleHistory.js +1 -1
- package/dist/components/analysis/ToolReplacements.js +1 -1
- package/dist/components/operations/AllMaterial.js +1 -1
- package/dist/components/operations/ChartRangeEdit.js +1 -1
- package/dist/components/operations/CloseoutReport.js +1 -1
- package/dist/components/operations/CompletedParts.js +1 -1
- package/dist/components/operations/CurrentWorkorders.js +1 -1
- package/dist/components/operations/Dashboard.js +1 -1
- package/dist/components/operations/Outliers.js +1 -1
- package/dist/components/operations/Programs.js +1 -1
- package/dist/components/operations/Rebookings.js +1 -1
- package/dist/components/operations/RecentCycleChart.js +1 -1
- package/dist/components/operations/RecentSchedules.js +3 -3
- package/dist/components/operations/RecentStationCycles.js +1 -1
- package/dist/components/operations/SimDayUsage.js +1 -1
- package/dist/components/operations/ToolReport.js +4 -4
- package/dist/components/operations/WorkorderGantt.js +1 -1
- package/dist/components/quality/QualityMaterial.js +1 -1
- package/dist/components/quality/RecentFailedInspections.js +1 -1
- package/dist/components/station-monitor/BulkRawMaterial.js +1 -1
- package/dist/components/station-monitor/Closeout.js +1 -1
- package/dist/components/station-monitor/CustomStationMonitorDialog.js +1 -1
- package/dist/components/station-monitor/Inspection.js +1 -1
- package/dist/components/station-monitor/InvalidateCycle.js +1 -1
- package/dist/components/station-monitor/JobDetails.js +1 -1
- package/dist/components/station-monitor/LoadStation.js +5 -5
- package/dist/components/station-monitor/Material.js +3 -3
- package/dist/components/station-monitor/PrintedLabel.js +1 -1
- package/dist/components/station-monitor/QuarantineButton.js +1 -1
- package/dist/components/station-monitor/Queues.js +3 -3
- package/dist/components/station-monitor/QueuesAddMaterial.js +4 -4
- package/dist/components/station-monitor/SelectInspType.js +1 -1
- package/dist/components/station-monitor/SelectWorkorder.js +1 -1
- package/dist/components/station-monitor/SystemOverview.js +9 -7
- package/dist/data/all-material-bins.d.ts +1 -1
- package/dist/data/all-material-bins.js +5 -5
- package/dist/data/chart-times.d.ts +1 -1
- package/dist/data/current-cycles.js +3 -3
- package/dist/data/operators.d.ts +1 -1
- package/dist/data/tools-programs.d.ts +2 -2
- package/dist/index.html +1 -1
- package/dist/network/api.d.ts +57 -9
- package/dist/network/api.js +124 -8
- package/package.json +11 -11
- package/dist/assets/index-BGjv3-QV.js +0 -388
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/* Copyright (c) 2020, John Lenz
|
|
3
3
|
|
|
4
4
|
All rights reserved.
|
|
@@ -179,10 +179,10 @@ function display(props, fmsInfo) {
|
|
|
179
179
|
const entry = props.entry;
|
|
180
180
|
switch (entry.type) {
|
|
181
181
|
case api.LogType.LoadUnloadCycle:
|
|
182
|
-
return (_jsxs("span", { children: [displayMat(entry.material), " on", " ", _jsxs(ColoredSpan, {
|
|
182
|
+
return (_jsxs("span", { children: [displayMat(entry.material), " on", " ", _jsxs(ColoredSpan, { $type: "pallet", children: ["pallet ", entry.pal] }), " at", " ", _jsx(ColoredSpan, { $type: "loadStation", children: loadStationDisplayName(entry.locnum, fmsInfo.loadStationNames) })] }));
|
|
183
183
|
case api.LogType.BasketLoadUnload: {
|
|
184
184
|
const basketName = basketDisplayName(fmsInfo.basketName);
|
|
185
|
-
return (_jsxs("span", { children: [displayMat(entry.material), " ", entry.program === "LOAD" ? "loaded onto" : "unloaded from", " ", _jsxs(ColoredSpan, {
|
|
185
|
+
return (_jsxs("span", { children: [displayMat(entry.material), " ", entry.program === "LOAD" ? "loaded onto" : "unloaded from", " ", _jsxs(ColoredSpan, { $type: "pallet", children: [basketName, " ", entry.pal] }), " ", "at", " ", _jsx(ColoredSpan, { $type: "loadStation", children: loadStationDisplayName(entry.locnum, fmsInfo.loadStationNames) })] }));
|
|
186
186
|
}
|
|
187
187
|
case api.LogType.BasketCycle: {
|
|
188
188
|
const basketName = basketDisplayName(fmsInfo.basketName);
|
|
@@ -203,7 +203,7 @@ function display(props, fmsInfo) {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
case api.LogType.MachineCycle:
|
|
206
|
-
return (_jsxs("span", { children: [displayMat(entry.material), " on", " ", _jsxs(ColoredSpan, {
|
|
206
|
+
return (_jsxs("span", { children: [displayMat(entry.material), " on", " ", _jsxs(ColoredSpan, { $type: "pallet", children: ["pallet ", entry.pal] }), " at", " ", _jsxs(ColoredSpan, { $type: "machine", children: [entry.loc, " ", entry.locnum.toString()] }), entry.program && entry.program !== "" ? (_jsxs("span", { children: [" with program ", entry.program] })) : undefined] }));
|
|
207
207
|
case api.LogType.PartMark:
|
|
208
208
|
return (_jsxs("span", { children: [displayMat(entry.material), " marked with ", entry.result] }));
|
|
209
209
|
case api.LogType.OrderAssignment:
|
|
@@ -219,34 +219,34 @@ function display(props, fmsInfo) {
|
|
|
219
219
|
const inspName = (entry.details || {}).InspectionType || "";
|
|
220
220
|
const inspected = entry.result.toLowerCase() === "true" || entry.result === "1";
|
|
221
221
|
if (inspected) {
|
|
222
|
-
return (_jsxs("span", { children: [displayMat(entry.material), " signaled for inspection", " ", _jsx(ColoredSpan, {
|
|
222
|
+
return (_jsxs("span", { children: [displayMat(entry.material), " signaled for inspection", " ", _jsx(ColoredSpan, { $type: "inspectionSignaled", children: inspName })] }));
|
|
223
223
|
}
|
|
224
224
|
else {
|
|
225
|
-
return (_jsxs("span", { children: [displayMat(entry.material), " skipped inspection", " ", _jsx(ColoredSpan, {
|
|
225
|
+
return (_jsxs("span", { children: [displayMat(entry.material), " skipped inspection", " ", _jsx(ColoredSpan, { $type: "inspectionNotSignaled", children: inspName })] }));
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
case api.LogType.InspectionForce: {
|
|
229
229
|
const forceInspName = entry.program;
|
|
230
230
|
const forced = entry.result.toLowerCase() === "true" || entry.result === "1";
|
|
231
231
|
if (forced) {
|
|
232
|
-
return (_jsxs("span", { children: [displayMat(entry.material), " declared for inspection", " ", _jsx(ColoredSpan, {
|
|
232
|
+
return (_jsxs("span", { children: [displayMat(entry.material), " declared for inspection", " ", _jsx(ColoredSpan, { $type: "inspectionSignaled", children: forceInspName })] }));
|
|
233
233
|
}
|
|
234
234
|
else {
|
|
235
|
-
return (_jsxs("span", { children: [displayMat(entry.material), " passed over for inspection", " ", _jsx(ColoredSpan, {
|
|
235
|
+
return (_jsxs("span", { children: [displayMat(entry.material), " passed over for inspection", " ", _jsx(ColoredSpan, { $type: "inspectionNotSignaled", children: forceInspName })] }));
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
case api.LogType.WorkorderComment:
|
|
239
239
|
return _jsxs("span", { children: ["Workorder ", entry.result, " Comment"] });
|
|
240
240
|
case api.LogType.InspectionResult:
|
|
241
241
|
if (entry.result.toLowerCase() === "false") {
|
|
242
|
-
return _jsxs(ColoredSpan, {
|
|
242
|
+
return _jsxs(ColoredSpan, { $type: "inspectionSignaled", children: [entry.program, " Failed"] });
|
|
243
243
|
}
|
|
244
244
|
else {
|
|
245
|
-
return _jsxs(ColoredSpan, {
|
|
245
|
+
return _jsxs(ColoredSpan, { $type: "inspectionSignaled", children: [entry.program, " Succeeded"] });
|
|
246
246
|
}
|
|
247
247
|
case api.LogType.CloseOut:
|
|
248
248
|
if (entry.result.toLowerCase() === "failed") {
|
|
249
|
-
return (_jsxs(ColoredSpan, {
|
|
249
|
+
return (_jsxs(ColoredSpan, { $type: "closeoutFailed", children: [entry.program && entry.program !== "" ? entry.program : "CloseOut", " Failed"] }));
|
|
250
250
|
}
|
|
251
251
|
else {
|
|
252
252
|
return (_jsxs("span", { children: [entry.program && entry.program !== "" ? entry.program : "CloseOut", " Completed"] }));
|
|
@@ -254,36 +254,36 @@ function display(props, fmsInfo) {
|
|
|
254
254
|
case api.LogType.AddToQueue:
|
|
255
255
|
switch (entry.program) {
|
|
256
256
|
case "Unloaded":
|
|
257
|
-
return (_jsxs("span", { children: [displayQueueMat(entry.material), " unloaded into queue", " ", _jsx(ColoredSpan, {
|
|
257
|
+
return (_jsxs("span", { children: [displayQueueMat(entry.material), " unloaded into queue", " ", _jsx(ColoredSpan, { $type: "queue", children: entry.loc })] }));
|
|
258
258
|
case "SetByOperator":
|
|
259
|
-
return (_jsxs("span", { children: [displayQueueMat(entry.material), " set manually into queue", " ", _jsx(ColoredSpan, {
|
|
259
|
+
return (_jsxs("span", { children: [displayQueueMat(entry.material), " set manually into queue", " ", _jsx(ColoredSpan, { $type: "queue", children: entry.loc })] }));
|
|
260
260
|
case "Quarantine":
|
|
261
|
-
return (_jsxs("span", { children: [displayQueueMat(entry.material), " quarantined into queue", " ", _jsx(ColoredSpan, {
|
|
261
|
+
return (_jsxs("span", { children: [displayQueueMat(entry.material), " quarantined into queue", " ", _jsx(ColoredSpan, { $type: "queue", children: entry.loc })] }));
|
|
262
262
|
case "SwapMaterial":
|
|
263
|
-
return (_jsxs("span", { children: [displayQueueMat(entry.material), " swapped off pallet into queue", " ", _jsx(ColoredSpan, {
|
|
263
|
+
return (_jsxs("span", { children: [displayQueueMat(entry.material), " swapped off pallet into queue", " ", _jsx(ColoredSpan, { $type: "queue", children: entry.loc })] }));
|
|
264
264
|
case "MaterialMissingOnPallet":
|
|
265
|
-
return (_jsxs("span", { children: [displayQueueMat(entry.material), " removed from cell controller, added to queue", " ", _jsx(ColoredSpan, {
|
|
265
|
+
return (_jsxs("span", { children: [displayQueueMat(entry.material), " removed from cell controller, added to queue", " ", _jsx(ColoredSpan, { $type: "queue", children: entry.loc })] }));
|
|
266
266
|
default:
|
|
267
|
-
return (_jsxs("span", { children: [displayQueueMat(entry.material), " added to queue", " ", _jsx(ColoredSpan, {
|
|
267
|
+
return (_jsxs("span", { children: [displayQueueMat(entry.material), " added to queue", " ", _jsx(ColoredSpan, { $type: "queue", children: entry.loc }), entry.program && entry.program !== "" ? " (" + entry.program + ")" : undefined] }));
|
|
268
268
|
}
|
|
269
269
|
case api.LogType.RemoveFromQueue:
|
|
270
|
-
return (_jsxs("span", { children: [displayQueueMat(entry.material), " removed from queue", " ", _jsx(ColoredSpan, {
|
|
270
|
+
return (_jsxs("span", { children: [displayQueueMat(entry.material), " removed from queue", " ", _jsx(ColoredSpan, { $type: "queue", children: entry.loc })] }));
|
|
271
271
|
case api.LogType.PalletInStocker:
|
|
272
272
|
if (entry.startofcycle) {
|
|
273
|
-
return (_jsxs("span", { children: [_jsxs(ColoredSpan, {
|
|
273
|
+
return (_jsxs("span", { children: [_jsxs(ColoredSpan, { $type: "pallet", children: ["Pallet ", entry.pal] }), " arrived at stocker", " ", entry.locnum] }));
|
|
274
274
|
}
|
|
275
275
|
else {
|
|
276
|
-
return (_jsxs("span", { children: [_jsxs(ColoredSpan, {
|
|
276
|
+
return (_jsxs("span", { children: [_jsxs(ColoredSpan, { $type: "pallet", children: ["Pallet ", entry.pal] }), " departed stocker", " ", entry.locnum] }));
|
|
277
277
|
}
|
|
278
278
|
case api.LogType.PalletOnRotaryInbound:
|
|
279
279
|
if (entry.startofcycle) {
|
|
280
|
-
return (_jsxs("span", { children: [_jsxs(ColoredSpan, {
|
|
280
|
+
return (_jsxs("span", { children: [_jsxs(ColoredSpan, { $type: "pallet", children: ["Pallet ", entry.pal] }), " arrived at", " ", _jsxs(ColoredSpan, { $type: "machine", children: [entry.loc, " ", entry.locnum.toString()] })] }));
|
|
281
281
|
}
|
|
282
282
|
else if (entry.result == "RotateIntoWorktable") {
|
|
283
|
-
return (_jsxs("span", { children: [_jsxs(ColoredSpan, {
|
|
283
|
+
return (_jsxs("span", { children: [_jsxs(ColoredSpan, { $type: "pallet", children: ["Pallet ", entry.pal] }), " rotated into", " ", _jsxs(ColoredSpan, { $type: "machine", children: [entry.loc, " ", entry.locnum.toString()] }), " ", "worktable"] }));
|
|
284
284
|
}
|
|
285
285
|
else {
|
|
286
|
-
return (_jsxs("span", { children: [_jsxs(ColoredSpan, {
|
|
286
|
+
return (_jsxs("span", { children: [_jsxs(ColoredSpan, { $type: "pallet", children: ["Pallet ", entry.pal] }), " left", " ", _jsxs(ColoredSpan, { $type: "machine", children: [entry.loc, " ", entry.locnum.toString()] })] }));
|
|
287
287
|
}
|
|
288
288
|
case api.LogType.SignalQuarantine:
|
|
289
289
|
return _jsxs("span", { children: [displayMat(entry.material), " signaled for quarantine after unload"] });
|
|
@@ -368,9 +368,9 @@ export const LogEntry = memo(function LogEntry(props) {
|
|
|
368
368
|
const details = detailsForEntry(props.entry);
|
|
369
369
|
const highlight = props.highlightProcsGreaterOrEqualTo;
|
|
370
370
|
const fmsInfo = useAtomValue(fmsInformation);
|
|
371
|
-
return (_jsxs(_Fragment, { children: [_jsxs(LogEntryTableRow, {
|
|
371
|
+
return (_jsxs(_Fragment, { children: [_jsxs(LogEntryTableRow, { $highlightProc: highlight !== undefined &&
|
|
372
372
|
props.entry.material.findIndex((m) => m.proc >= highlight) >= 0 &&
|
|
373
|
-
logTypesToHighlight.indexOf(props.entry.type) >= 0,
|
|
373
|
+
logTypesToHighlight.indexOf(props.entry.type) >= 0, $invalidCycle: isLogEntryInvalidated(props.entry), children: [_jsx(TableCell, { size: "small", children: props.entry.endUTC.toLocaleDateString(undefined, {
|
|
374
374
|
month: "short",
|
|
375
375
|
day: "numeric",
|
|
376
376
|
year: "2-digit",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/* Copyright (c) 2022, John Lenz
|
|
3
3
|
|
|
4
4
|
All rights reserved.
|
|
@@ -267,7 +267,7 @@ function CycleChartSvg(props) {
|
|
|
267
267
|
containerWidth: props.containerWidth,
|
|
268
268
|
containerHeight: props.containerHeight,
|
|
269
269
|
});
|
|
270
|
-
return (_jsx("svg", { width: width, height: height, children: _jsxs("g", { transform: `translate(${marginLeft}, ${marginTop})`, children: [_jsx(AxisAndGrid, { xScale: xScale, yScale: yScale }), _jsx(StatsSeries, { median: props.median, plannedMinutes: props.plannedTimeMinutes, xScale: xScale, yScale: yScale }), _jsx(ChartMouseEvents, { setYZoom: props.setYZoom, setXZoom: props.set_date_zoom_range, xScale: xScale, setTooltip: props.showTooltip, yScale: yScale, highlightStart: props.highlightStart, setHighlightStart: props.setHighlightStart }), _jsx(NoPointerEvents, {
|
|
270
|
+
return (_jsx("svg", { width: width, height: height, children: _jsxs("g", { transform: `translate(${marginLeft}, ${marginTop})`, children: [_jsx(AxisAndGrid, { xScale: xScale, yScale: yScale }), _jsx(StatsSeries, { median: props.median, plannedMinutes: props.plannedTimeMinutes, xScale: xScale, yScale: yScale }), _jsx(ChartMouseEvents, { setYZoom: props.setYZoom, setXZoom: props.set_date_zoom_range, xScale: xScale, setTooltip: props.showTooltip, yScale: yScale, highlightStart: props.highlightStart, setHighlightStart: props.setHighlightStart }), _jsx(NoPointerEvents, { $noPtrEvents: props.highlightStart !== null, children: _jsx(AllPointsSeries, { series: props.series, disabledSeries: props.disabledSeries, xScale: xScale, yScale: yScale, showTooltip: props.showTooltip }) })] }) }));
|
|
271
271
|
}
|
|
272
272
|
export const CycleChart = memo(function CycleChart(props) {
|
|
273
273
|
// the state of the chart
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/* Copyright (c) 2022, John Lenz
|
|
3
3
|
|
|
4
4
|
All rights reserved.
|
|
@@ -73,7 +73,7 @@ function JobsRow(props) {
|
|
|
73
73
|
if (props.showMaterial)
|
|
74
74
|
colCnt += 1;
|
|
75
75
|
const job = props.job;
|
|
76
|
-
return (_jsxs(_Fragment, { children: [_jsxs(JobTableRow, {
|
|
76
|
+
return (_jsxs(_Fragment, { children: [_jsxs(JobTableRow, { $darkRow: props.showDarkRow && job.darkRow, children: [_jsx(TableCell, { children: job.routeStartTime.toLocaleString() }), _jsx(TableCell, { children: _jsxs(Box, { sx: {
|
|
77
77
|
display: "flex",
|
|
78
78
|
alignItems: "center",
|
|
79
79
|
}, children: [_jsx(Box, { sx: { mr: "0.2em" }, children: _jsx(PartIdenticon, { part: job.partName, size: 25 }) }), _jsx("div", { children: _jsx(Typography, { variant: "body2", component: "span", sx: {
|
|
@@ -83,7 +83,7 @@ function JobsRow(props) {
|
|
|
83
83
|
alignItems: "center",
|
|
84
84
|
}, children: [_jsx(Box, { sx: { mr: "0.2em" }, children: _jsx(PartIdenticon, { part: job.casting, size: 25 }) }), _jsx(Typography, { variant: "body2", sx: {
|
|
85
85
|
display: "block",
|
|
86
|
-
}, children: job.casting })] })) : undefined })) : undefined, _jsxs(TableCell, { children: [job.comment, _jsx(Tooltip, { title: "Edit", children: _jsx(IconButton, { size: "small", onClick: () => props.setCurEditNoteJob(job), children: _jsx(EditIcon, {}) }) })] }), _jsx(TableCell, { children: job.inProcJob === null ? "Archived" : "Active" }), _jsx(TableCell, { align: "right", children: job.scheduledQty }), _jsx(TableCell, { align: "right", sx: { backgroundColor: job.decrementedQty > 0 ? "#FF8A65" : undefined }, children: job.decrementedQty }), _jsx(TableCell, { align: "right", children: job.completedQty }), _jsx(TableCell, { align: "right", children: job.inProcessQty }), _jsx(TableCell, { align: "right", children: job.remainingQty }), _jsx(TableCell, { children: _jsx(Tooltip, { title: "Show Details", children: _jsx(IconButton, { size: "small", onClick: () => setOpen(!open), children: open ? _jsx(KeyboardArrowUpIcon, {}) : _jsx(KeyboardArrowDownIcon, {}) }) }) })] }), _jsx(JobDetailRow, {
|
|
86
|
+
}, children: job.casting })] })) : undefined })) : undefined, _jsxs(TableCell, { children: [job.comment, _jsx(Tooltip, { title: "Edit", children: _jsx(IconButton, { size: "small", onClick: () => props.setCurEditNoteJob(job), children: _jsx(EditIcon, {}) }) })] }), _jsx(TableCell, { children: job.inProcJob === null ? "Archived" : "Active" }), _jsx(TableCell, { align: "right", children: job.scheduledQty }), _jsx(TableCell, { align: "right", sx: { backgroundColor: job.decrementedQty > 0 ? "#FF8A65" : undefined }, children: job.decrementedQty }), _jsx(TableCell, { align: "right", children: job.completedQty }), _jsx(TableCell, { align: "right", children: job.inProcessQty }), _jsx(TableCell, { align: "right", children: job.remainingQty }), _jsx(TableCell, { children: _jsx(Tooltip, { title: "Show Details", children: _jsx(IconButton, { size: "small", onClick: () => setOpen(!open), children: open ? _jsx(KeyboardArrowUpIcon, {}) : _jsx(KeyboardArrowDownIcon, {}) }) }) })] }), _jsx(JobDetailRow, { $darkRow: props.showDarkRow && job.darkRow, children: _jsx(TableCell, { sx: { pb: "0", pt: "0" }, colSpan: colCnt, children: _jsx(Collapse, { in: open, timeout: "auto", unmountOnExit: true, children: _jsx(JobDetails, { job: job.inProcJob ? job.inProcJob : job.historicJob, checkAnalysisMonth: false }) }) }) })] }));
|
|
87
87
|
}
|
|
88
88
|
var SortColumn;
|
|
89
89
|
(function (SortColumn) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/* Copyright (c) 2022, John Lenz
|
|
3
3
|
|
|
4
4
|
All rights reserved.
|
|
@@ -129,7 +129,7 @@ function MachineDetailTable({ machines }) {
|
|
|
129
129
|
width: "auto",
|
|
130
130
|
ml: "10em",
|
|
131
131
|
mb: "1em",
|
|
132
|
-
}, children: [_jsx(TableHead, { children: _jsxs(TableRow, { children: [_jsx(TableCell, { children: "Machine" }), _jsx(TableCell, { align: "right", children: "Pocket" }), showSerial ? _jsx(TableCell, { children: "Serial" }) : undefined, _jsx(TableCell, { align: "right", children: "Current Use " }), _jsx(TableCell, { align: "right", children: "Lifetime " }), _jsx(TableCell, { align: "right", children: "Remaining Use " })] }) }), _jsxs(TableBody, { children: [byMachine.toAscLazySeq().map(([mach, tools]) => (_jsxs(Fragment, { children: [tools.valuesToAscLazySeq().map((m, idx) => (_jsxs(MachineDetailTableRow, {
|
|
132
|
+
}, children: [_jsx(TableHead, { children: _jsxs(TableRow, { children: [_jsx(TableCell, { children: "Machine" }), _jsx(TableCell, { align: "right", children: "Pocket" }), showSerial ? _jsx(TableCell, { children: "Serial" }) : undefined, _jsx(TableCell, { align: "right", children: "Current Use " }), _jsx(TableCell, { align: "right", children: "Lifetime " }), _jsx(TableCell, { align: "right", children: "Remaining Use " })] }) }), _jsxs(TableBody, { children: [byMachine.toAscLazySeq().map(([mach, tools]) => (_jsxs(Fragment, { children: [tools.valuesToAscLazySeq().map((m, idx) => (_jsxs(MachineDetailTableRow, { $borderBottom: anyHasSubtotal && tools.size === 1, children: [_jsx(TableCell, { children: m.machineName }), _jsx(TableCell, { align: "right", children: m.pocket }), showSerial ? _jsx(TableCell, { children: m.serial ?? "" }) : undefined, _jsx(TableCell, { align: "right", children: _jsx(FormatMinAndCnt, { min: m.currentUseMinutes, cnt: m.currentUseCnt }) }), _jsx(TableCell, { align: "right", children: _jsx(FormatMinAndCnt, { min: m.lifetimeMinutes, cnt: m.lifetimeCnt }) }), _jsx(TableCell, { align: "right", children: _jsx(FormatMinAndCnt, { min: m.remainingMinutes, cnt: m.remainingCnt, showZero: true }) })] }, idx))), byMachine.size > 1 && tools.size > 1 ? (_jsxs(MachineDetailTableRow, { $borderBottom: true, children: [_jsx(TableCell, { colSpan: showSerial ? 4 : 3 }), _jsx(TableCell, { children: "Subtotal" }), _jsx(TableCell, { align: "right", children: _jsx(FormatMinAndCnt, { min: tools.valuesToAscLazySeq().sumBy((m) => m.remainingMinutes ?? 0), cnt: tools.valuesToAscLazySeq().sumBy((m) => m.remainingCnt ?? 0) }) })] })) : undefined] }, mach))), _jsxs(TableRow, { children: [_jsx(TableCell, { colSpan: showSerial ? 4 : 3 }), _jsx(TableCell, { children: "Total" }), _jsx(TableCell, { align: "right", children: _jsx(FormatMinAndCnt, { min: LazySeq.of(machines).sumBy((m) => m.remainingMinutes ?? 0), cnt: LazySeq.of(machines).sumBy((m) => m.remainingCnt ?? 0) }) })] })] })] }));
|
|
133
133
|
}
|
|
134
134
|
function ToolSummaryHeader() {
|
|
135
135
|
const cntsWereEstimated = useAtomValue(toolReportEstimatedToolCounts);
|
|
@@ -160,7 +160,7 @@ function ToolSummaryRow({ tool }) {
|
|
|
160
160
|
}))
|
|
161
161
|
.minBy(({ remainCnt }) => remainCnt);
|
|
162
162
|
const numCols = 6;
|
|
163
|
-
return (_jsxs(_Fragment, { children: [_jsxs(ToolTableRow, {
|
|
163
|
+
return (_jsxs(_Fragment, { children: [_jsxs(ToolTableRow, { $noBorderBottom: true, $highlightedRow: schUseMin > totalRemainMin || schUseCnt > totalRemainCnt, $noticeRow: schUseMin <= totalRemainMin &&
|
|
164
164
|
schUseCnt <= totalRemainCnt &&
|
|
165
165
|
((minRemainMin && schUseMin > minRemainMin.remainMin) ||
|
|
166
166
|
(minRemainCnt && schUseCnt > minRemainCnt.remainCnt)), children: [_jsx(TableCell, { children: _jsx(IconButton, { size: "small", onClick: () => setOpen(!open), children: open ? _jsx(KeyboardArrowUpIcon, {}) : _jsx(KeyboardArrowDownIcon, {}) }) }), _jsx(TableCell, { children: tool.toolName }), _jsx(TableCell, { align: "right", children: _jsx(FormatMinAndCnt, { min: schUseMin, cnt: schUseCnt }) }), _jsx(TableCell, { align: "right", children: _jsx(FormatMinAndCnt, { min: totalRemainMin, cnt: totalRemainCnt }) }), _jsx(TableCell, { align: "right", children: _jsx(FormatMinAndCnt, { min: minRemainMin?.remainMin, cnt: minRemainCnt?.remainCnt, showZero: true, extraMin: minRemainMin?.mach, extraCnt: minRemainCnt?.mach }) }), _jsx(TableCell, {})] }), _jsx(TableRow, { children: _jsx(TableCell, { sx: { pb: "0", pt: "0" }, colSpan: numCols, children: _jsx(Collapse, { in: open, timeout: "auto", unmountOnExit: true, children: _jsxs(Box, { sx: {
|
|
@@ -189,7 +189,7 @@ function ToolMachineRow({ report, pocket }) {
|
|
|
189
189
|
const schCnts = LazySeq.of(report.parts)
|
|
190
190
|
.filter((p) => p.machines.has(pocket.machineName))
|
|
191
191
|
.sumBy((p) => p.scheduledUseCnt * p.quantity);
|
|
192
|
-
return (_jsxs(_Fragment, { children: [_jsxs(ToolTableRow, {
|
|
192
|
+
return (_jsxs(_Fragment, { children: [_jsxs(ToolTableRow, { $noBorderBottom: true, children: [_jsx(TableCell, { children: _jsx(IconButton, { size: "small", onClick: () => setOpen(!open), children: open ? _jsx(KeyboardArrowUpIcon, {}) : _jsx(KeyboardArrowDownIcon, {}) }) }), _jsx(TableCell, { children: report.toolName }), _jsx(TableCell, { align: "right", children: pocket.pocket }), showSerial ? _jsx(TableCell, { children: pocket.serial ?? "" }) : undefined, _jsx(TableCell, { align: "right", children: _jsx(FormatMinAndCnt, { min: schMins, cnt: schCnts }) }), _jsx(TableCell, { align: "right", children: _jsx(FormatMinAndCnt, { min: pocket.currentUseMinutes, cnt: pocket.currentUseCnt }) }), _jsx(TableCell, { align: "right", children: _jsx(FormatMinAndCnt, { min: pocket.lifetimeMinutes, cnt: pocket.lifetimeCnt }) }), _jsx(TableCell, { align: "right", children: _jsx(FormatMinAndCnt, { min: pocket.remainingMinutes, cnt: pocket.remainingCnt }) }), _jsx(TableCell, {})] }), _jsx(TableRow, { children: _jsx(TableCell, { sx: { pb: "0", pt: "0" }, colSpan: numCols, children: _jsx(Collapse, { in: open, timeout: "auto", unmountOnExit: true, children: _jsx(PartDetailTable, { tool: report, machine: pocket.machineName }) }) }) })] }));
|
|
193
193
|
}
|
|
194
194
|
const FilterAnyMachineKey = "__Insight__FilterAnyMachine__";
|
|
195
195
|
const toolReportMachineFilter = atom(null);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/* Copyright (c) 2025, John Lenz
|
|
3
3
|
|
|
4
4
|
All rights reserved.
|
|
@@ -93,12 +93,12 @@ function selectLoadStationAndQueueProps(loadNum, queues, curSt, hideNonLoading)
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
for (const basket of Object.values(curSt.baskets ?? {})) {
|
|
96
|
-
if (basket.locationNum !== loadNum)
|
|
96
|
+
if (basket.position.locationNum !== loadNum)
|
|
97
97
|
continue;
|
|
98
|
-
if (basket.location === api.BasketLocationEnum.LoadUnload) {
|
|
98
|
+
if (basket.position.location === api.BasketLocationEnum.LoadUnload) {
|
|
99
99
|
activeBasket = basket;
|
|
100
100
|
}
|
|
101
|
-
else if (basket.location === api.BasketLocationEnum.LoadStationStaging) {
|
|
101
|
+
else if (basket.position.location === api.BasketLocationEnum.LoadStationStaging) {
|
|
102
102
|
basketsToShow.add(basket.basketId);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -269,7 +269,7 @@ function selectLoadStationAndQueueProps(loadNum, queues, curSt, hideNonLoading)
|
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
queueMat.forEach((queue) => queue.mats.sort(mkCompareByProperties((mat) => mat.location.queuePosition ?? 0)));
|
|
272
|
-
basketMat.forEach((basket) => basket.mats.sort(mkCompareByProperties((mat) => mat.location.
|
|
272
|
+
basketMat.forEach((basket) => basket.mats.sort(mkCompareByProperties((mat) => mat.location.basketSlot ?? 0)));
|
|
273
273
|
const matCount = freeLoading.length + palFaces.valuesToAscLazySeq().sumBy((x) => x.length);
|
|
274
274
|
return {
|
|
275
275
|
pallet: pal,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/* Copyright (c) 2022, John Lenz
|
|
3
3
|
|
|
4
4
|
All rights reserved.
|
|
@@ -231,8 +231,8 @@ export function MaterialAction({ mat, displayActionForSinglePallet, fsize, }) {
|
|
|
231
231
|
case api.ActionType.UnloadToInProcess:
|
|
232
232
|
case api.ActionType.UnloadToCompletedMaterial:
|
|
233
233
|
if (mat.action.unloadToBasketId) {
|
|
234
|
-
return (_jsxs(MatCardDetail, { fsize: fsize, children: ["Unload to ", basketName, " ", mat.action.unloadToBasketId, mat.action.
|
|
235
|
-
? `
|
|
234
|
+
return (_jsxs(MatCardDetail, { fsize: fsize, children: ["Unload to ", basketName, " ", mat.action.unloadToBasketId, mat.action.unloadToBasketSlot !== undefined
|
|
235
|
+
? ` slot ${mat.action.unloadToBasketSlot + 1}`
|
|
236
236
|
: ""] }));
|
|
237
237
|
}
|
|
238
238
|
else if (mat.action.unloadIntoQueue) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
/* Copyright (c) 2022, John Lenz
|
|
3
3
|
|
|
4
4
|
All rights reserved.
|
|
@@ -91,7 +91,7 @@ function RawMaterialJobRow(props) {
|
|
|
91
91
|
const [open, setOpen] = useState(false);
|
|
92
92
|
const j = props.job;
|
|
93
93
|
const highlRow = highlightRow(j.job);
|
|
94
|
-
return (_jsxs(_Fragment, { children: [_jsxs(JobTableRow, {
|
|
94
|
+
return (_jsxs(_Fragment, { children: [_jsxs(JobTableRow, { $noBorderBottom: true, $highlightedRow: highlRow, $noncompletedRow: j.remainingToStart - j.assignedRaw > 0, children: [_jsx(TableCell, { children: _jsxs(Box, { sx: {
|
|
95
95
|
display: "flex",
|
|
96
96
|
alignItems: "center",
|
|
97
97
|
}, children: [_jsx(Box, { sx: { mr: "0.2em" }, children: _jsx(PartIdenticon, { part: j.job.partName, size: 25 }) }), _jsx("div", { children: _jsx(Typography, { variant: "body2", component: "span", sx: {
|
|
@@ -103,7 +103,7 @@ function RawMaterialJobRow(props) {
|
|
|
103
103
|
display: "block",
|
|
104
104
|
}, children: j.rawMatName })] })) }), _jsxs(TableCell, { children: [j.job.comment, _jsx(Tooltip, { title: "Edit", children: _jsx(IconButton, { size: "small", onClick: () => props.editNote(j.job), children: _jsx(EditIcon, {}) }) })] }), _jsxs(TableCell, { align: "right", children: [j.job.cycles ?? 0, allowEditQty ? (_jsx(Tooltip, { title: "Edit", children: _jsx(IconButton, { size: "small", onClick: () => props.editQty(j), children: _jsx(EditIcon, {}) }) })) : undefined] }), _jsx(TableCell, { align: "right", children: j.remainingToStart }), _jsx(TableCell, { align: "right", children: j.assignedRaw }), _jsx(TableCell, { align: "right", children: _jsx(Tooltip, { title: j.remainingToStart > 0 || j.assignedRaw > 0
|
|
105
105
|
? `${j.remainingToStart} - ${j.assignedRaw}`
|
|
106
|
-
: "", children: _jsx("span", { children: Math.max(j.remainingToStart - j.assignedRaw, 0) }) }) }), _jsx(TableCell, { align: "right", children: j.availableUnassigned }), _jsx(TableCell, { children: _jsx(Tooltip, { title: "Show Details", children: _jsx(IconButton, { size: "small", onClick: () => setOpen(!open), children: open ? _jsx(KeyboardArrowUpIcon, {}) : _jsx(KeyboardArrowDownIcon, {}) }) }) })] }), _jsx(JobTableRow, {
|
|
106
|
+
: "", children: _jsx("span", { children: Math.max(j.remainingToStart - j.assignedRaw, 0) }) }) }), _jsx(TableCell, { align: "right", children: j.availableUnassigned }), _jsx(TableCell, { children: _jsx(Tooltip, { title: "Show Details", children: _jsx(IconButton, { size: "small", onClick: () => setOpen(!open), children: open ? _jsx(KeyboardArrowUpIcon, {}) : _jsx(KeyboardArrowDownIcon, {}) }) }) })] }), _jsx(JobTableRow, { $highlightedRow: highlRow, $noncompletedRow: j.remainingToStart - j.assignedRaw > 0, children: _jsx(TableCell, { sx: { pb: "0", pt: "0" }, colSpan: 10, children: _jsx(Collapse, { in: open, timeout: "auto", unmountOnExit: true, children: _jsx(JobDetails, { job: j.job, checkAnalysisMonth: false }) }) }) })] }));
|
|
107
107
|
}
|
|
108
108
|
function RawMaterialJobTable(props) {
|
|
109
109
|
const currentSt = useAtomValue(currentStatus);
|