|
|
@ -10,6 +10,7 @@ import StartClean from 'components/home/StartClean/index.vue' |
|
|
|
import StartExperiment from 'components/home/StartExperiment/index.vue' |
|
|
|
|
|
|
|
import Tube from 'components/home/Tube/index.vue' |
|
|
|
import { ElMessageBox } from 'element-plus' |
|
|
|
import { FtMessage } from 'libs/message' |
|
|
|
import { socket } from 'libs/socket' |
|
|
|
import { cmdNameMap, formatDateTime } from 'libs/utils' |
|
|
@ -133,6 +134,63 @@ const commandHandle = async (command: string, params?: unknown) => { |
|
|
|
} |
|
|
|
await homeStore.sendControl(data) |
|
|
|
} |
|
|
|
|
|
|
|
const move_to_liquid_area = async () => { |
|
|
|
if (!selectedHeatArea.value?.value) { |
|
|
|
await ElMessageBox.confirm( |
|
|
|
'是否要将上料区托盘移至加液位? ', |
|
|
|
'提示', |
|
|
|
{ |
|
|
|
confirmButtonText: '确认', |
|
|
|
showClose: false, |
|
|
|
showCancelButton: false, |
|
|
|
closeOnClickModal: false, |
|
|
|
closeOnPressEscape: false, |
|
|
|
type: 'warning', |
|
|
|
customClass: 'init-message', |
|
|
|
}, |
|
|
|
) |
|
|
|
} |
|
|
|
await commandHandle('move_to_liquid_area', { heatModuleCode: selectedHeatArea.value?.value }) |
|
|
|
} |
|
|
|
|
|
|
|
const move_to_feed_area = async () => { |
|
|
|
if (!selectedHeatArea.value?.value) { |
|
|
|
await ElMessageBox.confirm( |
|
|
|
'是否要将加液位托盘移至上料区? ', |
|
|
|
'提示', |
|
|
|
{ |
|
|
|
confirmButtonText: '确认', |
|
|
|
showClose: false, |
|
|
|
showCancelButton: false, |
|
|
|
closeOnClickModal: false, |
|
|
|
closeOnPressEscape: false, |
|
|
|
type: 'warning', |
|
|
|
customClass: 'init-message', |
|
|
|
}, |
|
|
|
) |
|
|
|
} |
|
|
|
await commandHandle('move_to_feed_area', { heatModuleCode: selectedHeatArea.value?.value }) |
|
|
|
} |
|
|
|
|
|
|
|
const move_to_anneal_area = async () => { |
|
|
|
if (!selectedHeatArea.value?.value) { |
|
|
|
await ElMessageBox.confirm( |
|
|
|
'是否要将加液位或上料区的托盘移至退火区? ', |
|
|
|
'提示', |
|
|
|
{ |
|
|
|
confirmButtonText: '确认', |
|
|
|
showClose: false, |
|
|
|
showCancelButton: false, |
|
|
|
closeOnClickModal: false, |
|
|
|
closeOnPressEscape: false, |
|
|
|
type: 'warning', |
|
|
|
customClass: 'init-message', |
|
|
|
}, |
|
|
|
) |
|
|
|
} |
|
|
|
await commandHandle('move_to_anneal_area', { heatModuleCode: selectedHeatArea.value?.value }) |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
@ -156,13 +214,13 @@ const commandHandle = async (command: string, params?: unknown) => { |
|
|
|
移至加热位 |
|
|
|
</ft-button> |
|
|
|
|
|
|
|
<ft-button size="large" :click-handle="() => commandHandle('move_to_liquid_area', { heatModuleCode: selectedHeatArea!.value })" :disabled="!selectedHeatArea"> |
|
|
|
移至加/排液位 |
|
|
|
<ft-button size="large" :click-handle="move_to_liquid_area"> |
|
|
|
移至加液位 |
|
|
|
</ft-button> |
|
|
|
<ft-button size="large" :click-handle="() => commandHandle('move_to_feed_area', { heatModuleCode: selectedHeatArea!.value })" :disabled="!selectedHeatArea"> |
|
|
|
移至上/下料区 |
|
|
|
<ft-button size="large" :click-handle="move_to_feed_area"> |
|
|
|
移至上料区 |
|
|
|
</ft-button> |
|
|
|
<ft-button size="large" :click-handle="() => commandHandle('move_to_anneal_area', { heatModuleCode: selectedHeatArea?.value || undefined })"> |
|
|
|
<ft-button size="large" :click-handle="move_to_anneal_area"> |
|
|
|
移至退火位 |
|
|
|
</ft-button> |
|
|
|
</div> |
|
|
@ -240,16 +298,14 @@ const commandHandle = async (command: string, params?: unknown) => { |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<div style="display: grid; gap: 10px; grid-template-columns: repeat(1, 1fr);grid-template-rows: repeat(3, 1fr);height: 100%"> |
|
|
|
<ft-button size="large" :click-handle="() => commandHandle('x_origin')"> |
|
|
|
x轴回原点 |
|
|
|
<ft-button size="large" :click-handle="() => commandHandle('liquid_motor_origin')"> |
|
|
|
加液臂回原点 |
|
|
|
</ft-button> |
|
|
|
|
|
|
|
<ft-button size="large" :click-handle="() => commandHandle('z_origin')"> |
|
|
|
z轴回原点 |
|
|
|
</ft-button> |
|
|
|
|
|
|
|
<ft-button size="large" :click-handle="() => commandHandle('liquid_motor_origin')"> |
|
|
|
加液臂回原点 |
|
|
|
<ft-button size="large" :click-handle="() => commandHandle('x_origin')"> |
|
|
|
x轴回原点 |
|
|
|
</ft-button> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|