|
|
@ -156,7 +156,8 @@ const dehumidifierStart = () => { |
|
|
|
FtMessage.error('取消除湿') |
|
|
|
}) |
|
|
|
} |
|
|
|
const cleanRemainingTime = computed(() => systemStore.cleanRemainingTime) |
|
|
|
const syringeCleanRemainingTime = computed(() => systemStore.syringeCleanTimerId.remainingTime) |
|
|
|
const nozzleCleanRemainingTime = computed(() => systemStore.nozzleCleanTimerId.remainingTime) |
|
|
|
const syringePipelineWashRef = ref() |
|
|
|
const syringePipelineWash = async () => { |
|
|
|
if (!clearSpeed.value) { |
|
|
@ -187,24 +188,16 @@ const syringePipelineWash = async () => { |
|
|
|
console.log('sendControl', params) |
|
|
|
await sendControl(params) |
|
|
|
syringePipelineWashRef.value.setLoading(false) |
|
|
|
systemStore.startCleanTimer() |
|
|
|
systemStore.startSyringeCleanTimer() |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
FtMessage.error('取消清洗') |
|
|
|
systemStore.stopCleanTimer() |
|
|
|
systemStore.stopSyringeCleanTimer() |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const nozzlePipelineWashRef = ref() |
|
|
|
const nozzlePipelineWash = () => { |
|
|
|
if (!clearSpeed.value) { |
|
|
|
FtMessage.error('请输入清洗速度') |
|
|
|
return |
|
|
|
} |
|
|
|
if (clearSpeed.value > 100) { |
|
|
|
FtMessage.error('清洗速度最大为100 uL/min') |
|
|
|
return |
|
|
|
} |
|
|
|
ElMessageBox({ |
|
|
|
title: '提示', |
|
|
|
message: h('div', null, [h('p', null, '请检查废液瓶是否已满 '), h('p', null, '请检查设备内是否有异物')]), |
|
|
@ -218,19 +211,18 @@ const nozzlePipelineWash = () => { |
|
|
|
cmdCode: 'nozzle_pipeline_wash', |
|
|
|
cmdId: '', |
|
|
|
params: { |
|
|
|
speed: clearSpeed.value, |
|
|
|
}, |
|
|
|
} |
|
|
|
try { |
|
|
|
await sendControl(params) |
|
|
|
} |
|
|
|
finally { |
|
|
|
nozzlePipelineWashRef.value.setLoading(false) |
|
|
|
} |
|
|
|
await sendControl(params) |
|
|
|
nozzlePipelineWashRef.value.setLoading(false) |
|
|
|
systemStore.startNozzleCleanTimer() |
|
|
|
}).catch((e) => { |
|
|
|
console.log(e) |
|
|
|
FtMessage.error('取消清洗') |
|
|
|
systemStore.stopSyringeCleanTimer() |
|
|
|
}) |
|
|
|
} |
|
|
|
console.log(nozzlePipelineWash) |
|
|
|
const preRemainingTime = computed(() => systemStore.preRemainingTime) |
|
|
|
const preRemainingTime = computed(() => systemStore.preTimerId.remainingTime) |
|
|
|
const matrixPrefillRef = ref() |
|
|
|
const matrixPrefill = () => { |
|
|
|
if (!speed.value) { |
|
|
@ -268,12 +260,20 @@ const matrixPrefill = () => { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const pipelineWashStop = async () => { |
|
|
|
const syringePipelineWashStop = async () => { |
|
|
|
const params = { |
|
|
|
cmdCode: 'syringe_pipeline_wash_stop', |
|
|
|
cmdId: '', |
|
|
|
} |
|
|
|
systemStore.stopCleanTimer() |
|
|
|
systemStore.stopSyringeCleanTimer() |
|
|
|
await sendControl(params) |
|
|
|
} |
|
|
|
const nozzlePipelineWashStop = async () => { |
|
|
|
const params = { |
|
|
|
cmdCode: 'nozzle_pipeline_wash_stop', |
|
|
|
cmdId: '', |
|
|
|
} |
|
|
|
systemStore.stopNozzleCleanTimer() |
|
|
|
await sendControl(params) |
|
|
|
} |
|
|
|
|
|
|
@ -317,7 +317,7 @@ const nozzleStop = async () => { |
|
|
|
<div class="num-box"> |
|
|
|
1 |
|
|
|
</div> |
|
|
|
<span> 清洗管道</span> |
|
|
|
<span> 清洗注射器管道</span> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<div style="display: flex; align-items: center; margin-top: 10px"> |
|
|
@ -339,30 +339,62 @@ const nozzleStop = async () => { |
|
|
|
> |
|
|
|
清洗注射器管路 |
|
|
|
</ft-button> |
|
|
|
<!-- <ft-button --> |
|
|
|
<!-- ref="nozzlePipelineWashRef" type="primary" :click-handle="nozzlePipelineWash" :disabled="systemStore.systemStatus.spraying --> |
|
|
|
<!-- || systemStore.systemStatus.cleaningSyringePipeline --> |
|
|
|
<!-- || systemStore.systemStatus.cleaningNozzlePipeline --> |
|
|
|
<!-- || systemStore.systemStatus.prefilling" --> |
|
|
|
<!-- > --> |
|
|
|
<!-- 清洗喷嘴管路 --> |
|
|
|
<!-- </ft-button> --> |
|
|
|
<ft-button |
|
|
|
:click-handle="pipelineWashStop" |
|
|
|
:click-handle="syringePipelineWashStop" |
|
|
|
:disabled="!systemStore.systemStatus.cleaningSyringePipeline" |
|
|
|
> |
|
|
|
停止清洗 |
|
|
|
</ft-button> |
|
|
|
<ft-button :disabled="true"> |
|
|
|
<span> 计时 {{ syringeCleanRemainingTime }}</span> |
|
|
|
</ft-button> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
<el-card> |
|
|
|
<template #header> |
|
|
|
<div class="card-header"> |
|
|
|
<div class="num-box"> |
|
|
|
2 |
|
|
|
</div> |
|
|
|
<span> 清洗喷嘴管道</span> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<div style="display: flex; align-items: center; margin-top: 10px"> |
|
|
|
<div v-show="false" style="display: flex; align-items: center; width: fit-content; margin-right: 30px;"> |
|
|
|
<span>清洗速度</span> |
|
|
|
<el-input type="number" style="width: 100px; margin: 0 10px" /> |
|
|
|
<span>uL/min</span> |
|
|
|
</div> |
|
|
|
<ft-button |
|
|
|
ref="nozzlePipelineWashRef" |
|
|
|
type="primary" |
|
|
|
:click-handle="nozzlePipelineWash" |
|
|
|
:disabled=" |
|
|
|
!systemStore.systemStatus.cleaningSyringePipeline && !systemStore.systemStatus.cleaningNozzlePipeline |
|
|
|
systemStore.systemStatus.spraying |
|
|
|
|| systemStore.systemStatus.cleaningSyringePipeline |
|
|
|
|| systemStore.systemStatus.cleaningNozzlePipeline |
|
|
|
|| systemStore.systemStatus.prefilling |
|
|
|
" |
|
|
|
> |
|
|
|
清洗喷嘴管路 |
|
|
|
</ft-button> |
|
|
|
<ft-button |
|
|
|
:click-handle="nozzlePipelineWashStop" |
|
|
|
:disabled="!systemStore.systemStatus.cleaningNozzlePipeline |
|
|
|
" |
|
|
|
> |
|
|
|
停止清洗 |
|
|
|
</ft-button> |
|
|
|
<span> 清洗计时: {{ cleanRemainingTime }}</span> |
|
|
|
<ft-button :disabled="true"> |
|
|
|
<span> 计时 {{ nozzleCleanRemainingTime }}</span> |
|
|
|
</ft-button> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
<el-card> |
|
|
|
<template #header> |
|
|
|
<div class="card-header"> |
|
|
|
<div class="num-box"> |
|
|
|
2 |
|
|
|
3 |
|
|
|
</div> |
|
|
|
<span> 预充管道</span> |
|
|
|
</div> |
|
|
@ -389,14 +421,16 @@ const nozzleStop = async () => { |
|
|
|
<ft-button :click-handle="matrixPrefillStop" :disabled="!systemStore.systemStatus.prefilling"> |
|
|
|
结束预充 |
|
|
|
</ft-button> |
|
|
|
<span> 预充计时: {{ preRemainingTime }}</span> |
|
|
|
<ft-button :disabled="true"> |
|
|
|
<span> 计时 {{ preRemainingTime }}</span> |
|
|
|
</ft-button> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
<el-card> |
|
|
|
<template #header> |
|
|
|
<div class="card-header"> |
|
|
|
<div class="num-box"> |
|
|
|
3 |
|
|
|
4 |
|
|
|
</div> |
|
|
|
<span> 环境设置</span> |
|
|
|
</div> |
|
|
|