Update logging DPELP
This commit is contained in:
parent
f71f18393e
commit
cbbfd4b1df
|
|
@ -452,6 +452,10 @@ export default class LineConnection {
|
|||
data,
|
||||
})
|
||||
if (script?.title === 'DPELP') this.dataDPELP = result
|
||||
console.log(
|
||||
`DPELP DATA line ${this.config.lineNumber} of ${this.config.stationName}:`,
|
||||
this.dataDPELP
|
||||
)
|
||||
if (this.config.latestScenario)
|
||||
this.config.latestScenario = { ...this.config.latestScenario, detectAI: detectLog }
|
||||
this.config.data = data
|
||||
|
|
|
|||
|
|
@ -296,7 +296,11 @@ const CardLine = ({
|
|||
)}
|
||||
{line?.inventory?.pid && line?.inventory?.sn && (
|
||||
<CopyIcon
|
||||
value={`Line ${line.lineNumber || line.line_number || ""}: ${line.inventory?.pid}${line.inventory?.vid ? ` ${line.inventory.vid}` : ""} - ${line.inventory?.sn}`}
|
||||
value={`Line ${
|
||||
line.lineNumber || line.line_number || ""
|
||||
}: ${line.inventory?.pid}${
|
||||
line.inventory?.vid ? ` ${line.inventory.vid}` : ""
|
||||
} - ${line.inventory?.sn}`}
|
||||
label="Copy PID + SN"
|
||||
copiedLabel="Copied PID + SN"
|
||||
color="grape"
|
||||
|
|
@ -526,6 +530,33 @@ const CardLine = ({
|
|||
</Flex>
|
||||
</Menu.Dropdown>
|
||||
</Menu>
|
||||
<Button
|
||||
disabled={isDisabled}
|
||||
variant="outline"
|
||||
color="red"
|
||||
// size="xs"
|
||||
className={classes.buttonMenuTool}
|
||||
onClick={() => {
|
||||
if (!line?.lineClear && !line?.line_clear) {
|
||||
notifications.show({
|
||||
title: "Error",
|
||||
message: "Clear line has not been configured",
|
||||
color: "red",
|
||||
});
|
||||
return;
|
||||
}
|
||||
socket?.emit("clear_line", {
|
||||
lineClear: line?.lineClear || line?.line_clear,
|
||||
stationId: stationItem?.id,
|
||||
});
|
||||
setIsDisabled(true);
|
||||
setTimeout(() => {
|
||||
setIsDisabled(false);
|
||||
}, 3000);
|
||||
}}
|
||||
>
|
||||
Clear line
|
||||
</Button>
|
||||
<Flex justify={"space-between"} direction={"column"}>
|
||||
<hr style={{ width: "100%" }} />
|
||||
<Box style={{ textAlign: "center" }}>
|
||||
|
|
|
|||
Loading…
Reference in New Issue