|
@ -68,7 +68,37 @@ const setTemperature = (id: string) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const addLiquidVisible = ref(false) |
|
|
const addLiquidVisible = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const filled_solution = async () => { |
|
|
|
|
|
if (!systemStore.systemStatus.solutionModule.idle) { |
|
|
|
|
|
FtMessage.warning('加液区正在工作,请稍后操作') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
currentCommandId = Date.now().toString() |
|
|
|
|
|
const params = { |
|
|
|
|
|
commandId: currentCommandId, |
|
|
|
|
|
command: 'filled_solution', |
|
|
|
|
|
params: { }, |
|
|
|
|
|
} |
|
|
|
|
|
await homeStore.sendControl(params) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const addLiquid = async () => { |
|
|
const addLiquid = async () => { |
|
|
|
|
|
if (!systemStore.systemStatus.solutionModule.idle) { |
|
|
|
|
|
FtMessage.warning('加液区正在工作,请稍后操作') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
await ElMessageBox.confirm( |
|
|
|
|
|
'管路是否已预充?', |
|
|
|
|
|
'提示', |
|
|
|
|
|
{ |
|
|
|
|
|
confirmButtonText: '确认', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
showClose: false, |
|
|
|
|
|
closeOnClickModal: false, |
|
|
|
|
|
type: 'warning', |
|
|
|
|
|
}, |
|
|
|
|
|
) |
|
|
await ElMessageBox.confirm( |
|
|
await ElMessageBox.confirm( |
|
|
'请确认加液区是否有托盘?', |
|
|
'请确认加液区是否有托盘?', |
|
|
'提示', |
|
|
'提示', |
|
@ -125,6 +155,10 @@ const move_to_heat_area = async () => { |
|
|
FtMessage.warning('请选择一个加热区') |
|
|
FtMessage.warning('请选择一个加热区') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
if (systemStore.systemStatus.heatModule.find(item => item.moduleCode === selectedHeatAreas[0].value)?.trayStatus === 1) { |
|
|
|
|
|
FtMessage.warning('所选加热区有托盘') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
await ElMessageBox.confirm( |
|
|
await ElMessageBox.confirm( |
|
|
'请确认加液区是否有托盘?', |
|
|
'请确认加液区是否有托盘?', |
|
|
'提示', |
|
|
'提示', |
|
@ -154,6 +188,10 @@ const move_to_solution_area = async () => { |
|
|
FtMessage.warning('请选择一个加热区') |
|
|
FtMessage.warning('请选择一个加热区') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
if (systemStore.systemStatus.heatModule.find(item => item.moduleCode === selectedHeatAreas[0].value)?.trayStatus === 0) { |
|
|
|
|
|
FtMessage.warning('所选加热区无托盘') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
await ElMessageBox.confirm( |
|
|
await ElMessageBox.confirm( |
|
|
'请确认加液区无托盘?', |
|
|
'请确认加液区无托盘?', |
|
|
'提示', |
|
|
'提示', |
|
@ -190,6 +228,10 @@ const heat_start = async () => { |
|
|
FtMessage.warning('请先设置温度') |
|
|
FtMessage.warning('请先设置温度') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
if (systemStore.systemStatus.heatModule.find(item => item.moduleCode === selectedHeatAreas[0].value)?.heating) { |
|
|
|
|
|
FtMessage.warning('已经在加热了') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
currentCommandId = Date.now().toString() |
|
|
currentCommandId = Date.now().toString() |
|
|
const params = { |
|
|
const params = { |
|
|
commandId: currentCommandId, |
|
|
commandId: currentCommandId, |
|
@ -208,6 +250,10 @@ const heat_stop = async () => { |
|
|
FtMessage.warning('请选择一个加热区') |
|
|
FtMessage.warning('请选择一个加热区') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
if (!systemStore.systemStatus.heatModule.find(item => item.moduleCode === selectedHeatAreas[0].value)?.heating) { |
|
|
|
|
|
FtMessage.warning('加热区未加热') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
currentCommandId = Date.now().toString() |
|
|
currentCommandId = Date.now().toString() |
|
|
const params = { |
|
|
const params = { |
|
|
commandId: currentCommandId, |
|
|
commandId: currentCommandId, |
|
@ -225,6 +271,10 @@ const tray_up = async () => { |
|
|
FtMessage.warning('请选择一个加热区') |
|
|
FtMessage.warning('请选择一个加热区') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
if (systemStore.systemStatus.heatModule.find(item => item.moduleCode === selectedHeatAreas[0].value)?.trayUp === 1) { |
|
|
|
|
|
FtMessage.warning('托盘已抬起') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
currentCommandId = Date.now().toString() |
|
|
currentCommandId = Date.now().toString() |
|
|
const params = { |
|
|
const params = { |
|
|
commandId: currentCommandId, |
|
|
commandId: currentCommandId, |
|
@ -242,6 +292,10 @@ const tray_down = async () => { |
|
|
FtMessage.warning('请选择一个加热区') |
|
|
FtMessage.warning('请选择一个加热区') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
if (systemStore.systemStatus.heatModule.find(item => item.moduleCode === selectedHeatAreas[0].value)?.trayUp === 0) { |
|
|
|
|
|
FtMessage.warning('托盘已降下') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
currentCommandId = Date.now().toString() |
|
|
currentCommandId = Date.now().toString() |
|
|
const params = { |
|
|
const params = { |
|
|
commandId: currentCommandId, |
|
|
commandId: currentCommandId, |
|
@ -254,6 +308,10 @@ const tray_down = async () => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const shake_start = async () => { |
|
|
const shake_start = async () => { |
|
|
|
|
|
if (systemStore.systemStatus.solutionModule.shaking) { |
|
|
|
|
|
FtMessage.warning('已经在摇匀了') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
currentCommandId = Date.now().toString() |
|
|
currentCommandId = Date.now().toString() |
|
|
const params = { |
|
|
const params = { |
|
|
commandId: currentCommandId, |
|
|
commandId: currentCommandId, |
|
@ -265,6 +323,10 @@ const shake_start = async () => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const shake_stop = async () => { |
|
|
const shake_stop = async () => { |
|
|
|
|
|
if (!systemStore.systemStatus.solutionModule.shaking) { |
|
|
|
|
|
FtMessage.warning('加液区没有在摇匀') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
currentCommandId = Date.now().toString() |
|
|
currentCommandId = Date.now().toString() |
|
|
const params = { |
|
|
const params = { |
|
|
commandId: currentCommandId, |
|
|
commandId: currentCommandId, |
|
@ -341,7 +403,12 @@ const take_photo = async () => { |
|
|
<!-- </el-col> --> |
|
|
<!-- </el-col> --> |
|
|
<!-- </el-row> --> |
|
|
<!-- </el-row> --> |
|
|
<el-row :gutter="10"> |
|
|
<el-row :gutter="10"> |
|
|
<el-col :span="24"> |
|
|
|
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
|
<ft-button :click-handle="filled_solution"> |
|
|
|
|
|
预充管路 |
|
|
|
|
|
</ft-button> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
<el-col :span="12"> |
|
|
<ft-button @click="addLiquid"> |
|
|
<ft-button @click="addLiquid"> |
|
|
添加溶液 |
|
|
添加溶液 |
|
|
</ft-button> |
|
|
</ft-button> |
|
|