|
|
@ -50,7 +50,8 @@ const dehumidifierStart = () => { |
|
|
|
cancelButtonText: '取消', |
|
|
|
showCancelButton: true, |
|
|
|
showClose: false, |
|
|
|
}).then(async () => { |
|
|
|
}) |
|
|
|
.then(async () => { |
|
|
|
dehumidifierStartRef.value.setLoading(true) |
|
|
|
const params = { |
|
|
|
cmdCode: 'dehumidifier_start', |
|
|
@ -61,7 +62,8 @@ const dehumidifierStart = () => { |
|
|
|
} |
|
|
|
await sendControl(params) |
|
|
|
dehumidifierStartRef.value.setLoading(false) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
FtMessage.error('取消除湿') |
|
|
|
}) |
|
|
|
} |
|
|
@ -74,15 +76,13 @@ const syringePipelineWash = async () => { |
|
|
|
} |
|
|
|
ElMessageBox({ |
|
|
|
title: '提示', |
|
|
|
message: h('div', null, [ |
|
|
|
h('p', null, '请检查废液瓶是否已满 '), |
|
|
|
h('p', null, '请检查设备内是否有异物'), |
|
|
|
]), |
|
|
|
message: h('div', null, [h('p', null, '请检查废液瓶是否已满 '), h('p', null, '请检查设备内是否有异物')]), |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
showCancelButton: true, |
|
|
|
showClose: false, |
|
|
|
}).then(async () => { |
|
|
|
}) |
|
|
|
.then(async () => { |
|
|
|
syringePipelineWashRef.value.setLoading(true) |
|
|
|
const params = { |
|
|
|
cmdCode: 'syringe_pipeline_wash', |
|
|
@ -94,7 +94,8 @@ const syringePipelineWash = async () => { |
|
|
|
console.log('sendControl', params) |
|
|
|
await sendControl(params) |
|
|
|
syringePipelineWashRef.value.setLoading(false) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
FtMessage.error('取消清洗') |
|
|
|
}) |
|
|
|
} |
|
|
@ -107,15 +108,13 @@ const nozzlePipelineWash = () => { |
|
|
|
} |
|
|
|
ElMessageBox({ |
|
|
|
title: '提示', |
|
|
|
message: h('div', null, [ |
|
|
|
h('p', null, '请检查废液瓶是否已满 '), |
|
|
|
h('p', null, '请检查设备内是否有异物'), |
|
|
|
]), |
|
|
|
message: h('div', null, [h('p', null, '请检查废液瓶是否已满 '), h('p', null, '请检查设备内是否有异物')]), |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
showCancelButton: true, |
|
|
|
showClose: false, |
|
|
|
}).then(async () => { |
|
|
|
}) |
|
|
|
.then(async () => { |
|
|
|
nozzlePipelineWashRef.value.setLoading(true) |
|
|
|
const params = { |
|
|
|
cmdCode: 'nozzle_pipeline_wash', |
|
|
@ -124,10 +123,12 @@ const nozzlePipelineWash = () => { |
|
|
|
speed: clearSpeed.value, |
|
|
|
}, |
|
|
|
} |
|
|
|
try { |
|
|
|
await sendControl(params) |
|
|
|
} |
|
|
|
finally { |
|
|
|
nozzlePipelineWashRef.value.setLoading(false) |
|
|
|
}).catch(() => { |
|
|
|
FtMessage.error('取消清洗') |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
@ -139,15 +140,13 @@ const matrixPrefill = () => { |
|
|
|
} |
|
|
|
ElMessageBox({ |
|
|
|
title: '提示', |
|
|
|
message: h('div', null, [ |
|
|
|
h('p', null, '请检查废液瓶是否已满 '), |
|
|
|
h('p', null, '请检查设备内是否有异物'), |
|
|
|
]), |
|
|
|
message: h('div', null, [h('p', null, '请检查废液瓶是否已满 '), h('p', null, '请检查设备内是否有异物')]), |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
showCancelButton: true, |
|
|
|
showClose: false, |
|
|
|
}).then(async () => { |
|
|
|
}) |
|
|
|
.then(async () => { |
|
|
|
matrixPrefillRef.value.setLoading(true) |
|
|
|
const params = { |
|
|
|
cmdCode: 'matrix_prefill', |
|
|
@ -158,7 +157,8 @@ const matrixPrefill = () => { |
|
|
|
} |
|
|
|
await sendControl(params) |
|
|
|
matrixPrefillRef.value.setLoading(false) |
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
FtMessage.error('取消预充') |
|
|
|
}) |
|
|
|
} |
|
|
|