|
@ -3,7 +3,7 @@ import { ElMessageBox } from 'element-plus' |
|
|
import { FtMessage } from 'libs/message' |
|
|
import { FtMessage } from 'libs/message' |
|
|
import { sendControl } from 'libs/utils' |
|
|
import { sendControl } from 'libs/utils' |
|
|
import { useSystemStore } from 'stores/useSystemStore' |
|
|
import { useSystemStore } from 'stores/useSystemStore' |
|
|
import { h, ref } from 'vue' |
|
|
|
|
|
|
|
|
import { computed, h, ref } from 'vue' |
|
|
import { useRouter } from 'vue-router' |
|
|
import { useRouter } from 'vue-router' |
|
|
|
|
|
|
|
|
const router = useRouter() |
|
|
const router = useRouter() |
|
@ -72,7 +72,7 @@ const dehumidifierStart = () => { |
|
|
FtMessage.error('取消除湿') |
|
|
FtMessage.error('取消除湿') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const cleanRemainingTime = computed(() => systemStore.cleanRemainingTime) |
|
|
const syringePipelineWashRef = ref() |
|
|
const syringePipelineWashRef = ref() |
|
|
const syringePipelineWash = async () => { |
|
|
const syringePipelineWash = async () => { |
|
|
if (!clearSpeed.value) { |
|
|
if (!clearSpeed.value) { |
|
@ -103,9 +103,11 @@ const syringePipelineWash = async () => { |
|
|
console.log('sendControl', params) |
|
|
console.log('sendControl', params) |
|
|
await sendControl(params) |
|
|
await sendControl(params) |
|
|
syringePipelineWashRef.value.setLoading(false) |
|
|
syringePipelineWashRef.value.setLoading(false) |
|
|
|
|
|
systemStore.startCleanTimer() |
|
|
}) |
|
|
}) |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
|
FtMessage.error('取消清洗') |
|
|
FtMessage.error('取消清洗') |
|
|
|
|
|
systemStore.stopCleanTimer() |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -126,8 +128,7 @@ const nozzlePipelineWash = () => { |
|
|
cancelButtonText: '取消', |
|
|
cancelButtonText: '取消', |
|
|
showCancelButton: true, |
|
|
showCancelButton: true, |
|
|
showClose: false, |
|
|
showClose: false, |
|
|
}) |
|
|
|
|
|
.then(async () => { |
|
|
|
|
|
|
|
|
}).then(async () => { |
|
|
nozzlePipelineWashRef.value.setLoading(true) |
|
|
nozzlePipelineWashRef.value.setLoading(true) |
|
|
const params = { |
|
|
const params = { |
|
|
cmdCode: 'nozzle_pipeline_wash', |
|
|
cmdCode: 'nozzle_pipeline_wash', |
|
@ -145,7 +146,7 @@ const nozzlePipelineWash = () => { |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
console.log(nozzlePipelineWash) |
|
|
console.log(nozzlePipelineWash) |
|
|
|
|
|
|
|
|
|
|
|
const preRemainingTime = computed(() => systemStore.preRemainingTime) |
|
|
const matrixPrefillRef = ref() |
|
|
const matrixPrefillRef = ref() |
|
|
const matrixPrefill = () => { |
|
|
const matrixPrefill = () => { |
|
|
if (!speed.value) { |
|
|
if (!speed.value) { |
|
@ -173,11 +174,13 @@ const matrixPrefill = () => { |
|
|
speed: speed.value, |
|
|
speed: speed.value, |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
|
|
|
systemStore.startPreTimer() |
|
|
await sendControl(params) |
|
|
await sendControl(params) |
|
|
matrixPrefillRef.value.setLoading(false) |
|
|
matrixPrefillRef.value.setLoading(false) |
|
|
}) |
|
|
}) |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
|
FtMessage.error('取消预充') |
|
|
FtMessage.error('取消预充') |
|
|
|
|
|
systemStore.stopPreTimer() |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -186,6 +189,7 @@ const pipelineWashStop = async () => { |
|
|
cmdCode: 'syringe_pipeline_wash_stop', |
|
|
cmdCode: 'syringe_pipeline_wash_stop', |
|
|
cmdId: '', |
|
|
cmdId: '', |
|
|
} |
|
|
} |
|
|
|
|
|
systemStore.stopCleanTimer() |
|
|
await sendControl(params) |
|
|
await sendControl(params) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -194,6 +198,7 @@ const matrixPrefillStop = async () => { |
|
|
cmdCode: 'matrix_prefill_stop', |
|
|
cmdCode: 'matrix_prefill_stop', |
|
|
cmdId: '', |
|
|
cmdId: '', |
|
|
} |
|
|
} |
|
|
|
|
|
systemStore.stopPreTimer() |
|
|
await sendControl(params) |
|
|
await sendControl(params) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -227,10 +232,12 @@ const dehumidifierStop = async () => { |
|
|
ref="syringePipelineWashRef" |
|
|
ref="syringePipelineWashRef" |
|
|
type="primary" |
|
|
type="primary" |
|
|
:click-handle="syringePipelineWash" |
|
|
:click-handle="syringePipelineWash" |
|
|
:disabled="systemStore.systemStatus.spraying |
|
|
|
|
|
|
|
|
:disabled=" |
|
|
|
|
|
systemStore.systemStatus.spraying |
|
|
|| systemStore.systemStatus.cleaningSyringePipeline |
|
|
|| systemStore.systemStatus.cleaningSyringePipeline |
|
|
|| systemStore.systemStatus.cleaningNozzlePipeline |
|
|
|| systemStore.systemStatus.cleaningNozzlePipeline |
|
|
|| systemStore.systemStatus.prefilling" |
|
|
|
|
|
|
|
|
|| systemStore.systemStatus.prefilling |
|
|
|
|
|
" |
|
|
> |
|
|
> |
|
|
清洗注射器管路 |
|
|
清洗注射器管路 |
|
|
</ft-button> |
|
|
</ft-button> |
|
@ -242,9 +249,15 @@ const dehumidifierStop = async () => { |
|
|
<!-- > --> |
|
|
<!-- > --> |
|
|
<!-- 清洗喷嘴管路 --> |
|
|
<!-- 清洗喷嘴管路 --> |
|
|
<!-- </ft-button> --> |
|
|
<!-- </ft-button> --> |
|
|
<ft-button :click-handle="pipelineWashStop" :disabled="!systemStore.systemStatus.cleaningSyringePipeline && !systemStore.systemStatus.cleaningNozzlePipeline"> |
|
|
|
|
|
|
|
|
<ft-button |
|
|
|
|
|
:click-handle="pipelineWashStop" |
|
|
|
|
|
:disabled=" |
|
|
|
|
|
!systemStore.systemStatus.cleaningSyringePipeline && !systemStore.systemStatus.cleaningNozzlePipeline |
|
|
|
|
|
" |
|
|
|
|
|
> |
|
|
停止清洗 |
|
|
停止清洗 |
|
|
</ft-button> |
|
|
</ft-button> |
|
|
|
|
|
<span> 清洗计时: {{ cleanRemainingTime }}</span> |
|
|
</div> |
|
|
</div> |
|
|
</el-card> |
|
|
</el-card> |
|
|
<el-card> |
|
|
<el-card> |
|
@ -263,16 +276,22 @@ const dehumidifierStop = async () => { |
|
|
<span>uL/min</span> |
|
|
<span>uL/min</span> |
|
|
</div> |
|
|
</div> |
|
|
<ft-button |
|
|
<ft-button |
|
|
ref="matrixPrefillRef" type="primary" :click-handle="matrixPrefill" :disabled="systemStore.systemStatus.spraying |
|
|
|
|
|
|
|
|
ref="matrixPrefillRef" |
|
|
|
|
|
type="primary" |
|
|
|
|
|
:click-handle="matrixPrefill" |
|
|
|
|
|
:disabled=" |
|
|
|
|
|
systemStore.systemStatus.spraying |
|
|
|| systemStore.systemStatus.cleaningSyringePipeline |
|
|
|| systemStore.systemStatus.cleaningSyringePipeline |
|
|
|| systemStore.systemStatus.cleaningNozzlePipeline |
|
|
|| systemStore.systemStatus.cleaningNozzlePipeline |
|
|
|| systemStore.systemStatus.prefilling" |
|
|
|
|
|
|
|
|
|| systemStore.systemStatus.prefilling |
|
|
|
|
|
" |
|
|
> |
|
|
> |
|
|
开始预充 |
|
|
开始预充 |
|
|
</ft-button> |
|
|
</ft-button> |
|
|
<ft-button :click-handle="matrixPrefillStop" :disabled="!systemStore.systemStatus.prefilling"> |
|
|
<ft-button :click-handle="matrixPrefillStop" :disabled="!systemStore.systemStatus.prefilling"> |
|
|
结束预充 |
|
|
结束预充 |
|
|
</ft-button> |
|
|
</ft-button> |
|
|
|
|
|
<span> 预充计时: {{ preRemainingTime }}</span> |
|
|
</div> |
|
|
</div> |
|
|
</el-card> |
|
|
</el-card> |
|
|
<el-card> |
|
|
<el-card> |
|
@ -317,13 +336,16 @@ const dehumidifierStop = async () => { |
|
|
color: var(--el-color-primary); |
|
|
color: var(--el-color-primary); |
|
|
border-radius: 20px; |
|
|
border-radius: 20px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
:deep(.el-card__body) { |
|
|
:deep(.el-card__body) { |
|
|
padding: 50px; |
|
|
padding: 50px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.card-header { |
|
|
.card-header { |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.num-box { |
|
|
.num-box { |
|
|
margin: 0 20px; |
|
|
margin: 0 20px; |
|
|
width: 50px; |
|
|
width: 50px; |
|
@ -336,11 +358,13 @@ const dehumidifierStop = async () => { |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.button-footer { |
|
|
.button-footer { |
|
|
display: flex; |
|
|
display: flex; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
margin: 50px; |
|
|
margin: 50px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.hint-text { |
|
|
.hint-text { |
|
|
display: flex; |
|
|
display: flex; |
|
|
height: 400px; |
|
|
height: 400px; |
|
@ -350,13 +374,16 @@ const dehumidifierStop = async () => { |
|
|
font-size: 50px; |
|
|
font-size: 50px; |
|
|
color: var(--el-color-primary); |
|
|
color: var(--el-color-primary); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.num-text { |
|
|
.num-text { |
|
|
color: var(--el-color-primary); |
|
|
color: var(--el-color-primary); |
|
|
font-weight: 900; |
|
|
font-weight: 900; |
|
|
font-size: 70px; |
|
|
font-size: 70px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
:deep(.set-button) { |
|
|
:deep(.set-button) { |
|
|
margin-top: 50px; |
|
|
margin-top: 50px; |
|
|
|
|
|
|
|
|
.my-button { |
|
|
.my-button { |
|
|
width: 500px; |
|
|
width: 500px; |
|
|
height: 150px; |
|
|
height: 150px; |
|
|